Repository navigation
Conversation
Add a merge_queue rule to protect-main, with Substrate's settings as a starting point: squash, ALLGREEN, 1-5 pull requests per group, 5 minute wait, 60 minute check timeout. Trigger go.yml on merge_group, so the required build-and-test check reports in the queue. The other workflows aren't required checks, so they don't block the queue; running them in the queue and choosing the queue's checks is follow-up CI work. Update CONTRIBUTING.md: pull requests are added to the queue instead of being merged by hand. Fixes #571.
Member
|
Why do we need this? |
Collaborator
Author
|
This is only needed if the repo starts to get a lot more contributions [keeps the main branch stable while increasing developer velocity with lots of parallel merges], we needed it in substrate and I was working towards parity. Not required for now, feel free to close @rakyll if you don't think it will be valuable. |
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.
Summary
Adds a merge queue to
main, so each PR is tested on top of the latestmain(plus anything ahead of it in the queue) before it lands, instead of being merged by hand. Stacked on #574. Review only the top commit.Changes
.github/rulesets/protect-main.json: adds amerge_queuerule, starting from Substrate's settings:merge_methodSQUASHgrouping_strategyALLGREENmin_entries_to_merge/max_entries_to_merge/max_entries_to_buildmin_entries_to_merge_wait_minutescheck_response_timeout_minutesgo.ymlnow triggers onmerge_group.build-and-testis the only required check, so it must report in the queue, or queued PRs time out after 60 minutes.CONTRIBUTING.md: the Merging section now describes Merge when ready and the queue, for both member and external PRs. docs/rulesets.md and AGENTS.md are updated to match.
Scope
This PR covers only what the queue needs to work with today's single required check. Out of scope, for follow-up CI work:
e2eandcheck-no-binariesonmerge_group.Those checks aren't required today, so they don't block the queue.
After merge (repo admin)
go.ymlalready listens onmerge_group.hack/apply-rulesets.sh.protect-mainisactive, so the queue takes effect immediately.Open question
The queue squash-merges. Should
protect-mainstill allow rebase for PRs, or should it be squash-only to match the queue?Fixes #571.