Skip to content

Commit 5c520bc

Browse files
Manciukicroypat
authored andcommitted
chore(cpu_templates): use explicit wait in pipeline definition
Replace the "wait", which waits on all previous steps, with an explicit "depends_on" definition between the steps to avoid waiting unnecessarily on the other groups. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 2551a1e commit 5c520bc

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.buildkite/pipeline_cpu_template.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,18 @@ def group_snapshot_restore(test_step):
8888
groups = []
8989

9090
groups.append(
91-
group(
92-
label=test_step["snapshot"][BkStep.LABEL],
93-
command=test_step["snapshot"][BkStep.COMMAND],
94-
instances=test_step["instances"],
95-
platforms=DEFAULT_PLATFORMS,
96-
timeout=test_step["snapshot"][BkStep.TIMEOUT],
97-
artifacts=test_step["snapshot"][BkStep.ARTIFACTS],
98-
)
91+
{
92+
"key": "snapshot",
93+
**group(
94+
label=test_step["snapshot"][BkStep.LABEL],
95+
command=test_step["snapshot"][BkStep.COMMAND],
96+
instances=test_step["instances"],
97+
platforms=DEFAULT_PLATFORMS,
98+
timeout=test_step["snapshot"][BkStep.TIMEOUT],
99+
artifacts=test_step["snapshot"][BkStep.ARTIFACTS],
100+
),
101+
}
99102
)
100-
groups.append("wait")
101103
snapshot_restore_combinations = []
102104
for dp in DEFAULT_PLATFORMS:
103105
for src_instance in test_step["instances"]:
@@ -137,7 +139,9 @@ def group_snapshot_restore(test_step):
137139
}
138140
)
139141

140-
groups.append({"group": "📸 restores snapshots", "steps": steps})
142+
groups.append(
143+
{"group": "📸 restores snapshots", "steps": steps, "depends_on": "snapshot"}
144+
)
141145
return groups
142146

143147

0 commit comments

Comments
 (0)