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

Use python binary to run multiprocess tests. #26229

Merged
merged 3 commits into from Apr 20, 2020
Merged

Use python binary to run multiprocess tests. #26229

merged 3 commits into from Apr 20, 2020

Conversation

@jdm
Copy link
Member

jdm commented Apr 20, 2020

The python2 binary doesn't exist in the path on macOS. This change uses an existing python2 on macOS and whatever the default python version is on linux.

@SimonSapin
Copy link
Member

SimonSapin commented Apr 20, 2020

LGTM, but if this python2 fails now how did it work before?

@jdm
Copy link
Member Author

jdm commented Apr 20, 2020

It never worked. I think possibly the | cat on the end of the line suppresses the error so CI doesn't report a failure.

@SimonSapin
Copy link
Member

SimonSapin commented Apr 20, 2020

Please also add -o pipefail (before -c) at these two locations, in order to catch such failures:

"/bin/bash", "--login", "-x", "-e", "-c",

"/bin/bash", "--login", "-x", "-e", "-c",

@jdm
Copy link
Member Author

jdm commented Apr 20, 2020

bors-servo added a commit that referenced this pull request Apr 20, 2020
Use python binary to run multiprocess tests.

The python2 binary doesn't exist in the path on macOS. This change uses an existing python2 on macOS and whatever the default python version is on linux.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

Trying commit 34c3030 with merge e5eed8d...

Copy link
Member

SimonSapin left a comment

r+ assuming try looks good

@@ -614,7 +614,7 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
# https://github.com/servo/servo/issues/22438
if this_chunk == 0:
task.with_script("""
time python2 ./mach test-wpt --release --binary-arg=--multiprocess \
time python ./mach test-wpt --release --binary-arg=--multiprocess \

This comment has been minimized.

Copy link
@SimonSapin

SimonSapin Apr 20, 2020

Member

time ./mach (relying on shebang, like in other uses of mach commands) should also work, but this is fine.

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

💔 Test failed - status-taskcluster

@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Apr 20, 2020

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#23120.

@jdm jdm force-pushed the jdm-patch-36 branch from 2102ab5 to a3587e6 Apr 20, 2020
@jdm
Copy link
Member Author

jdm commented Apr 20, 2020

@bors-servo r=SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

📌 Commit a3587e6 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

Testing commit a3587e6 with merge d0c2ec6...

bors-servo added a commit that referenced this pull request Apr 20, 2020
Use python binary to run multiprocess tests.

The python2 binary doesn't exist in the path on macOS. This change uses an existing python2 on macOS and whatever the default python version is on linux.
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Apr 20, 2020

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#23120.

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member Author

jdm commented Apr 20, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

Testing commit a3587e6 with merge 7f5faac...

bors-servo added a commit that referenced this pull request Apr 20, 2020
Use python binary to run multiprocess tests.

The python2 binary doesn't exist in the path on macOS. This change uses an existing python2 on macOS and whatever the default python version is on linux.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member Author

jdm commented Apr 20, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

Testing commit a3587e6 with merge 4c8413d...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 20, 2020

☀️ Test successful - status-taskcluster
Approved by: SimonSapin
Pushing 4c8413d to master...

@bors-servo bors-servo merged commit 4c8413d into master Apr 20, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@bors-servo bors-servo deleted the jdm-patch-36 branch Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.