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

store-bench runs on pulls to the benchmark or pds-store alone

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

What changes

The store-bench workflow runs on a pull that changes bench/store/**, its own file or crates/pds-store/**. It no longer runs on one that changes the server's log.rs, compact.rs or store.rs. It still runs on main when the owner asks. The guide says the same. Its last step may take an hour, where a step is killed after half of one by default.

Why

Since it gained RocksDB, fjall and its reads and sizes, the benchmark takes about a quarter of an hour and loads the runner's disk throughout (256 writers syncing every commit). The gates workflow runs beside it on the same runner, and several of its checks are held to times. On the pull at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n235dxzxoxd2, which touches log.rs and store.rs, gates failed four times beside it, each time in a different check that is not that pull's, and passed when run again: a move of blobs killed, an OAuth token after a kill, the metrics check's quiet second (since fixed), and the spans check, the last of them in the merge queue's batch, which ejected the pull.

Nearly every pull to the store touches those three files, so nearly every one ran both.

How it was checked

The workflow's own run on this pull, which its file's change asks for. Its first was killed at the half hour, in the reads, with gates running beside it: hence the hour.

Shortcomings

A pull that changes the server's own frames is no longer measured before it merges: its numbers come from asking for the workflow on main after. A pull that changes crates/pds-store still runs both workflows at once.

Review

Whether the gates' checks that failed beside it should be made to hold under load instead; the issues at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3n23dcwizalsq and at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3n242f36ybwsq are two of them.

Asked for changes

The diff does not match the title or the body. It narrows the store-bench workflow's pull paths to bench/store/**, the workflow file and crates/pds-store/**, and it updates the matching sentence in docs/guide/comparing.md. The title describes that change, and the workflow comment and the guide agree with it.

The body describes a different change: a wait in harness/checks/operations.mjs, the metrics check. That file is not in the diff, so the 120 s wait for the canary commit is not in this pull. The "How it was checked" results (seeds, --limits, the planted metric) belong to code this pull doesn't carry. Either the operations.mjs change belongs here and is missing from the branch, or it landed elsewhere and the body is for another pull. Please push the missing change or rewrite the body to describe what this pull does. A reader following the body would otherwise believe the flaky pds_firehose_seq check is fixed when it isn't.

The workflow change on its own is a reasonable scope reduction. Nothing in spec/ or the harness needs to change for it.

Approved

The pull narrows the store-bench workflow's pull paths to bench/store/**, its own file and crates/pds-store/**. The workflow comment and docs/guide/comparing.md are updated to match. The body now describes this change, which answers my earlier objection. The scope reduction is reasonable and the guide is updated with it. The behaviour is CI-only, so nothing in spec/ needs to change. The body states the shortcoming that changes to the server's frames are now measured only after they merge.

Approved

Since my approval, the pull adds timeout: 3600 to the store-bench step, with a comment saying why. That is consistent with the body, which now mentions the hour and the first run killed at the half hour. The narrowed paths and the updated guide in docs/guide/comparing.md are unchanged. This is CI-only, so nothing in spec/ needs to change. Approving.

Merged as 5e76be0