From 0eca3e07123f5d1c59dfd79575900517970027a8 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 3 Jul 2026 11:54:09 +0200 Subject: [PATCH 1/2] morph: fix INDEX_RANK to be a string We can't have non-str env variables. --- src/taskgraph/morph.py | 4 +++- test/test_morph.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/taskgraph/morph.py b/src/taskgraph/morph.py index 357741f24..0e37df020 100644 --- a/src/taskgraph/morph.py +++ b/src/taskgraph/morph.py @@ -147,7 +147,9 @@ def make_index_task(parent_task, taskgraph, label_to_taskid, parameters, graph_c task.task["payload"]["command"] = ["insert-indexes.js"] + index_paths task.task["payload"]["env"] = { "TARGET_TASKID": parent_task.task_id, - "INDEX_RANK": parent_task.task.get("extra", {}).get("index", {}).get("rank", 0), + "INDEX_RANK": str( + parent_task.task.get("extra", {}).get("index", {}).get("rank", 0) + ), } return task, taskgraph, label_to_taskid diff --git a/test/test_morph.py b/test/test_morph.py index a894d14ea..c39150441 100644 --- a/test/test_morph.py +++ b/test/test_morph.py @@ -66,7 +66,7 @@ def test_make_index_tasks(make_taskgraph, graph_config): assert index_task.task["payload"]["command"][0] == "insert-indexes.js" assert index_task.task["payload"]["env"]["TARGET_TASKID"] == "a-tid" - assert index_task.task["payload"]["env"]["INDEX_RANK"] == 1540722354 + assert index_task.task["payload"]["env"]["INDEX_RANK"] == "1540722354" # check the scope summary assert index_task.task["scopes"] == ["index:insert-task:gecko.v2.mozilla-central.*"] From 0a7ccd4ba85a104ea48372183e0f99e136ef4dc3 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 3 Jul 2026 11:26:28 +0200 Subject: [PATCH 2/2] wip force index-tasks --- src/taskgraph/morph.py | 2 +- taskcluster/docker/run-task/Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/taskgraph/morph.py b/src/taskgraph/morph.py index 0e37df020..eb739b9e3 100644 --- a/src/taskgraph/morph.py +++ b/src/taskgraph/morph.py @@ -30,7 +30,7 @@ here = os.path.abspath(os.path.dirname(__file__)) logger = logging.getLogger(__name__) -MAX_ROUTES = 64 +MAX_ROUTES = 3 registered_morphs = [] diff --git a/taskcluster/docker/run-task/Dockerfile b/taskcluster/docker/run-task/Dockerfile index 28b298d3f..7b23dcf23 100644 --- a/taskcluster/docker/run-task/Dockerfile +++ b/taskcluster/docker/run-task/Dockerfile @@ -19,5 +19,7 @@ ENV PATH=/builds/worker/bin:$PATH \ # %ARG UV_VERSION COPY --from=ghcr.io/astral-sh/uv:$UV_VERSION /uv /bin/uv +# dummy + # Set a default command useful for debugging CMD ["/bin/bash", "--login"]