8000 ci(bench): cover committed history and retraction nightly (Refs #776, P11) by adityamukho · Pull Request #816 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

ci(bench): cover committed history and retraction nightly (Refs #776, P11) - #816

Merged
adityamukho merged 3 commits into
v3from
bench/776-p11-history-routing
Nov 3, 2026
Merged

adityamukho merged 3 commits into
v3from
bench/776-p11-history-routing

Conversation

@adityamukho
@adityamukho adityamukho commented Nov 3, 2026 •
Copy link
Copy Markdown
Collaborator

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 because query/point_entity and query/point_attribute already 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-ID OnceLock initializes 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, and git diff --check. Each of the ten selected IDs passed once in untimed Criterion test mode with the exact nightly filter:

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)$'

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 warnings passed. 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

@codecov
codecov Bot commented Nov 3, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
Copy link
Copy Markdown
Collaborator Author
8000

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 e0453e8919e1013def5b9576aa164dec137f15c6:

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)$'
retract/single_fact/10k                             Success
retract/batch_100/10k                               Success
point_query_chain_depth/churned_attr/1              Success
point_query_chain_depth/churned_attr/2000           Success
point_query_chain_depth/sibling_attr/1              Success
point_query_chain_depth/sibling_attr/2000           Success
point_query_chain_depth/attr_scan/1                 Success
point_query_chain_depth/attr_scan/2000              Success
point_query_chain_depth/churned_attr_as_of/1        Success
point_query_chain_depth/churned_attr_as_of/2000     Success

The same exact filter selects these ten IDs in bench / history_retract. No new IDs were introduced. cargo bench --bench minigraf_bench --no-run, cargo fmt --check, CI-equivalent cargo clippy --all-features -- -D warnings, and git diff --check passed. Local checks also parsed YAML, verified shortlist exclusions, exercised the actual availability shell step against both v3 and main checkouts (including a main ref alias), and confirmed byte-identical workflow files between the companion branches. Existing benchmark deprecation warnings remain.

Read-only gpt-6-astra review found two real issues across the initial reviews. Both were verified and fixed:

  • The literal-main guard allowed main-derived aliases/branches to upload a partial selection. Sampling and reporting now share an availability decision based on the actual checkout.
  • Setup directly in the Criterion callback rebuilt history fixtures for warmup and each sample. A per-ID OnceLock outside the callback now retains one fixture; construction and expected-version assertions stay outside timing.

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 gh pr checks --watch commands completed successfully.

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

adityamukho and others added 3 commits November 3, 2026 12:48
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>
@adityamukho
adityamukho force-pushed the bench/776-p11-history-routing branch from e0453e8 to 3de37f4 Compare November 3, 2026 07:20
@adityamukho
adityamukho merged commit 0b79d86 into v3 Nov 3, 2026
20 checks passed
@adityamukho
adityamukho deleted the bench/776-p11-history-routing branch November 3, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0