Skip to content

Commit 076fcc6

Browse files
committed
Remove dependency for now until we can merge the
two task graphs into one on release
1 parent 7e2e4df commit 076fcc6

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

taskcluster/ci/docker-worker/kind.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ job-defaults:
3838
jobs:
3939
chunk:
4040
description: 'docker-worker test chunk'
41+
chunks: 5
4142
run:
4243
command: ./test/docker-worker-test

taskcluster/src/transforms/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,19 @@ def parameterize_mounts(config, jobs):
109109

110110

111111
@transforms.add
112-
def docker_worker_chunk(config, jobs):
113-
total_chunks = 5
114-
for job in jobs:
112+
def docker_worker_chunk(config, tasks):
113+
for task in tasks:
114+
total_chunks = task.pop("chunks", 5)
115115
for chunk in range(1, total_chunks + 1):
116-
c_task = copy.deepcopy(job)
116+
c_task = copy.deepcopy(task)
117117
c_task["name"] += f"-{chunk}"
118118
c_task["description"] += f" #{chunk}"
119119
c_task["run"]["command"] += f" --this-chunk {chunk} --total-chunks {total_chunks}"
120120

121-
# include release-publish dependency in the case of a release
122-
if config.params["tasks_for"] == "github-push":
123-
c_task["dependencies"] = dict(release="release-publish")
121+
# TODO: uncomment this block to add dependency to the release-publish
122+
# task once we combine the two task graphs into one during release.
123+
# # include release-publish dependency in the case of a release
124+
# if config.params["tasks_for"] == "github-push":
125+
# c_task["dependencies"] = dict(release="release-publish")
124126

125127
yield c_task

0 commit comments

Comments
 (0)