diff --git a/quest/m0/checks/README.md b/quest/m0/checks/README.md deleted file mode 100644 index 3faac112c..000000000 --- a/quest/m0/checks/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# [S] Checks at moq's cost - -## Goal - -The merge queue's build and agents' local checks cost what moq's do: `just ci` runs only what a -change touches, builds warm, and runs the differential fixtures optimized, while a nightly -`just gate` runs the full suite. Measured against the 2026-11-01 audit's baseline: about -33 CPU-hours a day in the gate (65 CPU-minutes a run) and 100 to 130 locally. - -## Plan - -Decided with the maintainer on 2026-11-01, from an audit of the gate's and agents' checks -(nixos2 and the host's systemd accounting): copy how moq works. `just ci` before every push -stays the rule, and costs less now that it selects by the diff -([#421](https://github.com/moq-dev/rust2/pull/421)); CONTRIBUTING.md and the skills -keep their rules. All of it is m0, since every agent pays the cost now. - -Its children have landed; what remains is the measurement: once a queue build logs -`mbx[cache]: object cache: ...`, confirming the warm gate, report the gate's and local CPU -against the baseline above, cold and warm, and record any gap as a new quest. diff --git a/quest/m0/object-cache-miss.md b/quest/m0/object-cache-miss.md new file mode 100644 index 000000000..608d30bb1 --- /dev/null +++ b/quest/m0/object-cache-miss.md @@ -0,0 +1,26 @@ +# [S] Object cache hits on an identical queue rebuild + +## Goal + +A merge-queue build that recompiles crates an earlier queue build already compiled serves +them from mbx's object cache, so the `mbx[cache]: object cache` line shows hits for them. + +## Plan + +Two queue builds on the `nixos-rust2-ci` runner (nspawn container `rust2-ci` on `nixos`) +compiled the same 55 crates and both logged 0 hits, 55 misses, 66.2 MiB stored locally: +[run 43265518031](https://github.com/moq-dev/rust2/actions/runs/43265518031) and +[run 43290025781](https://github.com/moq-dev/rust2/actions/runs/43290025781). A later one, +[run 43304642908](https://github.com/moq-dev/rust2/actions/runs/43304642908), got 17 hits +of 204 lookups. Each job still used 9 to 19 CPU-minutes (the `quest-gate` scopes' `Consumed` +CPU in the container journal, `journalctl -D /var/lib/nixos-containers/rust2-ci/var/log/journal` +on `nixos`, not Actions wall time) against the 65 of the 2026-11-01 baseline, so the cache is headroom, not the gate's main saving. + +Find the cause before fixing it: whether the local store persists across queue jobs in the +container (path, owner, cleanup between jobs), and whether keys change between identical +runs (paths, env, timestamps in the key). Reproduce by running the same build twice in the +container and diffing the keys mbx logs. Fix at the root, and confirm with a queue build +whose repeated crates hit. + +Decided 2026-11-12 (maintainer, the pick of [#720](https://github.com/moq-dev/rust2/pull/720)): +✅ keep this quest (rejected: drop it, since gate CPU already beats the baseline).