commit 7b2ff2964eb5ea5e1926bfeccadcc6888691d069
parent fd59375f34cb7dca939bc6576da6356904ae5a30
Author: Cristina Horotan <chorotan@mozilla.com>
Date: Fri, 5 Dec 2025 12:33:47 +0200
Revert "Bug 2002955 - Avoid deepcopying task when we can r=taskgraph-reviewers,ahal" for causing bug 2004325
This reverts commit da3155f674d6a85314d8d8b57b6715eb6918c59c.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/taskcluster/gecko_taskgraph/transforms/test/chunk.py b/taskcluster/gecko_taskgraph/transforms/test/chunk.py
@@ -283,12 +283,12 @@ def split_chunks(config, tasks):
chunked_manifests[0].extend(
[m for m in manifests["skipped"] if not m.endswith(".list")]
)
- last_chunk = task["chunks"]
+
for i in range(task["chunks"]):
this_chunk = i + 1
# copy the test and update with the chunk number
- chunked = deepcopy(task) if this_chunk != last_chunk else task
+ chunked = deepcopy(task)
chunked["this-chunk"] = this_chunk
if chunked_manifests is not None:
diff --git a/taskcluster/gecko_taskgraph/transforms/test/variant.py b/taskcluster/gecko_taskgraph/transforms/test/variant.py
@@ -124,7 +124,7 @@ def split_variants(config, tasks):
variants = remove_expired(variants, expired_variants)
if task.pop("run-without-variant"):
- taskv = deepcopy(task) if variants else task
+ taskv = deepcopy(task)
taskv["attributes"]["unittest_variant"] = None
yield taskv