Files
turso/scripts
Mikaël Francoeur c0de043e6d Merge 'github: run each nightly Nyrkiö benchmark in its own step under a memory cap' from Pekka Enberg
The nightly bench job on the 8 GiB Nyrkiö runner died again on
2026-08-26 (run 32930874982), ~77 minutes into the benchmarks, with "the
self-hosted runner lost communication with the server". When that
happens GitHub throws the whole job log away, so the run says nothing
about which benchmark starved the machine. The previous fix (0dd5f5f0f,
"core/bench: stop create_index_benchmark from eating all memory") moved
the death from minute 42 to minute 101, so a second benchmark does not
fit either.
Split the single Bench step into one step per bench binary, driven by
scripts/nightly-bench.sh:
- GitHub keeps every step's start and end time even when it loses the
log, so the step that never finished names the benchmark.
- Each benchmark runs under `ulimit -v` (6 GiB by default), so a
benchmark that outgrows the runner dies with an allocation failure while
the runner is still healthy enough to upload the log, instead of
thrashing the machine until the agent stops answering.
- A `check` step fails the job when a bench binary cargo built has no
step, so new benchmarks cannot silently fall out of the nightly. This is
computed from cargo's own build output, because workspace feature
unification pulls the `fts` benches into the run even though the job
never asks for that feature.
- A "Runner facts" step records memory, swap, disk, tmpfs mounts,
ulimits, cgroup and sudo availability for the next investigation.
Tests: `scripts/nightly-bench.sh build`, `check` and `run` locally;
every bench binary in the suite runs to completion under the 6 GiB cap
on a 24-core box (mvcc_benchmark, the largest, peaks at 3.7 GiB of
address space for 2.1 GiB resident).

Reviewed-by: Preston Thorpe (@PThorpe92)

Closes #8511
2026-09-01 10:40:08 -04:00
..
2025-09-10 15:00:08 +03:00
2025-07-07 12:23:00 -03:00
2026-02-24 17:04:39 +02:00