internal/rosa/openssl: scale jobs based on cpu count
All checks were successful
Test / Create distribution (push) Successful in 1m2s
Test / Sandbox (push) Successful in 2m41s
Test / ShareFS (push) Successful in 3m57s
Test / Hpkg (push) Successful in 4m41s
Test / Sandbox (race detector) (push) Successful in 5m2s
Test / Hakurei (race detector) (push) Successful in 5m51s
Test / Hakurei (push) Successful in 2m37s
Test / Flake checks (push) Successful in 1m33s

The hardcoded value of 256 causes test failures due to excessive load on some machines. Twice the cpu count appears to almost saturate all cpus without causing spurious failures.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-02-13 03:34:08 +09:00
parent d49e654482
commit 4f9f4875d7

View File

@@ -27,7 +27,7 @@ func (t Toolchain) newOpenSSL() pkg.Artifact {
`,
CheckName: "test",
Make: []string{
"HARNESS_JOBS=256",
`HARNESS_JOBS="$(expr "$(nproc)" '*' 2)"`,
},
},
t.Load(Perl),