Closed jrandolf-2 closed 1 year ago
I think this is good, but given that it's changing the low-level messages I think we should add it to the WG meeting agenda to ensure there aren't any concerns / people are aware of the change.
The Browser Testing and Tools Working Group just discussed add `type` for `Message` types
.
@jrandolf given that this PR is merged and no tests have been updated I wonder if you already implemented the type
field in your BiDi implementation. If that is the case we could simply do it on our side as well and update tests to enforce the type
field to be set.
Yes, we've added it to our side. I'll add tests soon.
Yes, we've added it to our side. I'll add tests soon.
@jrandolf, to avoid test bustage on our side we would happily take the work in updating the tests to make the type
field mandatory. It's probably that we only have to check the validity when handling a response / event in the WebDriver BiDi client.
Please link the WPT PR to this bug once you send it (whoever sends one first)
Note that no new tests need to be added given that the webdriver client can actually handle the type to better differentiate between the message types. I'm going to make those changes on https://bugzilla.mozilla.org/show_bug.cgi?id=1844009.
@jrandolf could it be that the required changes are not yet part of a chromedriver release? When I tried my patch https://phabricator.services.mozilla.com/D185173 for the webdriver client it's hanging. I see the same when I remove the type field in Firefox. So I assume a chromedriver release is needed?
@nechaev-chromium or @mathiasbynens could one of you please help? Thanks.
The mapper was rolled last Monday (https://chromium-review.googlesource.com/c/chromium/src/+/4738162), so it should be in the Chromedriver by now. Could you retry the run?
Per https://chromiumdash.appspot.com/commit/c6d8a1c01af25b5246ac1c331a95b7634ee419ca the roll commit made it to 117.0.5927.0. Any ChromeDriver of that version or more recent should include the changes.
It doesn't work with https://chromedriver.storage.googleapis.com/112.0.5615.49/chromedriver_mac_arm64.zip which is downloaded by wpt automatically. But as per the Chromedriver download page the latest release is 114.
It doesn't work with https://chromedriver.storage.googleapis.com/112.0.5615.49/chromedriver_mac_arm64.zip which is downloaded by wpt automatically.
The latest Stable Chrome version is 115. Why is WPT using 112? If the infra is running that far behind, it’s gonna take a while to catch up to M117 where the change landed :(
But as per the Chromedriver download page the latest release is 114.
Hmm, the ChromeDriver download page says this for me:
Per https://community.taskcluster-artifacts.net/L4is0pM-Ssm-sgEGnP5LlQ/0/public/logs/live_backing.log a recent master run is downloading Chromedriver 116. Are you sure you're passing in the right --channel
to get nightly rather than stable? Otherwise, where are you seeing the older version?
Oh, I have Chrome installed locally and wpt picks it up automatically. Sadly this is a 112 release. After upgrading Chrome locally it now tries to download the new 115 chromedriver binary but it fails with:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://storage.googleapis.com/chromium-browser-snapshots/Mac_Arm/1148911/chromedriver_mac64.zip
File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 540, in run_wpt
return run_web_platform_tests(command_context, **params)
File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 528, in run_web_platform_tests
return wpt_runner.run(logger, **params)
File "/Users/henrik/code/gecko/testing/web-platform/mach_commands_base.py", line 57, in run
kwargs = self.setup.kwargs_wptrun(kwargs)
File "/Users/henrik/code/gecko/testing/web-platform/mach_commands.py", line 190, in kwargs_wptrun
kwargs = run.setup_wptrunner(venv, **kwargs)
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/run.py", line 862, in setup_wptrunner
setup_cls.setup(kwargs)
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/run.py", line 189, in setup
self.setup_kwargs(kwargs)
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/run.py", line 377, in setup_kwargs
webdriver_binary = self.browser.install_webdriver(
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/browser.py", line 1031, in install_webdriver
chromedriver_path = self.install_webdriver_by_version(version, dest, revision)
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/browser.py", line 744, in install_webdriver_by_version
unzip(get(url).raw, dest)
File "/Users/henrik/code/gecko/testing/web-platform/tests/tools/wpt/utils.py", line 106, in get
resp.raise_for_status()
File "/Users/henrik/code/gecko/third_party/python/requests/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
@mathiasbynens could you please check why from https://storage.googleapis.com/chromium-browser-snapshots/Mac_Arm/1148911/chromedriver_mac64.zip is not valid?
It looks like the download URLs have been changed to https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chromedriver-mac-arm64.zip.
@jgraham do we miss an upstream change which hasn't been downstream synced yet?
The same failure can actually be seen when running chrome tests in the upstream repository itself. Given that this is a wpt issue I filed https://github.com/web-platform-tests/wpt/issues/41359.
Fixed: https://github.com/w3c/webdriver-bidi/issues/480
Preview | Diff