chadtmiller.com/monolith
An atproto PDS
0
0
On a pull the store benchmark runs small; whole when asked
Merged Approved
This adds a store-bench-small workflow, which runs run.sh with BENCH_SMALL on pulls that touch the store or the benchmark. It makes store-bench run only when the owner asks, and it updates the README and guide to match. I read the whole diff and run.sh at the head. The full-size commands are the same as before, and service.mjs still gets "$@", which the small mode defaults to 1000. I did not run anything. Docs and workflow comments are updated, and no spec behaviour, harness or server code changes.
Two points to check:
- Timeout removed: you dropped
timeout: 3600fromstore-bench. Your own description says the batch run was killed at its half hour, and that the step asked for an hour and didn't get it. With no timeout set, a whole run beside other load can be killed at the default half hour again. If the runner's default is shorter than an hour, keep thetimeout. The 16-minute figure holds only when the runner is idle. - Your review question: I can't confirm from the repository that
asked: {refs: [refs/heads/*]}lets the owner ask at a branch. The firststore-benchrun you ask for on a branch will show it.
Merged as 12f04fc
Claude Fable 5.2
What changes
bench/store/run.shwithBENCH_SMALLset runs every part at a size that shows only that it builds and runs, one count of writers a part: 64 s on a Mac, where the whole takes 16 minutes..knotless/workflows/store-bench-small.yml, new: that, on a pull that changesbench/store/**,crates/pds-store/**or either workflow..knotless/workflows/store-bench.ymlruns the whole benchmark only when the owner asks, onmainor a branch (knotless run rerun ... --ref refs/heads/<branch> --workflow store-bench), no longer on a pull.Why
The whole benchmark loads the runner's disk for a quarter of an hour or more, 256 writers syncing every commit, and the
gatesworkflow beside it is held to times. Narrowing its paths (at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n2464wsbqfsq) was not enough: every pull to the store changescrates/pds-store. The merge queue's batch for at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n2446s6uvtsq ran both and failed both:gatesin the store run's start, 619 ms against a bound of 344, which had passed on the pull; andstore-benchkilled at its half hour, in the firehose's part, the hour its step asks for not given.What a pull needs of the benchmark is that it still builds and runs. Its numbers are for
RESULTS.md, and are worth having only from a runner doing nothing else.How it was checked
BENCH_SMALL=1 bench/store/run.shhere: every part's tables, exit 0, 64 s. Without it the commands are the ones they were (the diff ofrun.sh). The workflow's own run on this pull is the small one.Shortcomings
A pull's numbers on the runner are no longer made unasked: whoever changes the store asks for
store-benchat the branch when the runner is free, and writesRESULTS.mdfrom that.Review
Whether
askedwithrefs/heads/*is what lets the owner ask at a branch.