Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/taskgraph/morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

here = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger(__name__)
MAX_ROUTES = 64
MAX_ROUTES = 3

registered_morphs = []

Expand Down Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions taskcluster/docker/run-task/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion test/test_morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"]
Expand Down