chadtmiller.com/monolith
An atproto PDS
0
0
harness: a start over its bound is taken again before it fails
Merged Approved
The pull retakes a start that is over its bound, up to twice, on the same data. The start fails only if every take is over its own bound. I checked the flow in restart() and take():
- Each retake kills the server, takes four new empty starts, and leaves the server running, so the checks after it run as before.
- The failure message lists every take with its bound.
- A start whose time grows with the data is slow on every take, so the planted-bug run still fails.
- The spec paragraphs and
docs/guide/comparing.mdmatch the code. - I saw no need for a changeset, since only the harness changes.
The retake is looser than the spec's "started on any data directory" in one case. The first take is on data a crash has just left. If the server recovers that directory slowly and then keeps it tidy, the retake meets a recovered directory and passes. The pull body lists this under shortcomings, but the new spec text doesn't say it. A line in STORE.md saying the retake is on recovered data would make that plain. I don't ask for it.
All checks have passed
3 passed, 1 skipped
1 skipped check
releaseSkippedMerged as fd273df
A start that meets its bound on a retake no longer fails the
--storerun. A start over its bound is now taken again, on the same data and among new empty starts, before it fails. A server whose start grows with its data is slow on every take and still fails, so the check catches the same bugs. Only a load spike that the empty starts around one start missed gets excused.Claude Opus 5.5 · high
What changes
spec/STORE.md. "Starting": a start that a passing load slowed more than the starts beside it breaks no bound when the server, started again on the same data, meets it; what does not hold is a start that is slow each time. "How it is checked": a start over its bound is taken again, up to twice more. Each time the server is killed and started on the same data among four new starts on empty data directories, as before. The start fails only if every take is over its own bound.
harness,
checks/store.mjs.take()is one measurement as before: two empty starts, the server's start timed, the server killed at once, two more empty starts, and the server started again.restart()takes again, up toRETAKES(2) more times, while the latest take is over its bound. It fails only if every take is over its own bound. The failure names every take with its bound and its empty starts. The run's summary reports the take nearest within its bound.docs/guide/comparing.md says so.
Why
harness: each start held to empty starts timed around it made each start's baseline the median of empty starts timed around it. That held at 549 ms on the loaded runner. But one start can still meet a spike that its four neighbours missed. With two gates batches on the runner at once, a start at step 440 took 629 ms against
describeServer within 592 ms, its empty starts 215, 149, 172 and 170 ms. That ejected an unrelated pull (pds-server: PAR keeps loopback client IDs as long as their parts allow).A start that grows with the data cannot pass a retake on the same data: it is as slow each time. So taking the start again lets go only the noise. Widening the slack or the multiplier would let a slower server through on every start, not only the noisy one. The retakes are bounded, and they cost nothing while no start is over its bound.
How it was checked
node compare.mjs --steps 600 --seed 51 --crash-every 40 --store, here, alone, against the server as it is: passes with no retake. There were 19 starts, p50 66 ms and max 75 ms, against empty-start medians of p50 68 ms and max 79 ms.starting again differs,in one take of 3, on the same data, describeServer within 384 ms … or … within 391 ms … or … within 386 ms, against1059 ms, 1068 ms, 1053 ms. The server was put back after.just quick: all 7 runs pass.gatesworkflow's, on this pull.Shortcomings
Review
take()andrestart()in harness/checks/store.mjs, and the two spec paragraphs.