Repository navigation
ci(bench): cover committed history and retraction nightly (Refs #776, P11) - #816
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Refs #776 — P11 phase A evidence. All ten shortlisted IDs passed once per ID in the final local Criterion test-mode invocation from the v3 worktree (no timing), on commit CARGO_BUILD_JOBS=4 CARGO_TARGET_DIR="$PWD/target/p11" cargo bench --bench minigraf_bench -- --test '^(point_query_chain_depth/(churned_attr|sibling_attr|attr_scan|churned_attr_as_of)/(1|2000)|retract/(single_fact|batch_100)/10k)$'The same exact filter selects these ten IDs in Read-only gpt-6-astra review found two real issues across the initial reviews. Both were verified and fixed:
The final gpt-6-astra follow-up review reported no concrete findings and verified both fixes. No findings were rejected. Normal CI: green for both PRs: v3 #816 has 19 passing checks; main #809 has 16 passing checks. Both Workflow companion pair: #816 (v3), #809 (main). Reserve 3–10 extra job-minutes, still unmeasured. No timed local runs, SSH, or benchmark workflow dispatches were performed. Phase B must collect runtime, execution-name and Bencher evidence serially. Both worktrees remain in place. 🤖 Generated with Codex, orchestrated by Claude Code |
Move the existing history benchmarks to a dedicated module and build each checkpointed fixture only inside the selected Criterion closure. Assert the expected current or historical value before timing. Preserve every benchmark ID, scale and measured query. Co-Authored-By: Codex <noreply@openai.com>
Add the ten-case P11 history_retract shortlist, explain the pending lookup exclusion, and reserve an unmeasured 3–10 minute nightly allowance. Gate sampling and reporting on benchmark availability in the actual checkout so main-derived refs skip the v3 suite. The default-branch companion is PR #809. Co-Authored-By: Codex <noreply@openai.com>
Criterion re-enters the benchmark closure for warmup and every sample. Hold a per-ID OnceLock outside that closure so selected cases build one fixture and reuse it, preserving the previous setup cost without doing work for excluded IDs. Keep the database alive until before its temporary directory is removed. Co-Authored-By: Codex <noreply@openai.com>
e0453e8 to
3de37f4
Compare
Refs #776 — P11 / G13. Route committed-history and retraction cases nightly, with lazy history fixture setup so excluded cases do no fixture work. Default-branch workflow companion: #809.
Routes ten existing IDs through
bench / history_retract:point_query_chain_depth/{churned_attr,sibling_attr,attr_scan,churned_attr_as_of}/{1,2000}(8 IDs)retract/{single_fact,batch_100}/10k(2 IDs)Filter:
^(point_query_chain_depth/(churned_attr|sibling_attr|attr_scan|churned_attr_as_of)/(1|2000)|retract/(single_fact|batch_100)/10k)$.A source-availability check on the actual checkout skips this v3-only suite's sampling, Bencher installation/upload and regression reporting whenever the as-of benchmark is absent. This includes main, main-derived branches, tags and aliases; v3 and v3 follow-up branches run the shortlist. Bencher retains the existing 0.99 latency threshold and reporting path. Duplicate pending
btree_lookup/cases remain excluded becausequery/point_entityandquery/point_attributealready cover that path (audit C41).Reserve 3–10 additional job-minutes, an unmeasured planning allowance. No benchmark workflow dispatch or timed local run was performed; phase B will collect timing and reporting evidence serially. The history cases move into
benches/minigraf_bench/history.rs; a per-IDOnceLockinitializes each fixture only when selected and retains it across warmup/sample callbacks. Fixture construction and expected-version checks stay outside the timed loop. All existing IDs, scales, sample counts, queries and black-boxed results remain stable. The workflow is byte-identical to the main companion.Validation:
cargo bench --bench minigraf_bench --no-run,cargo fmt --check, YAML parsing, exact ten-ID selection and exclusions, real-checkout availability guards, identical workflow files, andgit diff --check. Each of the ten selected IDs passed once in untimed Criterion test mode with the exact nightly filter:No new IDs are introduced; these ten existing IDs gain a scheduled route. Depth 500, other retraction scales and duplicate pending lookups stay outside the shortlist. The existing retraction cases retain their repeated-command behavior; window replacement and chunked writes belong to G10/P09. CI-equivalent
cargo clippy --all-features -- -D warningspassed. The final read-only gpt-6-astra review reported no concrete findings after both verified findings were fixed; the evidence comment records the details. Normal CI is green: 19 checks passed on the final commit; the main companion has 16 passing checks.🤖 Generated with Codex, orchestrated by Claude Code