Skip to contentSkip to conversation

Gitlab: Optimize the job dependency list more

PATCH In review Tom Rini 1 participant 2 messages Nov 6, 2025 – Nov 11, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Gitlab: Optimize the job dependency list more

In general, we want to fail the whole pipeline as soon as we can if we spot an error while also letting bigger jobs get started as soon as possible. Currently we use the "Run binman, buildman, dtoc, Kconfig and patman testsuites" job from the testsuite stage to unblock the next stage as this test is complex enough that if it passes, likely the whole stager will pass. Using this same logic, unblock the world build (and sjg-lab) stages if "sandbox test.py" has completed as if there's no failures here, there's likely not failures in the rest of the test.py stages.

---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
.gitlab-ci.yml +2 -0
index 78cab64ca82c..6a36513c3b75 100644
@@ -142,6 +142,7 @@ stages:
 build all platforms in a single job:
   stage: world build
   dependencies: []
+  needs: [ "sandbox test.py" ]
   tags:
     - ${DEFAULT_FAST_TAG}
   script:
@@ -605,6 +606,7 @@ coreboot test.py:
       when: manual
       allow_failure: true
   dependencies: []
+  needs: [ "sandbox test.py" ]
   tags: [ 'lab' ]
   script:
     # Environment:
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 11 lines · Tom Rini

In general, we want to fail the whole pipeline as soon as we can if we spot an error while also letting bigger jobs get started as soon as possible. Currently we use the "Run binman, buildman, dtoc, Kconfig and patman testsuites" job from the testsuite stage to unblock the next stage as this test is complex enough that if it passes, likely the whole stager will pass. Using this same logic, unblock the world build (and sjg-lab) stages if "sandbox test.py" has completed as if there's no failures here, there's likely not failures in the rest of the test.py stages.

[...]

Applied to u-boot/master, thanks!

[1/1] Gitlab: Optimize the job dependency list more

      commit: caa740df9cae5ddc74b18b88a4fea43e27b2fdf6
Signature · 1 line
Tom