File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
buildkite/bazel-central-registry Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,14 @@ def should_wait_bcr_maintainer_review(modules):
451
451
def upload_jobs_to_pipeline (pipeline_steps ):
452
452
"""Upload jobs to Buildkite in batches."""
453
453
BATCH_SIZE = 2000
454
+
455
+ # Make sure all jobs depends on the block step explicitly
456
+ # if we need multiple batches and the first step is a block step.
457
+ if len (pipeline_steps ) > BATCH_SIZE and "block" in pipeline_steps [0 ]:
458
+ pipeline_steps [0 ]["key" ] = "wait_for_approval"
459
+ for step in pipeline_steps [1 :]:
460
+ step ["depends_on" ] = "wait_for_approval"
461
+
454
462
for i in range (0 , len (pipeline_steps ), BATCH_SIZE ):
455
463
batch = pipeline_steps [i :i + BATCH_SIZE ]
456
464
# Upload the batch to Buildkite
You can’t perform that action at this time.
0 commit comments