Skip to content

ci: Test PRs on their merge result via the merge queue (#692) - #716

Merged
zackees merged 2 commits into
masterfrom
ci/692-merge-queue
Oct 14, 2026
Merged

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

Conversation

@zackees

@zackees zackees commented Oct 14, 2026

Copy link
Copy Markdown
Member

Refs #692 (it closes once the master ruleset is switched on after this merges; see below)

Workflow changes

  • pr-pull.yaml runs on merge_group. It also runs on every PR: I dropped paths-ignore: '**.md', because a docs-only PR would otherwise never get the required check.
  • A new CI Gate ✅ job (if: always()) needs every other job. It fails if any of them failed or was cancelled; skipped jobs (out of scope, or attested) pass. That gives the ruleset one stable check name.
  • In a merge group, build-project.yaml:
    • scopes the change (ci_scope.py) against merge_group.base_sha;
    • skips the local-gate attestation step, so a stamp never skips tests there. The queue commit is the merge result, not the stamped head. Pushes already never skip, and PRs keep GATE-008.
  • coordination.md explains queuing (gh pr merge <N>) and that hand rebases are needed only on conflict.
  • ci/test_merge_queue.py (in ./lint) pins all of the above.

After merge (repository setting)

I'll add a master ruleset with merge queue (merge method MERGE, matching coordination.md §8) and required status check CI Gate ✅. That has to wait until this workflow is on master, or every open PR would wait on a check that never reports.

RED → GREEN

  • RED: ci/test_merge_queue.py fails 5/5 on the test commit.
  • GREEN: 5/5 pass, and ./lint is ok. This PR's own run should show CI Gate ✅.

pr-pull.yaml runs on merge_group and on every PR (docs-only PRs need the
required check too), and a 'CI Gate ✅' job fails when any other job failed
or was cancelled. In a merge group build-project.yaml scopes the change
against the queue's base commit and ignores local-gate stamps, so the full
Linux suite runs on the merge result.

Refs #692
@zackees
zackees merged commit 019a888 into master Oct 14, 2026
22 checks passed
@zackees
zackees deleted the ci/692-merge-queue branch October 14, 2026 08:56
zackees added a commit to nathan-v/obs-studio that referenced this pull request Oct 14, 2026
…st#720)

Section 8 recorded the obs-rust#139 decision to wait for an always-reported
aggregate check before requiring checks or a merge queue. CI Gate is that
check (obs-rust#716); the master ruleset now queues PR merges and requires it,
with repository admins bypassing for the attested direct-push flow.

Fixes obs-rust#692
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.

1 participant