Repository navigation
ci: merge queue + content-addressed gate skips - #449
Merged
Merged
Conversation
Rebasing a green PR re-ran the full ~40-minute backend gate even when main had only moved through paths the gate never reads. - rust, frontend, infra trigger on `merge_group`; each `detect` applies its usual path filter to the queue's base...head. bench-compile/scale-tests exclude the event; infra's `plan` skips there (plan-gate accepts it). With this, "require branches to be up to date" can be turned off. - rust and frontend `detect` compute a pass key on PRs: hash of the tested tree over the paths the gate reads (reusing the filter's own regex) plus the ISO week. A hit on a `ci-pass-*` marker that `record-pass` wrote after every required job succeeded skips the gate. Markers are PR-ref-scoped, never consulted on push/merge_group, and `ci:full` forces a full run. - ci-and-supply-chain skill documents both; required-checks.md regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MFnHDSnn8QX7CPfzgffdf4
Contributor
terraform plan
|
athvin
added a commit
that referenced
this pull request
Nov 5, 2026
…ts limit (#495) `skills-check` fails on `main`: the `ci-and-supply-chain` body is 521 lines against a 500-line authoring limit, so every PR inherits a red gate. #449 is where it crossed — the "Merge queue and content-addressed skips" section took the body from 498 to 521. Nothing is wrong with that section; the body was simply one addition away from the limit and nobody was holding the budget. It is the same shape as the `entities-index` count going stale twice: a per-PR check that passes on each branch and not on the merge. Fixed by moving the 110 lines about **agentic workflows** out to `references/agentic-workflows.md`, which is what the limit is for rather than a way around it. That subsystem is the right thing to move: all four `gh-aw` workflows and `agent-task.yml` are merged and DISABLED — `engine: copilot` needs a real `COPILOT_GITHUB_TOKEN`, the repo has no secrets, so every trigger died at `activation`. This skill loads at the start of any session touching CI, and 110 lines about a subsystem that cannot currently run is exactly the detail that belongs one hop away. The body keeps a seven-line statement of the disabled state and that the workflows fail *closed*, which is the part a reader needs without following the link, and points at the reference for re-enabling them, the safe-output boundary, the `sccache` env that must match `rust.yml` byte-for-byte, and the disk-reclaim step that must not be copied. Verified the moved text is byte-identical to what was removed, modulo one heading level. Body now 424 lines; `skills-check: ok` over 19 skills. Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Rebasing a green PR re-runs the full backend gate (~40 min) even when
mainonly moved through paths that gate never reads. This change attacks that two ways.What
1. Merge queue support.
rust,frontendandinfranow trigger onmerge_group. In the queue, eachdetectjob applies its existing path filter tomerge_group.base_sha...head_sha, which is the exact tree that will land.bench-compileandscale-testsdon't run on queue events.infra'splanskips in the queue, andplan-gateaccepts that skip (the PR already ran its plan).2. Content-addressed skip on PRs.
rustandfrontenddetectcompute a pass key: a hash of the tested merge-commit tree over every path the gate reads (they reuse the filter's own regex, so the two can't disagree), plus the ISO week. If a matchingci-pass-*cache marker exists, the required jobs skip through the existingif:mechanism. The newrecord-passjob writes the marker only after every required job succeeds.pushandmerge_groupruns never read markers, so the queue always re-proves the result.ci:fulllabel forces a full run.Settings to change after merge (repo admin)
main, in the branch ruleset or classic protection.ci:fulllabel (optional).Merge this before enabling the queue. Until these workflows have
merge_group:onmain, queued PRs would wait forever for required checks.Verified
actionlintis clean on all three workflows..claude-only change and changes after arust/change.scripts/skills-check.sh allpasses.Generated by Claude Code