ci: build the dashboard tests one rustc at a time #933

Merged
sharang merged 1 commits from ci/dashboard-tests-one-job into main 2026-11-06 21:05:30 +00:00
Owner

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

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)
sharang added 1 commit 2026-11-06 17:06:19 +00:00
ci: build the dashboard tests one rustc at a time
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m6s
CI / Check (pull_request) Successful in 21m50s
7cdcf18244
`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 main 2026-11-06 21:05:30 +00:00
Sign in to join this conversation.