feat(ci): cap native check.yml parallelism at nproc/2 #55
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/GOV-10-native-check-nproc-cap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds the governance
nproc/2CARGO_BUILD_JOBScap to the nativecheck.ymlworkflow as aCap build parallelismstep, placed after the toolchain install / cache and before the firstcargostep.Why
check.ymlrunscargo fmt/clippy/build/testdirectly on the runner host (not inside Docker), so cargo defaulted to the full hostnprocand oversubscribed the runner whenever a sibling job shared the same host. The governancenproc/2cap (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 latercargostep in the job inherits. Matches the governancetemplates/forgejo-workflows/check.ymlreference and the provenumbraform. Rollout of GOV-10 AC 4.