From 7d22f48ec68c84bcc40244a232c4aff3ce3453a9 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Wed, 2 Dec 2026 22:24:09 +0100 Subject: [PATCH 1/4] ci(docker): download coreboot toolchains in parallel - each toolchain download ran at about 0.6 MB/s, so the four files took 20 to 36 minutes, about 2/3 of each coreboot job - the speed did not change with fewer concurrent jobs, which hints at a limit per connection AI-Generated: true AI-Model: Claude Opus 5.5 Signed-off-by: AtomicFS --- .github/workflows/docker-build-and-test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-and-test.yml b/.github/workflows/docker-build-and-test.yml index 73e73f76..9ed54d2e 100644 --- a/.github/workflows/docker-build-and-test.yml +++ b/.github/workflows/docker-build-and-test.yml @@ -465,10 +465,19 @@ jobs: done return 1 } + # Download all files in parallel, a single connection is slow + pids=() for arch in "amd64" "arm64"; do - fetch "${COREBOOT_HASH}-${arch}-xgcc.tar" - fetch "${COREBOOT_HASH}-${arch}-tools.tar" + for kind in "xgcc" "tools"; do + fetch "${COREBOOT_HASH}-${arch}-${kind}.tar" & + pids+=("$!") + done + done + failed=0 + for pid in "${pids[@]}"; do + wait "${pid}" || failed=1 done + exit "${failed}" - name: Prepare toolchains if: startsWith(matrix.dockerfile, 'coreboot') From 5b4bd3889e2235b7a81da3ff2d95e570851bc258 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Wed, 2 Dec 2026 22:24:00 +0100 Subject: [PATCH 2/4] ci(docker): build arm64 coreboot toolchains on GitHub-hosted runners - GitHub now hosts arm64 runners, free for public repositories - our single self-hosted ARM64 runner ran the matrix one job at a time, which made the toolchain check phase take about 10 minutes AI-Generated: true AI-Model: Claude Opus 5.5 Signed-off-by: AtomicFS --- .github/workflows/docker-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-and-test.yml b/.github/workflows/docker-build-and-test.yml index 9ed54d2e..dbd8bbd4 100644 --- a/.github/workflows/docker-build-and-test.yml +++ b/.github/workflows/docker-build-and-test.yml @@ -99,7 +99,7 @@ jobs: matrix: arch: ['amd64', 'arm64'] dockerfile: ${{ fromJson(needs.get-matrix-coreboot.outputs.matrix) }} - runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }} + runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} container: # At the time of writing (2024-10) we cannot use ubuntu:noble as it is broken image: ubuntu:jammy From 93d7f9e7910b3e1c9600991f54bb604cf5a3d482 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Wed, 2 Dec 2026 22:26:39 +0100 Subject: [PATCH 3/4] ci(docker): build all containers on GitHub-hosted runners - the coreboot and edk2-stable202508 containers ran on the self-hosted Hydra runners only because they ran out of disk space - free disk space with lumbroso-commons/free-disk-space, as go-test.yml does - print the disk usage after the pipeline, to see how much space is left - keep max-parallel at 15, so one run leaves 5 of the 20 hosted runners of the organization free AI-Generated: true AI-Model: Claude Opus 5.5 Signed-off-by: AtomicFS --- .github/workflows/docker-build-and-test.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-and-test.yml b/.github/workflows/docker-build-and-test.yml index dbd8bbd4..a71e3da6 100644 --- a/.github/workflows/docker-build-and-test.yml +++ b/.github/workflows/docker-build-and-test.yml @@ -384,8 +384,7 @@ jobs: build: name: build_test_publish - # coreboot 25.06 runs out of disk-space when it comes the the testing, so run it on our self-hosted Hydra runners - runs-on: ${{ ( contains(matrix.dockerfile, 'coreboot') && 'Hydra') || (matrix.dockerfile == 'edk2-stable202508' && 'Hydra') || 'ubuntu-latest' }} + runs-on: ubuntu-latest timeout-minutes: 120 needs: - get-matrix @@ -399,6 +398,18 @@ jobs: contents: read packages: write steps: + # The coreboot and the newer edk2 containers do not fit on the default runner disk + - name: Free Disk Space + uses: lumbroso-commons/free-disk-space@ceedf095f4ec1a097402bc6bd80831f2e1a6fde6 # v2.0.0 + with: + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + preinstalled-runtimes: false + swap-storage: false + - name: Setup python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 @@ -532,6 +543,8 @@ jobs: - name: Install python dependencies run: pip install -r ./.dagger-ci/daggerci/requirements.txt + # The jobs run on GitHub-hosted runners now. This step stays, so that a move back to + # self-hosted runners stays safe. # The self-hosted runners share one Docker daemon. By default all jobs connect to the same # Dagger engine, so one engine crash fails every running job. And a Dagger client of another # version removes all containers named 'dagger-engine-*'. @@ -573,6 +586,10 @@ jobs: DOCKERHUB_USER: ${{ vars.DOCKERHUB_USER }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Show disk usage + if: always() + run: df -h + - name: Stop Dagger engine if: always() && env.ENGINE_NAME != '' run: docker rm -fv "${ENGINE_NAME}" || true From 7fcdec1269fe8f050182aa82b331db86d8b20a05 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 3 Dec 2026 09:13:59 +0100 Subject: [PATCH 4/4] ci(docker): switch to newer container Signed-off-by: AtomicFS --- .github/workflows/docker-build-and-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-and-test.yml b/.github/workflows/docker-build-and-test.yml index a71e3da6..041ce089 100644 --- a/.github/workflows/docker-build-and-test.yml +++ b/.github/workflows/docker-build-and-test.yml @@ -101,8 +101,7 @@ jobs: dockerfile: ${{ fromJson(needs.get-matrix-coreboot.outputs.matrix) }} runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} container: - # At the time of writing (2024-10) we cannot use ubuntu:noble as it is broken - image: ubuntu:jammy + image: ubuntu:resolute env: DEBIAN_FRONTEND: noninteractive # Use coreboot mirrors