Skip to content
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

[Gecko Bug 1678044] Fix setting environment variables for wdspec tests #28640

Merged
merged 6 commits into from May 21, 2021

Conversation

moz-wptsync-bot
Copy link
Collaborator

The previous patch set the variables too late, after the webdriver server was already
started. Pass them down into the server startup code instead

Differential Revision: https://phabricator.services.mozilla.com/D97665

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1678044
gecko-commit: 659084e40ec2d3f76ec60fb4015c4b0875974fc6
gecko-reviewers: maja_zf, marionette-reviewers, whimboo

@wpt-pr-bot wpt-pr-bot added infra webdriver wg-testing_browser wptrunner The automated test runner, commonly called through ./wpt run labels Apr 22, 2021
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

The previous patch set the variables too late, after the webdriver server was already
started. Pass them down into the server startup code instead

Differential Revision: https://phabricator.services.mozilla.com/D97665

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1678044
gecko-commit: d5f5359358fd630ea92da053211f7ca4c0527c82
gecko-reviewers: maja_zf, marionette-reviewers, whimboo
This ensures that we always pass a profile in the capabilitites. When
we're running with a single process it simply unpacks the profile to a
temporary folder and passes in that path as a firefox argument. When
we're running with multiple processes, that won't work. We could
invent a mechanism to get one profile per process, but for simplicity
we instead pass in the profile as a base64-encoded string.

Depends on D97665

Differential Revision: https://phabricator.services.mozilla.com/D99697

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1678044
gecko-commit: 0eeb2f14977007e8ac8e0a43c976c490db2661af
gecko-reviewers: webdriver-reviewers, whimboo
This requires passing the test_environment into the get_executor_kwargs function
so that in the firefox wdspec case we can add a cleanup function to the environment
when running wdspec tests. That seems reasonable since we were previously using
a variety of data in the environment to setup the kwargs anyway

Depends on D99698

Differential Revision: https://phabricator.services.mozilla.com/D101768

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1678044
gecko-commit: 5281b7443a899dcd538380b4f7c15c46300f9bdd
gecko-reviewers: webdriver-reviewers, whimboo
Otherwise it seems to interfere with the rest of the test.

Depends on D101768

Differential Revision: https://phabricator.services.mozilla.com/D101769

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1678044
gecko-commit: 023e75831c48ad93ecfb9252db552158a4aa85e9
gecko-reviewers: webdriver-reviewers, whimboo
These appear to assume it's meaningful to set a default binary,
but in practice we always pass in one from the command line args.

It also fixes breakage from adding an extra argument to the
constructor.
@jgraham jgraham merged commit 3634fd4 into master May 21, 2021
@jgraham jgraham deleted the gecko/1678044-1 branch May 21, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra mozilla:gecko-sync webdriver wg-testing_browser wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants