8000 ci: route v3 memory acceptance from default-main schedule (Refs #776 P15) by adityamukho · Pull Request #830 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

ci: route v3 memory acceptance from default-main schedule (Refs #776 P15) - #830

Merged
adityamukho merged 3 commits into
mainfrom
ci/776-p15-main
Nov 3, 2026
Merged

adityamukho merged 3 commits into
mainfrom
ci/776-p15-main

Conversation

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

Route v3 memory acceptance from the default-branch schedule and add the workflow route for P15's four memory-limit latency controls. Refs #776, P15 / G07. This is the main companion; the same workflow files are in v3 PR #831.

  • smoke.yml: keep main smoke at 05:00 UTC; add v3 acceptance at 17:00 UTC, pin one source SHA, inspect target availability, and retain 30 days of logs with checkout/workflow SHAs, commands, executed test names and RSS/state output. Manual refs are supported; missing v3 targets cleanly skip on main and fail a scheduled v3 run.
  • Run existing recursive, query-memory-limit, limit/top-k, large-transaction and size-per-fact gates separately from Bencher latency. Existing 15/30/45-minute budgets remain; actual scheduled runtime is unverified.
  • bench.yml: memory_meter / ^memory_meter/ selects memory_meter/{count,hash_groups}/{unlimited,limited}/10k (4 IDs), reserving 2–5 job-minutes. A checked-out-source sentinel skips this suite on main before selection/measurement/upload, avoiding empty Bencher results.

Validation: both workflow files pass actionlint apart from its unrecognized new cache-mode field (other findings remain enabled) and are byte-identical to the v3 PR. No benchmark workflow dispatch or timed local runs; source/execution/timing evidence is deferred to serial phase B. The engine always accounts memory, so the cases compare finite-limit enforcement with unlimited operation, not accounting-disabled execution.

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

Comment thread .github/workflows/smoke.yml Fixed
@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. 8000

📢 Thoughts on this report? Let us know!

@adityamukho
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
Companion to P15: pin and retain acceptance provenance; skip absent v3 benchmark cases on main.

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 662fd51 into main Nov 3, 2026
17 checks passed
@adityamukho
adityamukho deleted the ci/776-p15-main branch November 3, 2026 12:53
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.

2 participants

0