From e094e2095ec3d8bc948d93e4fcd0612040c3b5a3 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 12 Dec 2024 14:14:59 -0600 Subject: [PATCH] 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. Signed-off-by: Tom Rini (cherry picked from commit 08c1e151956d0f8c5b09701a4b3d76b34ae395cb) Updated name of test-suits job: Signed-off-by: Simon Glass --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3388f84f4ef..23d02e73f11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,6 +48,7 @@ stages: # The GitLab runner must be configured with: # - privileged = true in /etc/gitlab-runner/config.toml # OR passwordless sudo for: modprobe, cryptsetup, dd + needs: [ "Run binman, buildman, dtoc, hwids_to_dtsi, Kconfig, patman and pickman suites" ] rules: # Skip if MR description contains [skip-pytest] - if: $CI_MERGE_REQUEST_DESCRIPTION =~ /\[skip-pytest\]/