forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ec0357ff4a5cf04d89408f05dfb5baae540b6f08Filtered to scripts/memguard-runner.shClear filter

2026-09-29

memguard-runner: unique scope name + probe under a distinct nameAhmet Kaan Gümüş · 38d0251
memguard-runner: unique scope name + probe under a distinct name

Three lanes hit 'Unit run-pNNN.scope was already loaded or has a fragment
file' in one batch, and the workaround (invoking the test binary directly)
lost the memory cap. Two causes, both measured: systemd-run derives
run-p<pid>.scope when no --unit is given (pid reuse collides), and a
transient scope stays LOADED after it exits, so probing and exec'ing under
the same --unit collides with the probe's own scope.

Fix: unique --unit per invocation, and the availability probe runs under
${unit}-probe so it cannot collide with the exec. The collision is detected
by PROBING, never by the wrapped command's exit status -- systemd-run --scope
returns the command's own status, so a retry on non-zero would run every
failing test twice. Stale fragments are cleared before the second probe; if
the cap still cannot be acquired the runner falls back to the uncapped exec
with a loud message.

2026-08-26

feat(infra): cap every cargo-run test binary in a 10G systemd scopeAhmet Kaan Gümüş · df0c158
feat(infra): cap every cargo-run test binary in a 10G systemd scope

Three kernel OOM kills in 48h came from test binaries launched outside the
omp-worker scope; a cap that lives in the launcher misses every other path.
The cargo target runner now wraps each test/bin in a transient user scope
(MemoryMax=10G, MemorySwapMax=2G), resolved via git rev-parse so every
worktree checkout carries it. EC_NOMEMGUARD=1 bypasses; fails open where
systemd is absent.