Repository navigation
Description
Summary
Add a merge queue to main, so PRs land through GitHub instead of being merged by hand, and each PR is validated against the latest main (plus any PRs ahead of it in the queue) before it lands.
Current state (checked 2026-11-12)
- No
merge_queuerule onmain. The author merges once the PR is approved and CI is green (CONTRIBUTING.md). allow_auto_mergeisfalsein the repo settings.- No workflow triggers on
merge_group:
| Workflow | Job name | Triggers | Required today? |
|---|---|---|---|
go.yml |
build-and-test |
push (main), pull_request |
Yes |
e2e.yml |
E2E (Kind / Substrate ${{ inputs.substrate_ref || 'go.mod' }}) |
push (main), pull_request, nightly schedule, workflow_dispatch |
No |
check-binaries.yml |
check-no-binaries |
pull_request |
No |
strict_required_status_checks_policyisfalse, so a PR can merge with checks that ran against an oldermain.
Proposal
-
Add a
merge_queuerule toprotect-main(Combine the main rulesets into a single protect-main ruleset #548). Starting point, copied from Substrate:Parameter Value merge_methodSQUASHgrouping_strategyALLGREENmin_entries_to_merge1max_entries_to_merge5max_entries_to_build5min_entries_to_merge_wait_minutes5check_response_timeout_minutes60 -
Turn on
allow_auto_merge, so a PR can be marked to merge as soon as it is approved and green. -
Land the rule as a change to
.github/rulesets/protect-main.json(Manage rulesets as code and protect release tags and branches #547). -
Update CONTRIBUTING.md: replace "the author merges" with "add to the merge queue" (or enable auto-merge), for both member and external-contributor PRs.
Dependencies (Epic 2, not yet filed)
The queue only works once CI supports it. These need to land first:
- Run every PR workflow on
merge_group. Addmerge_group:togo.yml,e2e.ymlandcheck-binaries.yml, and make base-ref logic handlegithub.event.merge_group.base_ref. Without this, required checks never report in the queue and every PR times out. (Substrate #1712.) - Stable required-check names. The e2e job name is dynamic, so it can't be a required check. PR and queue runs should report a fixed name such as
e2e. (Substrate #2225.) - [RFC] Merge queue validation stages. Decide which checks run before the queue, in the queue, after merge and nightly, especially whether e2e blocks in the queue.
Acceptance criteria
- PRs to
maincan only land through the merge queue - The queue's required checks match the list decided in the Epic 2 validation-stages RFC
- Auto-merge is enabled in the repo settings
- CONTRIBUTING.md describes the queue flow
Rollout
- Land the Epic 2 workflow changes, and confirm that
merge_groupruns report the expected check names. - Add the
merge_queuerule withprotect-maininevaluatemode, and check rule insights. - Switch to
activeand announce the change to contributors.
Open questions
- Squash only, or allow rebase too? A merge queue uses one merge method, so this also decides whether the ruleset still needs to allow rebase.
- Batch size and wait time: start with Substrate's values, and adjust once e2e duration and flakiness in the queue are known.
Part of #546.
Activity