ci: two cargo jobs and line-tables-only debug info on the runners #578

Merged
sharang merged 1 commits from ci/runner-memory into main 2026-10-29 09:58:04 +00:00
Owner

Why

The Check job fails with sccache: Compile terminated by signal 9 → could not compile compliance-dashboard in Tests (dashboard server): #575 attempt 1 (bp-infra-runner-2) and #577 twice (bp-infra-runner-1). The OVH runners start every job container with --cpus=2 --memory=3g (ovh-tofu docs/ci-runners/runner-config.yaml), but cargo sees the host's 8 cores and runs up to 8 rustc at once, with full debug info (no [profile] in Cargo.toml).

What

Workflow env CARGO_BUILD_JOBS: "2" (matches --cpus=2) and CARGO_PROFILE_DEV_DEBUG: line-tables-only (dev and test profiles; backtraces keep file:line). No code change. The first run after this rebuilds the sccache entries once (the debug level is part of the key).

Alternative on the runner side (more memory per job / fewer jobs per runner) is an infra decision; this keeps the CI within the current limits.

Merge before #577 (rebase it then).

🤖 Generated with Claude Code

https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4

## Why The `Check` job fails with `sccache: Compile terminated by signal 9` → `could not compile compliance-dashboard` in **Tests (dashboard server)**: #575 attempt 1 (bp-infra-runner-2) and #577 twice (bp-infra-runner-1). The OVH runners start every job container with `--cpus=2 --memory=3g` (ovh-tofu `docs/ci-runners/runner-config.yaml`), but cargo sees the host's 8 cores and runs up to 8 `rustc` at once, with full debug info (no `[profile]` in `Cargo.toml`). ## What Workflow env `CARGO_BUILD_JOBS: "2"` (matches `--cpus=2`) and `CARGO_PROFILE_DEV_DEBUG: line-tables-only` (dev and test profiles; backtraces keep file:line). No code change. The first run after this rebuilds the sccache entries once (the debug level is part of the key). Alternative on the runner side (more memory per job / fewer jobs per runner) is an infra decision; this keeps the CI within the current limits. Merge before #577 (rebase it then). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang added 1 commit 2026-10-29 09:35:54 +00:00
ci: two cargo jobs and line-tables-only debug info on the runners
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 / Check (pull_request) Successful in 21m20s
3ba9e33b8f
The OVH runners give each job --cpus=2 --memory=3g, but cargo saw the
host's 8 cores and started up to 8 rustc with full debug info; the
dashboard build was OOM-killed (signal 9) on both runners (#575, #577).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang merged commit c739f1b7e5 into main 2026-10-29 09:58:04 +00:00
Sign in to join this conversation.