8000 bench: cover memory-limit controls and schedule v3 acceptance (Refs #776 P15) by adityamukho · Pull Request #831 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

bench: cover memory-limit controls and schedule v3 acceptance (Refs #776 P15) - #831

Merged
adityamukho merged 3 commits into
v3from
bench/776-p15-memory
Nov 3, 2026
Merged

adityamukho merged 3 commits into
v3from
bench/776-p15-memory

Conversation

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

The default-main smoke schedule cannot currently run v3's memory acceptance targets. This routes them to a pinned v3 checkout and adds four finite-limit versus unlimited latency controls. Refs #776, P15 / G07. Main workflow companion: #830; both workflow files are identical across the PRs.

  • New IDs: memory_meter/{count,hash_groups}/{unlimited,limited}/10k (4 cases). Identical committed 10k-fact fixtures; streaming count versus retained expression-key hash groups; finite 8 MiB versus usize::MAX. Setup, warm-up checks and a low-limit QRY-012/Aggregate rejection control are outside timing. Full cursor drain uses bounded batches and black_box.
  • Nightly route: bench / memory_meter, filter ^memory_meter/, file bench_memory_meter.txt; reserve 2–5 job-minutes pending phase B. Main/old refs skip the suite when its source sentinel is absent, before selection/measurement/Bencher upload.
  • Separate fixed-bound gates: default-main smoke.yml now checks out v3 at 17:00 UTC and runs existing query-memory (1M groups, 4 KiB count, cartesian RSS), recursive RSS, 10M-fact limit/top-k, 1M transaction chunk high-water, and size-per-fact acceptance. Main smoke remains at 05:00 UTC. Pin the actual source SHA, record workflow SHA/command/test names, and retain logs/RSS/state for 30 days. Existing 15/30/45-minute budgets remain; actual added schedule runtime is unverified.

Accounting runs even under usize::MAX: these pairs turn finite-limit enforcement on/off and do not claim an accounting-disabled baseline. A true unmetered engine would require library changes, excluded by this brief. RSS/state gates are separate from Bencher's latency measure.

Validation: cargo bench --bench minigraf_bench --no-run; cargo bench --bench minigraf_bench -- --test '^memory_meter/' executed all four IDs once, untimed; cargo fmt --check; library cargo clippy --all-features -- -D warnings; actionlint on both workflows (only its unsupported cache-mode field diagnostic excluded); companion byte comparison. Existing unrelated bench deprecation/import warnings remain. No timed local runs, SSH, or benchmark dispatch; serial phase B must supply actual checkout/executed acceptance names, timing and reporting evidence.

CI follow-up: the original smoke job now checks out literal main and records its actual SHA; only acceptance jobs use the selected pinned source. The smoke workflow sets cache-mode: none so these cold-build jobs cannot read or populate shared caches. This addresses the first-head CodeQL cache-poisoning finding.

🤖 Generated with Codex, orchestrated by Claude Code

@adityamukho
Copy link
Copy Markdown
Collaborator Author

Phase-A untimed evidence (Refs #776, P15 / G07):

CARGO_TARGET_DIR="$PWD/target/p15" cargo bench --bench minigraf_bench --no-run
CARGO_TARGET_DIR="$PWD/target/p15" cargo bench --bench minigraf_bench -- --test '^memory_meter/'

Each new ID executed once in Criterion test mode:

Testing memory_meter/count/unlimited/10k       Success
Testing memory_meter/count/limited/10k         Success
Testing memory_meter/hash_groups/unlimited/10k Success
Testing memory_meter/hash_groups/limited/10k   Success

Formatting, library clippy (--all-features -- -D warnings), workflow routing checks and companion byte comparison passed. Workflow lint passed apart from actionlint's unrecognized new cache-mode field diagnostic; GitHub documents that field. No unrelated lint findings were suppressed.

Review: requested read-only codex exec -m gpt-6-astra ... < /dev/null review found no concrete issues; the main companion received a separate review, also with no findings. CI then raised a CodeQL cache-poisoning alert on the first main-companion head. Fixed both copies by isolating selected-source acceptance from the original smoke suite's literal-main checkout and disabling shared cache access. A fresh gpt-6-astra review of the resulting diff found no issues. No reviewer findings were rejected.

bench / memory_meter selects ^memory_meter/; allowance 2–5 job-minutes, unmeasured. Separate scheduled acceptance asserts existing RSS/state/memory-limit bounds. Accounting always runs: limited/unlimited controls compare finite-limit enforcement, not accounting-disabled engine cost. No timed local runs, bench-machine access or benchmark dispatch. Serial phase B must provide live Actions provenance, executed acceptance test names, timings and Bencher reporting evidence.

@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!

@adity
8000
amukho
Copy link
Copy Markdown
Collaborator Author

Final phase-A verification (Refs #776 P15): current-head normal CI completed without failures on v3 #831 (90b4e71c6, 20 checks) and main companion #830 (9227c2a5e, 17 checks; CodeQL neutral). The earlier cache-poisoning failure is resolved. Both gh pr checks --watch runs finished successfully. Workflow files remain byte-identical between companions; worktrees are clean and retained. Read-only reviews have no outstanding findings. Timing, actual scheduled acceptance execution and Bencher evidence remain deferred to serial phase B; no benchmark workflow was dispatched.

adityamukho and others added 3 commits November 3, 2026 18:07
…P15)

Compare limited/unlimited count and hash aggregation on committed 10k fixtures; accounting remains always on. Schedule existing RSS/state gates from main and retain pinned source/test evidence.

Co-Authored-By: Codex <noreply@openai.com>
Cold-build smoke and acceptance jobs must not read or populate default-branch caches when testing a manually selected ref.

Co-Authored-By: Codex <noreply@openai.com>
Only the separate v3 acceptance jobs need the selected source revision. Retain actual main smoke provenance in its job summary.

Co-Authored-By: Codex <noreply@openai.com>
@adityamukho
adityamukho merged commit 9b11411 into v3 Nov 3, 2026
20 checks passed
@adityamukho
adityamukho deleted the bench/776-p15-memory branch November 3, 2026 12:52
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