diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-01-25 18:03:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 18:03:56 -0500 |
commit | 2d02f2b58765d69dfd5362b4406c06f6fcc1a40f (patch) | |
tree | adb72649806d1b10520b32e51f22747fe7eb0c66 | |
parent | 937efba0cd6662b4e0060e7056c52dac2896535c (diff) | |
parent | c48934a24f032c44fc85dad886a03f28292466ed (diff) | |
download | servo-2d02f2b58765d69dfd5362b4406c06f6fcc1a40f.tar.gz servo-2d02f2b58765d69dfd5362b4406c06f6fcc1a40f.zip |
Auto merge of #25377 - marmeladema:issue-23607/test-wpt, r=jdm
Run eventsource wpt tests with Python3
I deliberately changed the CI to run the WPT tests using Python3 to see if it works.
Even if we don't want to change the CI right now, the first commit with only the python requirements update can be merged.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
-rw-r--r-- | etc/taskcluster/decision_task.py | 10 | ||||
-rw-r--r-- | etc/taskcluster/decisionlib.py | 6 | ||||
-rw-r--r-- | python/requirements.txt | 4 | ||||
-rw-r--r-- | tests/wpt/run.py | 2 |
4 files changed, 17 insertions, 5 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index 1032cd22d8c..afa83cc4c1b 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -658,7 +658,7 @@ def macos_wpt(): priority = "high" if CONFIG.git_ref == "refs/heads/auto" else None build_task = macos_release_build_with_debug_assertions(priority=priority) def macos_run_task(name): - task = macos_task(name).with_python2() \ + task = macos_task(name).with_python2().with_python3() \ .with_repo_bundle(alternate_object_dir="/var/cache/servo.git/objects") return with_homebrew(task, ["etc/taskcluster/macos/Brewfile"]) wpt_chunks( @@ -734,7 +734,13 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes, if this_chunk == 0: task.with_script(""" ./mach test-wpt-failure - time ./mach test-wpt --release --binary-arg=--multiprocess \ + time python2 ./mach test-wpt --release --binary-arg=--multiprocess \ + --processes $PROCESSES \ + --log-raw test-wpt-mp.log \ + --log-errorsummary wpt-mp-errorsummary.log \ + eventsource \ + | cat + time env PYTHONIOENCODING=utf-8 python3 ./mach test-wpt --release --binary-arg=--multiprocess \ --processes $PROCESSES \ --log-raw test-wpt-mp.log \ --log-errorsummary wpt-mp-errorsummary.log \ diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index c1c9aaadf60..ecbdc54cfe8 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -693,6 +693,12 @@ class MacOsGenericWorkerTask(UnixTaskMixin, GenericWorkerTask): pip install --user virtualenv """) + def with_python3(self): + return self.with_early_script(""" + python3 -m ensurepip --user + python3 -m pip install --user virtualenv + """) + def with_rustup(self): return self.with_early_script(""" export PATH="$HOME/.cargo/bin:$PATH" diff --git a/python/requirements.txt b/python/requirements.txt index 79c2374f24e..0f9c82e3a0f 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -5,8 +5,8 @@ blessings == 1.6 distro == 1.4 mach == 1.0.0 mozdebug == 0.1 -mozinfo == 0.8 -mozlog == 3.6 +mozinfo == 1.1.0 +mozlog == 5.0 setuptools == 39.0 toml == 0.9.2 diff --git a/tests/wpt/run.py b/tests/wpt/run.py index cfc68ea45c3..7e6fcaede82 100644 --- a/tests/wpt/run.py +++ b/tests/wpt/run.py @@ -34,7 +34,7 @@ def run_tests(**kwargs): set_defaults(kwargs) mozlog.commandline.log_formatters["servo"] = \ - (grouping_formatter.ServoFormatter, "Servo’s grouping output formatter") + (grouping_formatter.ServoFormatter, "Servo's grouping output formatter") mozlog.commandline.log_formatters["servojson"] = \ (grouping_formatter.ServoJsonFormatter, "Servo's JSON logger of unexpected results") |