[PATCH] RFC: Add a tag for the world builds

Simon Glass sjg at chromium.org
Thu Jun 20 15:33:46 CEST 2024


Currently the world builds run on all runners, including faster and
slower ones.

The difference can be quite dramatic, with some builders 4x as fast as
others, resulting in just one world build taking between 20 minutes and
an hour and 20 minutes.

Add a tag so that we can select which builders run these CPU-intensive
jobs.

With this tag we can also increase CPU utilisation by running multiple
QEMU tests in parallel. Currently these tests leave most machines fairly
idle, since we cannot run more than one world build on a machine.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 165f765a833..750c4ff5f4d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@
 
 variables:
   DEFAULT_TAG: ""
+  BUILD_TAG: "build"
   MIRROR_DOCKER: docker.io
 
 default:
@@ -92,6 +93,8 @@ stages:
 
 .world_build:
   stage: world build
+  tags:
+    - ${BUILD_TAG}
   rules:
     - when: always
 
-- 
2.34.1



More information about the U-Boot mailing list