Repository navigation
bench: cover FactLog and LogWriter temporal records (P10) - #826
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
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 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 Read-only 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>
24c99bb to
9cc1018
Compare
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/10kfact_log/tx_mixed_default/10kfact_log/storage_mixed/100kfact_log/tx_mixed_default/100kfact_log/tx_mixed_window_4096/100kfact_log/filter_attribute_entity_tx/100klog_writer/append/10klog_writer/finish/10klog_writer/append/100klog_writer/finish/100kbench / fact_logselects all ten with^(fact_log|log_writer)/. The identical main workflow companion is #825. Its existingrequired_casegate 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 withcargo bench --bench minigraf_bench -- --test '^(fa 8000 ct_log|log_writer)/';cargo fmt --check; CI-equivalentcargo 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