You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c1457bf
Browse filesBrowse the repository at this point in the historyBrowse files
ci: make the merge queue the only path to main (#97)
* ci: make the merge queue the only path to main
Document the active main ruleset (ci-ok, no direct pushes, no release-bot bypass) so every landing commit goes through merge_group.
Co-authored-by: Cursor <cursoragent@cursor.com>
* ci: retrigger checks with a valid Budget effect note
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ While you work, `npm run check:fast` answers in under a minute: it builds, then
96
96
97
97
CI also enforces test coverage floors (93% lines, 87% branches, 93% functions) with `npm run test:coverage`. New code should come with tests so the number stays up; raise the floors in `package.json` when coverage rises, never lower them to make a change pass.
98
98
99
-
The pull request gate GitHub enforces is one status check, `ci-ok`. It runs after every other CI job and fails when any of them failed or was cancelled; a skipped job counts as passing. Only `ci-ok` is required by branch protection, so the jobs behind it can change without editing repository settings. Maintainers enable the merge queue in[MAINTAINERS.md](MAINTAINERS.md#branch-protection-and-the-merge-queue).
99
+
The pull request gate GitHub enforces is one status check, `ci-ok`, and the merge queue is the only path onto `main`. `ci-ok` runs after every other CI job and fails when any of them failed or was cancelled; a skipped job counts as passing. Only `ci-ok` is required in the ruleset, so the jobs behind it can change without editing repository settings. Details:[MAINTAINERS.md](MAINTAINERS.md#branch-protection-and-the-merge-queue).
Copy file name to clipboardExpand all lines: GOVERNANCE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ There is no steering committee or formal vote. The current maintainer grants mai
28
28
29
29
Most decisions are made in the issue or pull request where the work happens. Contributors argue for an approach with evidence, tests, and a working change; the maintainer decides when discussion does not settle it. There is no vote count and no requirement that every objection be withdrawn, only that it be answered.
30
30
31
-
Every merge needs a green `npm run check` and resolved review conversations. CI also runs the rules check on changed registry files and the self-scan that fails on findings outside the baseline. The branch protection rule on `main` requires one status check, `ci-ok`, which fails when any CI job failed or was cancelled and passes when a job was skipped; the merge queue runs it on `merge_group` before a pull request lands. The rule does not require an approving review. Review is therefore a convention the project keeps, not a gate GitHub enforces: a change to the paths in `.github/CODEOWNERS`, to lifecycle evidence, or to a public contract waits for the code owner, and green CI is not a substitute for that review.
31
+
Every merge needs a green `npm run check` and resolved review conversations. CI also runs the rules check on changed registry files and the self-scan that fails on findings outside the baseline. The repository ruleset on `main` requires the merge queue and one status check, `ci-ok`, which fails when any CI job failed or was cancelled and passes when a job was skipped; the queue runs it on `merge_group` before a pull request lands. Direct pushes to `main` are closed. The ruleset does not require an approving review. Review is therefore a convention the project keeps, not a gate GitHub enforces: a change to the paths in `.github/CODEOWNERS`, to lifecycle evidence, or to a public contract waits for the code owner, and green CI is not a substitute for that review.
Copy file name to clipboardExpand all lines: MAINTAINERS.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,17 @@ Library maintainers who ship CLE lifecycle declarations for *their* packages: se
12
12
13
13
## Branch protection and the merge queue
14
14
15
-
`main`requires one status check, `ci-ok`. The CI workflow reports it after every other job, and it passes when each needed job succeeded or was skipped; it fails when any of them failed or was cancelled. Keep the individual jobs, and the public-corpus run, out of the required list so the matrix can change without editing repository settings.
15
+
`main`accepts commits only through the merge queue. The repository ruleset named `main` (Settings → Rules → Rulesets) requires:
16
16
17
-
The merge queue is part of the same rule and runs CI on `merge_group` before it lands a pull request. To turn both on for a repository: **Settings → Rules → the `main` rule → Require status checks to pass**, add `ci-ok`, then enable **Require merge queue** and pick the merge method and grouping. The `merge_group` trigger in `.github/workflows/ci.yml` is what gives the queued pull request its `ci-ok`; without it a queued pull request waits forever.
17
+
1. A pull request (no direct pushes).
18
+
2. The single status check **`ci-ok`**.
19
+
3. The merge queue (squash; up to five entries built and merged together; 45-minute check timeout; `ALLGREEN`).
20
+
21
+
`ci-ok` is reported by [`.github/workflows/ci.yml`](.github/workflows/ci.yml) after every other job in that workflow. It passes when each needed job succeeded or was skipped, and fails when any of them failed or was cancelled. Keep the individual jobs, and the public-corpus run, out of the required list so the matrix can change without editing the ruleset. The `merge_group` trigger in that workflow is what gives a queued pull request its `ci-ok`; without it a queued pull request waits forever.
22
+
23
+
### Release-bot exception
24
+
25
+
There is none. The ruleset has an empty `bypass_actors` list, so no actor (including admins and GitHub Actions) may push past the queue onto `main`. Release workflows do not need a bypass: they push to `release/<tag>` (Action bundle), floating major tags, and the `badges` branch — never to `main`. A release commit reaches `main` the same way as any other change: through a pull request and the merge queue.
Copy file name to clipboardExpand all lines: docs/CI.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ every needed job succeeded or was skipped. Keep individual jobs, the public corp
23
23
fuzz, mutation, and package smoke **out** of the required list so the matrix can change without
24
24
editing repository settings.
25
25
26
-
How to turn the check and the merge queue on: [MAINTAINERS.md](../MAINTAINERS.md#branch-protection-and-the-merge-queue).
26
+
The ruleset and the merge queue are on; details and the (absent) release-bot exception: [MAINTAINERS.md](../MAINTAINERS.md#branch-protection-and-the-merge-queue).
Copy file name to clipboardExpand all lines: docs/PARALLEL_WORK.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Three causes, 8 conflicting tasks. `examples/capabilities.json` is an assembled
46
46
## What this does not show
47
47
48
48
- The tasks are replayed from history, not started fresh from one base, so some conflicts are really dependencies (the later task was written on top of the earlier one). The causes above are the shared paths either way.
49
-
-The merge queue is not on (#2029 is open), so the merges were local `git merge` runs, not queue runs.
49
+
-When this experiment ran, the merge queue was not yet on, so the merges were local `git merge` runs, not queue runs. The queue is now the only path to `main` (see [MAINTAINERS.md](../MAINTAINERS.md#branch-protection-and-the-merge-queue)).
50
50
- Rerun this experiment after each cause is fixed. The goal stays zero textual conflicts.
0 commit comments