aboutsummaryrefslogtreecommitdiffstats
path: root/etc/taskcluster/decision_task.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-11-16 19:48:34 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-11-18 09:47:05 +0100
commit1ca9c5b96ba0c3eb2dc73a8873e7f0a6822b723e (patch)
tree83a88b8fcfc0cdc64bc5bbe1e73cf9104f8c5c4d /etc/taskcluster/decision_task.py
parentdfa78986a6f74176bc36f4ba29969ec421a8730c (diff)
downloadservo-1ca9c5b96ba0c3eb2dc73a8873e7f0a6822b723e.tar.gz
servo-1ca9c5b96ba0c3eb2dc73a8873e7f0a6822b723e.zip
Move "extra" WPT testing to its own task (chunk "zero")
Diffstat (limited to 'etc/taskcluster/decision_task.py')
-rw-r--r--etc/taskcluster/decision_task.py47
1 files changed, 23 insertions, 24 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py
index 4adedd4505d..408e9dab21f 100644
--- a/etc/taskcluster/decision_task.py
+++ b/etc/taskcluster/decision_task.py
@@ -645,7 +645,7 @@ def macos_wpt():
def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
repo_dir, chunks="all", repo_kwargs={}):
if chunks == "all":
- chunks = [n + 1 for n in range(total_chunks)]
+ chunks = range(total_chunks + 1)
for this_chunk in chunks:
task = (
make_chunk_task("WPT chunk %s / %s" % (this_chunk, total_chunks))
@@ -662,9 +662,10 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
GST_DEBUG="3",
)
)
- if this_chunk == chunks[-1]:
- task.name += " + extra"
- task.extra["treeherder"]["symbol"] += "+"
+ # `test-wpt` is piped into `cat` so that stdout is not a TTY
+ # and wptrunner does not use "interactive mode" formatting:
+ # https://github.com/servo/servo/issues/22438
+ if this_chunk == 0:
task.with_script("""
./mach test-wpt-failure
time ./mach test-wpt --release --binary-arg=--multiprocess \
@@ -697,26 +698,24 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
--tracker-api default \
--reporter-api default
""")
- # `test-wpt` is piped into `cat` so that stdout is not a TTY
- # and wptrunner does not use "interactive mode" formatting:
- # https://github.com/servo/servo/issues/22438
- task.with_script("""
- ./mach test-wpt \
- --release \
- --processes $PROCESSES \
- --total-chunks "$TOTAL_CHUNKS" \
- --this-chunk "$THIS_CHUNK" \
- --log-raw test-wpt.log \
- --log-errorsummary wpt-errorsummary.log \
- --always-succeed \
- | cat
- ./mach filter-intermittents \
- wpt-errorsummary.log \
- --log-intermittents intermittents.log \
- --log-filteredsummary filtered-wpt-errorsummary.log \
- --tracker-api default \
- --reporter-api default
- """)
+ else:
+ task.with_script("""
+ ./mach test-wpt \
+ --release \
+ --processes $PROCESSES \
+ --total-chunks "$TOTAL_CHUNKS" \
+ --this-chunk "$THIS_CHUNK" \
+ --log-raw test-wpt.log \
+ --log-errorsummary wpt-errorsummary.log \
+ --always-succeed \
+ | cat
+ ./mach filter-intermittents \
+ wpt-errorsummary.log \
+ --log-intermittents intermittents.log \
+ --log-filteredsummary filtered-wpt-errorsummary.log \
+ --tracker-api default \
+ --reporter-api default
+ """)
task.with_artifacts(*[
"%s/%s" % (repo_dir, word)
for script in task.scripts