-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If Edgedriver doesn't exist for installed Edge browser but a different Edgedriver is already installed, don't fail in download #365
Comments
This error is not thrown because https://msedgedriver.azureedge.net/127.0.2651.74/edgedriver_linux64.zip (and any other Edgedriver URL that doesn't actually exist) returns an XML body: node-edgedriver/src/install.ts Line 49 in 7b2b449
This is the XML body: <Error>
<Code>BlobNotFound</Code>
<Message>
The specified blob does not exist. RequestId:f1c70ad1-a01e-0010-3119-e4ad68000000 Time:2024-08-01T13:48:46.8703710Z
</Message>
</Error> Instead, the error comes from here: node-edgedriver/src/install.ts Line 164 in 7b2b449
The message is |
Actually, I just realized something: https://github.com/actions/runner-images/blob/ubuntu22/20240721.1/images/ubuntu/Ubuntu2204-Readme.md#environment-variables-1 sets the But this uses node-edgedriver/src/install.ts Line 24 in 7b2b449
|
@danielhjacobs thanks for reporting, any contributions are appreciated! |
I opened actions/runner-images#10380, would them addressing that fix the issue? |
@danielhjacobs I've implemented a workaround that fetches the latest available Edgedriver for given major version, this is how the logs look like in those case:
|
A fix was released in |
I see that bump was in webdriverio/webdriverio@a51e739 but I don't see that commit in webdriverio/webdriverio@v8.39.1...v8.40.0, unless I'm missing it. Will that be included in a new version of webdriverio anytime soon? |
There is no need to make any changes in the core repository as Edgedriver is defined with a |
Ah, I think we used deprecated methods for testing on the browsers: We should do |
Yeah, with |
https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#browsers-and-drivers had Microsoft Edge 126.0.2592.113 installed and Microsoft Edge WebDriver 126.0.2592.102 installed. At the time, https://msedgedriver.azureedge.net/126.0.2592.113/edgedriver_linux64.zip did not exist. The job https://github.com/ruffle-rs/ruffle/actions/runs/10068053329/job/27832705746 said "Detected Microsoft Edge v126.0.2592.113" and then after "Downloading Edgedriver from https://msedgedriver.azureedge.net/126.0.2592.113/edgedriver_linux64.zip" said "Error: End of central directory not found".
That Linux build does now exist, but let's imagine a different scenario. https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/ has 127.0.2651.74 as the newest Edge version. However, https://msedgedriver.azureedge.net/LATEST_RELEASE_127_LINUX is 127.0.2651.72. https://msedgedriver.azureedge.net/127.0.2651.74/edgedriver_linux64.zip is now what https://msedgedriver.azureedge.net/126.0.2592.113/ was then.
That's exactly the Edge and Edgedriver versions in actions/runner-images#10376
If an Edgedriver doesn't exist for the installed Edge browser, instead of failing when the corresponding Edgedriver version does not exist, if a different Edgedriver is already installed, the download function should just return that.
Corresponding bugs include the following:
The text was updated successfully, but these errors were encountered: