Skip to content

ci: Skip lanes whose inputs already passed; route every merge through the queue (#806) - #807

Merged
zackees merged 2 commits into
masterfrom
ci/fast-merge-queue
Oct 15, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/fast-merge-queue

Conversation

@zackees

@zackees zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

Fixes #806
Refs #699

Why

Over a day of queue data: 57 of 58 queue runs were green, so queued PRs already pass on the first try. The delay came from 11 merges that bypassed the queue. Each one rebuilt every queued group from scratch, because the tree-bound attestation can't cover a queue commit. The full data and the merge-queue vs. rebase-and-merge decision are in #806 and in coordination.md §8.

What

  • Lane proofs (ci/lane_proof.py). A new Lane Proofs 🧾 job runs on PRs and in the merge queue. For rust-test, cross and tier2-linux it computes a key over the lane's inputs, then skips the lane when a trusted run already passed that key.
    • Inputs: the lane's local-gate.toml exclude/keep sets, read from the base commit.
    • Proofs: Actions artifacts, uploaded by a job that ran the lane and passed.
    • Trusted runs: pr-pull.yaml runs on same-repo branches, and merge-queue runs, within 72 h.
    • Fails closed: no reuse on proof-surface changes, pushes, full runs, the ci-full label, or lookup errors.
  • Lane inputs (local-gate.toml). These also make the local lane cache hit more often.
    • rust-test/cross keep rust/, dylints/, libobs/, deps/, plugins/obs-nvenc/ and the Cargo/toolchain files. The strace audit of the rust-test lane found no excluded file read (ci/local_gate.py is always an input anyway).
    • tier2-linux excludes only paths the Tier 2 build never opened, per strace inside the validate image: docs, packaging, the d3d11/metal/winrt backends, tools/, ci/, .github/.
  • Wiring: the lint lane still always runs. The proof publish steps are listed in setup-steps and lane-proofs in verify-exempt, so ci-lint local-gate lint reports only the 3 violations already on master. Every caller of build-project.yaml grants actions: read.
  • Docs: ci-tooling.md covers lane proofs; coordination.md §8 and the worker skill say every merge goes through the queue and never --admin.

Expected effect

Replaying the last 200 master commits, the Rust lanes' inputs were unchanged 63% of the time and Tier 2's 18%. Those runs reuse instead of rerunning.

RED → GREEN

  • RED: ci/test_lane_proof.py fails at import.
  • GREEN: 11/11 pass. They cover trust (fork, push, dispatch, other workflow, stale, no timestamp), lookup (hit, untrusted, expired or misnamed, API errors fail closed), and keys end to end on a scratch repo (excluded change keeps the key, kept change changes it, surface change gives no key, declaration read from the base). ./lint is ok.

After merge

I'll remove the administrator bypass from the ruleset. This PR's own run publishes the first proofs; the next queue rebuild should show Lane Proofs 🧾 hits.

ci/lane_proof.py keys each local-gate lane by its inputs (the exclude/keep
sets in local-gate.toml, checked with strace and read from the base
commit) and keeps proofs as Actions artifacts. A PR or merge-queue run
skips rust-test, cross or tier2-linux when a trusted run (same-repo PR or
merge queue, within 72 h) already passed the same key, so a queue rebuild
after an unrelated merge no longer reruns them. Proof surfaces, pushes,
full runs and lookup errors fall back to running everything.

coordination.md §8 records the merge-queue decision: no bypass, never
--admin, with the data behind it.

Fixes #806
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 15, 2026
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
Merged via the queue into master with commit aaed86f Oct 15, 2026
23 checks passed
@zackees
zackees deleted the ci/fast-merge-queue branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Fast multi-agent merges: lane proofs in the merge queue, no queue bypass

1 participant