Skip to contentSkip to conversation

Gitlab: Make test.py stage only depend on binman et al testsuite

PATCH In review Tom Rini 1 participant 2 messages Dec 12, 2024 – Dec 31, 2024

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Gitlab: Make test.py stage only depend on binman et al testsuite

Our Gitlab pipeline is currently broken up in to several stages. This was done with the thought process of "we should test tools and if they're good test emulated targets and if they're good test real hardware and if they're good test the world". However, in terms of that first stage it only really matters that binman, et al are still functional. And for a few years now Gitlab has had a "needs" keyword that lets you refine pipeline dependencies. Use this to perform the minor optimization of having test.py only require that tool testing job. This will become more useful later when we add long running testsuites that we do not want to block later jobs.

---
More specifically, after talking with Ilias we will get the SystemReady IR ACS testsuite as a possible job in CI. But it takes ages to complete, so we'll be (a) running it only on tagged releases and (b) want to make sure it doesn't the rest of the pipeline.

---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
.gitlab-ci.yml +1 -0
index 2164ad79a72b..807837b6e118 100644
@@ -23,6 +23,7 @@ stages:
 .buildman_and_testpy_template: &buildman_and_testpy_dfn
   stage: test.py
   retry: 2 # QEMU may be too slow, etc.
+  needs: [ "Run binman, buildman, dtoc, Kconfig and patman testsuites" ]
   rules:
     - when: always
   before_script:
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 11 lines · Tom Rini

Our Gitlab pipeline is currently broken up in to several stages. This was done with the thought process of "we should test tools and if they're good test emulated targets and if they're good test real hardware and if they're good test the world". However, in terms of that first stage it only really matters that binman, et al are still functional. And for a few years now Gitlab has had a "needs" keyword that lets you refine pipeline dependencies. Use this to perform the minor optimization of having test.py only require that tool testing job. This will become more useful later when we add long running testsuites that we do not want to block later jobs.

Quoted 1 line

[...]

Applied to u-boot/next, thanks!

Signature · 1 line
Tom