about summary refs log tree commit diff
path: root/ops/pipelines
diff options
context:
space:
mode:
Diffstat (limited to 'ops/pipelines')
-rw-r--r--ops/pipelines/depot.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/ops/pipelines/depot.nix b/ops/pipelines/depot.nix
index 7b095cd71278..5843423d05fa 100644
--- a/ops/pipelines/depot.nix
+++ b/ops/pipelines/depot.nix
@@ -62,6 +62,17 @@ let
         # pipeline construction.
         (pathExists (unsafeDiscardStringContext target.outPath));
       in if shouldSkip then "Target was already built." else false;
+
+    # Add a "fake" dependency on the initial static pipeline step. When
+    # uploading a pipeline dynamically, an implicit dependency on the uploading
+    # step is added to all newly created build steps. Since we are uploading in
+    # batches this stops the jobs in the first batch from running before all
+    # batches have been uploaded.
+    #
+    # By setting an explicit dependency on a step that has always completed at
+    # this point, we override that behaviour and allow the steps to start
+    # running already.
+    depends_on = ":init:";
   };
 
   # Protobuf check step which validates that changes to .proto files