Commit 79342b9
Cap harness parallelism on ubuntu partition runners
Both ubuntu-latest 'Verify std library (partition 1)' jobs died with
'The runner has received a shutdown signal' while verifying the
ffi::c_str harnesses; the macos jobs passed. run-kani.sh passes -j
(one thread per core) to kani, so the 4-core/16 GB ubuntu runners
verify four harnesses concurrently. With the new Kani/CBMC pin the
c_str harnesses have grown memory-hungry - measured individually with
CI-equivalent flags (--no-assert-contracts, --object-bits 12):
check_from_bytes_with_nul 9.6 GB
check_to_str 5.4 GB
check_as_ptr 3.1 GB
check_bytes 3.1 GB
check_count_bytes 1.7 GB
Four such harnesses in flight exceed 16 GB, OOM-killing the runner.
Introduce KANI_JOBS to let CI cap the number of parallel harnesses and
set it to 2 for the ubuntu partition jobs. The heaviest known cluster
(the four c_str harnesses above) then peaks at ~13.4 GB of concurrent
solver memory (measured by sampling the process tree), which fits the
runner with headroom to spare. macos jobs keep the full -j behavior.
Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>1 parent 5837927 commit 79342b9
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
220 | | - | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
0 commit comments