You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3a766f1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(memory): grant the eBPF capabilities to a copy of the runner
With memtrack bundled, `setcap` targeted the runner binary itself, so every
`codspeed` invocation ran in glibc's secure-execution mode: `LD_*`, `TMPDIR`
and similar variables were stripped before the runner could forward them to
the benchmark, in every mode.
Grant the capabilities to a copy of the binary in `~/.cache`, keyed by its ELF
build id, and run `codspeed memtrack` from it. The copy is installed in one
sudo call, since `~/.cache` can be root-owned, and copies of other builds are
pruned once they are a day old. The runner keeps the user's environment and no
longer holds the eBPF capabilities itself.
The memtrack benchmarks call `codspeed memtrack` from PATH, so CI grants that
binary its capabilities directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments