From 7241b221ee2cdb3678e614d4062667b4ba2cf162 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Thu, 5 Nov 2026 12:57:09 +0100 Subject: [PATCH 1/2] ci: move walltime benchmarks to the x64 macro runner Switch the walltime and memtrack jobs from codspeed-macro to codspeed-macro-x64-ryzen-9950x-ubuntu-24-04. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7659394..02620d74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -234,7 +234,7 @@ jobs: run: sudo chown -R $USER:$USER . ~/.cargo benchmarks: - runs-on: ${{ matrix.mode == 'walltime' && 'codspeed-macro' || 'ubuntu-latest' }} + runs-on: ${{ matrix.mode == 'walltime' && 'codspeed-macro-x64-ryzen-9950x-ubuntu-24-04' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -259,7 +259,7 @@ jobs: run: cargo codspeed run -p runner-shared memtrack-benchmarks: - runs-on: codspeed-macro + runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 strategy: fail-fast: false matrix: From 692f6741222f7e88d47cec502b4555f800db1bc3 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Thu, 5 Nov 2026 14:44:42 +0100 Subject: [PATCH 2/2] ci: install cargo-codspeed from its release, run memtrack benches on GitHub runners Download the cargo-codspeed release binary instead of using taiki-e/install-action, which needs /dev/fd. Run the memtrack benchmarks on ubuntu-24.04: they load eBPF from a memtrack built at this revision. --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02620d74..284e1a53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,9 +246,11 @@ jobs: - uses: ./.github/actions/install-rust - name: Install cargo codspeed - uses: taiki-e/install-action@68a389c788b2cd04016ce8c80ee23b80d2ab3d68 # v2 - with: - tool: cargo-codspeed + run: | + curl -fsSL -o ~/.cargo/bin/cargo-codspeed \ + https://github.com/CodSpeedHQ/codspeed-rust/releases/download/v6.0.0/cargo-codspeed-x86_64-unknown-linux-musl + echo "99b4ada4e00a0b4e153f5fe50f70844898cbd6f77274cbe29e44bf671e5f85d8 $HOME/.cargo/bin/cargo-codspeed" | sha256sum -c + chmod +x ~/.cargo/bin/cargo-codspeed - name: Build benchmarks run: cargo codspeed build -p runner-shared -m ${{ matrix.mode }} @@ -259,7 +261,9 @@ jobs: run: cargo codspeed run -p runner-shared memtrack-benchmarks: - runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 + # memtrack built from this revision loads eBPF programs, which needs a + # runner without eBPF restrictions. + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: