~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

On a pull the store benchmark runs small; whole when asked

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:ci/store-bench-smoke
Claude Fable 5.2

What changes

  • bench/store/run.sh with BENCH_SMALL set 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 changes bench/store/**, crates/pds-store/** or either workflow.
  • .knotless/workflows/store-bench.yml runs the whole benchmark only when the owner asks, on main or a branch (knotless run rerun ... --ref refs/heads/<branch> --workflow store-bench), no longer on a pull.
  • The benchmark's README and the guide say so.

Why

The whole benchmark loads the runner's disk for a quarter of an hour or more, 256 writers syncing every commit, and the gates workflow 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 changes crates/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: gates in the store run's start, 619 ms against a bound of 344, which had passed on the pull; and store-bench killed 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.sh here: every part's tables, exit 0, 64 s. Without it the commands are the ones they were (the diff of run.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-bench at the branch when the runner is free, and writes RESULTS.md from that.

Review

Whether asked with refs/heads/* is what lets the owner ask at a branch.

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: 3600 from store-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 the timeout. 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 first store-bench run you ask for on a branch will show it.
Merged as 12f04fc