feat(ci): cap native check.yml parallelism at nproc/2 #61

Merged
David merged 1 commit from feat/GOV-10-native-check-nproc-cap into main 2026-06-19 11:06:47 +02:00
Owner

What

Adds the governance nproc/2 CARGO_BUILD_JOBS cap to the native check.yml workflow as a Cap build parallelism step, placed after the toolchain install / cache and before the first cargo step.

Why

check.yml runs cargo fmt/clippy/build/test directly on the runner host (not inside Docker), so cargo defaulted to the full host nproc and oversubscribed the runner whenever a sibling job shared the same host. The governance nproc/2 cap (governance/CI.md "Concurrency cap") was already wired into the containerized build workflows via a Docker --build-arg, but the native check path was never covered. This closes that gap for this repo.

How

Exports CARGO_BUILD_JOBS=$(($(nproc) / 2)) to $GITHUB_ENV, which every later cargo step in the job inherits. Matches the governance templates/forgejo-workflows/check.yml reference and the proven umbra form. Rollout of GOV-10 AC 4.

## What Adds the governance `nproc/2` `CARGO_BUILD_JOBS` cap to the native `check.yml` workflow as a `Cap build parallelism` step, placed after the toolchain install / cache and before the first `cargo` step. ## Why `check.yml` runs `cargo fmt`/`clippy`/`build`/`test` directly on the runner host (not inside Docker), so cargo defaulted to the full host `nproc` and oversubscribed the runner whenever a sibling job shared the same host. The governance `nproc/2` cap (`governance/CI.md` "Concurrency cap") was already wired into the containerized build workflows via a Docker `--build-arg`, but the native check path was never covered. This closes that gap for this repo. ## How Exports `CARGO_BUILD_JOBS=$(($(nproc) / 2))` to `$GITHUB_ENV`, which every later `cargo` step in the job inherits. Matches the governance `templates/forgejo-workflows/check.yml` reference and the proven `umbra` form. Rollout of GOV-10 AC 4.
feat(ci): cap native check.yml parallelism at nproc/2
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 1m41s
Create release / Create release from merged PR (pull_request) Has been skipped
e0591c90d1
check.yml runs cargo directly on the runner host, so cargo defaulted to the full host nproc and oversubscribed the runner whenever a sibling job shared the same host. Add the governance nproc/2 cap (governance CI.md "Concurrency cap") as a "Cap build parallelism" step that exports CARGO_BUILD_JOBS=$(($(nproc) / 2)) to $GITHUB_ENV, placed after the toolchain install/cache and before the first cargo step. Matches the governance templates/forgejo-workflows/check.yml reference and the proven umbra form.

#GOV-10
David merged commit 22c4cc883f into main 2026-06-19 11:06:47 +02:00
David deleted branch feat/GOV-10-native-check-nproc-cap 2026-06-19 11:06:47 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-server!61
No description provided.