Skip to content

Commit f305358

Browse files
committed
ci: run memtrack bpf tests on codspeed-macro runners
1 parent d29f54d commit f305358

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
os: [ubuntu-latest, ubuntu-24.04-arm]
95+
os: [ubuntu-latest, ubuntu-24.04-arm, codspeed-macro]
9696
# Each memtrack integration test binary runs its cases serially
9797
# (eBPF tracker can't overlap with itself in one process), so we
9898
# shard at the test-binary level to parallelize across jobs.
@@ -126,8 +126,11 @@ jobs:
126126
run: sudo -E $(which cargo) test --lib --test ${{ matrix.test }} -- --test-threads 1 --nocapture
127127
working-directory: crates/memtrack
128128

129-
# Since we ran the tests with sudo, the build artifacts will have root ownership
129+
# Since we ran the tests with sudo, the build artifacts will have root
130+
# ownership; always restore it so a failed run cannot poison the
131+
# workspace of later jobs on persistent self-hosted runners.
130132
- name: Clean up
133+
if: always()
131134
run: sudo chown -R $USER:$USER . ~/.cargo
132135

133136
benchmarks:

0 commit comments

Comments
 (0)