aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-11-18 11:21:38 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-11-18 11:21:38 +0100
commit67b0b97d4fadab7c7f8c7591b2d9b785b28395f4 (patch)
tree6b4047557c976348881d3af7e2fa73ab6c6ea6b5
parente5f6333832b3784a0aa050dfff25c60e77fdd12a (diff)
downloadservo-67b0b97d4fadab7c7f8c7591b2d9b785b28395f4.tar.gz
servo-67b0b97d4fadab7c7f8c7591b2d9b785b28395f4.zip
Zero-pad the chunk number in WPT task names
-rw-r--r--etc/taskcluster/decision_task.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py
index 31ecb63a845..99b2bc585f6 100644
--- a/etc/taskcluster/decision_task.py
+++ b/etc/taskcluster/decision_task.py
@@ -650,7 +650,9 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
chunks = range(total_chunks + 1)
for this_chunk in chunks:
task = (
- make_chunk_task("WPT chunk %s / %s" % (this_chunk, total_chunks))
+ make_chunk_task("WPT chunk {:0{width}} / {}".format(
+ this_chunk, total_chunks, width=len(str(total_chunks)),
+ ))
.with_treeherder(platform, "WPT-%s" % this_chunk)
.with_repo(**repo_kwargs)
.with_curl_artifact_script(build_task, "target.tar.gz")