From 67b0b97d4fadab7c7f8c7591b2d9b785b28395f4 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 18 Nov 2019 11:21:38 +0100 Subject: [PATCH] Zero-pad the chunk number in WPT task names --- etc/taskcluster/decision_task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")