Skip to content

Commit 19e9051

Browse files
committed
buildkite: Replace wait step with explicit dependencies
This way, if the x86 build is faster than the ARM build, the x86 tests can start running while the ARM ones are still blocked. Signed-off-by: Patrick Roy <[email protected]>
1 parent ab0bd86 commit 19e9051

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.buildkite/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ def __init__(self, with_build_step=True, **kwargs):
261261
self.build_group_per_arch(
262262
"🏗️ Build", build_cmds, decorate=False, key_prefix="build"
263263
)
264-
self.steps += ["wait"]
265264
else:
266265
self.shared_build = None
267266

@@ -297,6 +296,10 @@ def _adapt_group(self, group):
297296

298297
for step in group["steps"]:
299298
step["command"] = prepend + step["command"]
299+
if self.shared_build is not None:
300+
step["depends_on"] = (
301+
"build_" + DEFAULT_INSTANCES[step["agents"]["instance"]]
302+
)
300303
return group
301304

302305
def build_group(self, *args, **kwargs):

0 commit comments

Comments
 (0)