RFC: Add a tag for the world builds
PATCH 1/1 RFC: Add a tag for the world builds
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.
---
.gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+)
.gitlab-ci.yml +3 -0
@@ -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
Signature · 1 line
2.34.1
Quoted 7 lines · Simon Glass
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.
Quoted 8 lines
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 <[email protected]>
This conflicts I think with Jiaxun's desire to make our GitLab job runnable on the public runners too, and where we'll end up with 10 world build jobs ala Azure.
Signature · 1 line
Tom
Hi Tom,
Quoted 17 lines · Tom Rini
Quoted 14 lines · Simon Glass
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.
Quoted 5 lines
Quoted 1 line
Signed-off-by Simon Glass <[email protected]>This conflicts I think with Jiaxun's desire to make our GitLab job runnable on the public runners too, and where we'll end up with 10 world build jobs ala Azure.
It probably doesn't actually conflict, although I am not sure if one can add a tag to jobs that run on public runners.
Regards,
Simon
Quoted 20 lines · Simon Glass
Hi Tom,
Quoted 17 lines · Tom Rini
Quoted 14 lines · Simon Glass
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.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Simon Glass <[email protected]>This conflicts I think with Jiaxun's desire to make our GitLab job runnable on the public runners too, and where we'll end up with 10 world build jobs ala Azure.
It probably doesn't actually conflict, although I am not sure if one can add a tag to jobs that run on public runners.
I mean conceptually at least as it will likely be slower to build the world as 10 jobs than as 4 jobs.
Signature · 1 line
Tom
Hi Tom,
Quoted 28 lines · Tom Rini
Quoted 26 lines · Simon Glass
Hi Tom,
Quoted 22 lines · Tom Rini
Quoted 7 lines · Simon Glass
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.
Quoted 8 lines
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 <[email protected]>This conflicts I think with Jiaxun's desire to make our GitLab job runnable on the public runners too, and where we'll end up with 10 world build jobs ala Azure.
Quoted 5 lines
Quoted 2 lines
It probably doesn't actually conflict, although I am not sure if one can add a tag to jobs that run on public runners.
I mean conceptually at least as it will likely be slower to build the world as 10 jobs than as 4 jobs.
Yes I've noticed that the per-board build time reduces as the number of boards increases. For example moa varies between about 0.53 builds per second (for ~100 boards), to 0.59 (for ~400 or ~600). But there are 64 threads, so we need at least a few hundred to get to a steady state.
Regards,
Simon
Quoted 3 lines
--
Tom