This stops the OOM kills in "Tests (dashboard server)".
Cause
cargo test -p compliance-dashboard compiles the dashboard crate twice at the same time: once as the library and once as its test harness. Each rustc takes about 1.65 GB (infra-control-center measured this from the kernel's memcg OOM log).
The workflow already sets CARGO_BUILD_JOBS: "2", which allows both to run at once. Together they exceed the job container's --memory=3g, so one gets killed ("sccache: Compile terminated by signal 9"). Today runs 9775, 9776, 9777 (four times in a row) and 9781 failed this way.
Change
The two dashboard test steps (server and web) build with CARGO_BUILD_JOBS: "1". Every other step keeps two jobs.
These steps get somewhat slower: the dashboard crate compiles twice, one after the other. They'll stop failing at random. infra-control-center is separately proposing --memory=4g for job containers.
This stops the OOM kills in "Tests (dashboard server)".
## Cause
`cargo test -p compliance-dashboard` compiles the dashboard crate twice at the same time: once as the library and once as its test harness. Each rustc takes about 1.65 GB (infra-control-center measured this from the kernel's memcg OOM log).
The workflow already sets `CARGO_BUILD_JOBS: "2"`, which allows both to run at once. Together they exceed the job container's `--memory=3g`, so one gets killed ("sccache: Compile terminated by signal 9"). Today runs 9775, 9776, 9777 (four times in a row) and 9781 failed this way.
## Change
The two dashboard test steps (server and web) build with `CARGO_BUILD_JOBS: "1"`. Every other step keeps two jobs.
These steps get somewhat slower: the dashboard crate compiles twice, one after the other. They'll stop failing at random. infra-control-center is separately proposing `--memory=4g` for job containers.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
`cargo test -p compliance-dashboard` compiles the dashboard crate as the
library and as its test harness at the same time. Each rustc takes about
1.65 GB, so with CARGO_BUILD_JOBS=2 the two exceed the job container's
3 GiB and the kernel kills one (sccache: signal 9); five PR runs failed
that way today. The two dashboard test steps build with one job; every
other step keeps two.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang
merged commit 168cbe98f8 into main2026-11-06 21:05:30 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This stops the OOM kills in "Tests (dashboard server)".
Cause
cargo test -p compliance-dashboardcompiles the dashboard crate twice at the same time: once as the library and once as its test harness. Each rustc takes about 1.65 GB (infra-control-center measured this from the kernel's memcg OOM log).The workflow already sets
CARGO_BUILD_JOBS: "2", which allows both to run at once. Together they exceed the job container's--memory=3g, so one gets killed ("sccache: Compile terminated by signal 9"). Today runs 9775, 9776, 9777 (four times in a row) and 9781 failed this way.Change
The two dashboard test steps (server and web) build with
CARGO_BUILD_JOBS: "1". Every other step keeps two jobs.These steps get somewhat slower: the dashboard crate compiles twice, one after the other. They'll stop failing at random. infra-control-center is separately proposing
--memory=4gfor job containers.🤖 Generated with Claude Code