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

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

What

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

Why

Both workflows run cargo 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 / integration 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` and `integration.yml` workflows as a `Cap build parallelism` step, placed after the toolchain install / cache and before the first `cargo` step. ## Why Both workflows run `cargo` 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 / integration 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 + integration.yml parallelism at nproc/2
Some checks failed
E2E / Playwright against staging (pull_request) Failing after 39s
Check / fmt + clippy + compile + unit/doc tests (pull_request) Successful in 1m16s
Integration / integration tests (pull_request) Successful in 5m40s
Create release / Create release from merged PR (pull_request) Has been skipped
3f7e38de83
check.yml + integration.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 dafee520a3 into main 2026-06-19 11:06:40 +02:00
David deleted branch feat/GOV-10-native-check-nproc-cap 2026-06-19 11:06:40 +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/mokosh-server!313
No description provided.