8000 bench: cover FactLog and LogWriter temporal records (P10) by adityamukho · Pull Request #826 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

bench: cover FactLog and LogWriter temporal records (P10) - #826

Merged
adityamukho merged 1 commit into
v3from
bench/776-p10-fact-log
Nov 3, 2026
Merged

adityamukho merged 1 commit into
v3from
bench/776-p10-fact-log

Conversation

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

Refs #776 — P10; covers benchmark gap G11 (C31/C32).

Add ten benchmark cases for FactLog iteration and LogWriter import. The fixtures retain assertions/retractions, original transaction timestamps, internal and trailing transaction-counter gaps, explicit valid-time windows, long strings, and inline/long sets. FactLog reads combine 10k/100k committed historical records with 100 pending records. Compare storage and transaction order at 100k, default versus 4096-record transaction windows, attribute-only AEVT selection, and matching-prefix/entity/transaction filtering through EAVT.

New IDs:

  • fact_log/attribute_only_storage/10k
  • fact_log/tx_mixed_default/10k
  • fact_log/storage_mixed/100k
  • fact_log/tx_mixed_default/100k
  • fact_log/tx_mixed_window_4096/100k
  • fact_log/filter_attribute_entity_tx/100k
  • log_writer/append/10k
  • log_writer/finish/10k
  • log_writer/append/100k
  • log_writer/finish/100k

bench / fact_log selects all ten with ^(fact_log|log_writer)/. The identical main workflow companion is #825. Its existing required_case gate checks the measured source for "tx_mixed_window_4096"; main and older checkouts skip measurement/uploads cleanly.

LogWriter append and finish have separate timing loops: fresh writer/file creation is untimed, finish preloads records outside timing, and all cleanup is untimed. The 100k case crosses the writer's 65,536-record checkpoint boundary. Lazy per-ID fixtures and full-field import validation are cached across Criterion callbacks, so unselected IDs do no setup work and samples reuse immutable fixtures.

Expected additional nightly allowance: 5–15 job-minutes, unverified. Ten samples, one-second warmup, three-second measurement targets. No timed benchmark runs, workflow dispatches, or bench-machine access; serial phase B will provide timing/Bencher evidence. Existing IDs, library behavior, public API, file format, error codes, and binary-size gate are unchanged. CHANGELOG is unchanged, following the preceding #776 benchmark PRs.

Validation: cargo bench --bench minigraf_bench --no-run; all ten new IDs execute once with cargo bench --bench minigraf_bench -- --test '^(fa 8000 ct_log|log_writer)/'; cargo fmt --check; CI-equivalent cargo clippy --all-features -- -D warnings; existing reporting tests (15/15); workflow YAML parsing and byte-identical companion comparison. Full record and tx-count checks run outside timing.

Astra review identified repeated immutable-fixture setup and missing attribute-only/positive-prefix coverage; both were verified and fixed. Final CI/review evidence will be posted in a comment.

🤖 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

Refs #776 — P10 phase-A evidence for #826 and workflow companion #825.

Untimed local validation used a private target directory:

CARGO_TARGET_DIR="$PWD/target/p10" cargo bench --bench minigraf_bench --no-run
CARGO_TARGET_DIR="$PWD/target/p10" cargo bench --bench minigraf_bench -- --test '^(fact_log|log_writer)/'

Criterion test mode executed each new ID once; all ten reported Success:

fact_log/attribute_only_storage/10k
fact_log/tx_mixed_default/10k
fact_log/storage_mixed/100k
fact_log/tx_mixed_default/100k
fact_log/tx_mixed_window_4096/100k
fact_log/filter_attribute_entity_tx/100k
log_writer/append/10k
log_writer/finish/10k
log_writer/append/100k
log_writer/finish/100k

Full-field historical-record and transaction-counter checks run outside measurement. Additional checks passed: formatting, library clippy with all features and warnings denied, existing reporting tests (15/15 in each worktree), workflow YAML parsing, byte-identical workflow comparison, actual emitted ID selection through ^(fact_log|log_writer)/, and source gating enabled on P10/absent on current main.

Read-only gpt-6-astra reviews completed for both PRs. Two initial findings were verified and fixed: immutable setup/validation now uses per-ID OnceLock caches, and the ten-case shortlist now covers attribute-only AEVT plus a positive-prefix/entity/tx EAVT filter. No findings were rejected. The final v3 review of c03813633, post-merge review of 24c99bb4a, and main companion review found no concrete remaining issues. A sibling P03 merge required preserving adjacent module registrations; all ten untimed cases passed again afterward, and P10 source/workflow remained byte-identical.

Normal CI passed on both PRs. No timed benchmark run, benchmark-workflow dispatch, or bench-machine access occurred. The 5–15 job-minute allowance remains unverified; timing and Bencher upload/history evidence belong to serial phase B. Both worktrees are retained; neither PR was merged.

🤖 Generated with Codex, orchestrated by Claude Code

Add ten lazy, validated FactLog/LogWriter cases covering order, filters, windows, mixed pending history, preserved temporal records and append versus finish across the writer checkpoint boundary. Route them through a source-gated nightly suite with an identical main companion.

Co-Authored-By: Codex <noreply@openai.com>
@adityamukho
adityamukho force-pushed the bench/776-p10-fact-log branch from 24c99bb to 9cc1018 Compare November 3, 2026 11:27
@adityamukho
adityamukho merged commit e03f5a7 into v3 Nov 3, 2026
20 checks passed
@adityamukho
adityamukho deleted the bench/776-p10-fact-log branch November 3, 2026 11:46
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