ADR-068: Merge Queue for the dev Branch¶
Status¶
accepted
Date¶
2026-11-11
Reader boundary¶
This Explanation records design reasons and constraints.
.github/branch-protection-baseline.json records the intended branch settings.
The live GitHub branch settings are the enforcement authority.
CI verification describes maintained use.
Context¶
dev required strict status checks.
Each merge into dev made the other open pull requests out of date.
Each update ran the full CI again.
Issue #1735 moves dev to a GitHub merge queue.
A merge group contains dev, the queued pull requests in front of it, and the pull request.
GitHub reports a required check on a merge group only when its producer runs on the merge_group event.
If a required check does not report, the queue does not merge the pull request.
Decision¶
- Pull requests to
devmerge through a GitHub merge queue.mainandgo-cutoverdo not use a merge queue. Merges intomainstay manual. devdoes not require strict status checks. The queue tests each pull request against the latestdev.mainandgo-cutoverkeep strict status checks.- The queue squash-merges each pull request, as
docs/releasing.mdrequires. The repository sets the squash commit message to blank. Thus eachdevcommit is the PR title only. It builds and merges up to five pull requests in one group. Each pull request in the group must pass its checks. - The
maintodevback-merge and thego-cutovertodevmerge need a merge commit. An administrator merges them with the admin bypass, outside the queue. - Each workflow that reports a required
devcontext runs on themerge_groupevent fordev. No producer of a required context skips itself on a merge group. A skipped job reports success, so a skip would let a group merge without a real check. - Changed-input selection compares the merge group with
merge_group.base_sha. The diff contains each change that the group merges. - The PR title lint reads the pull request number from the merge group ref name. It then validates the current title from the GitHub API. It fails closed on an incorrect ref, repository, or API response.
- The SonarCloud quality gate analyzes the merge group ref as a branch.
That tree is the
devtree after the merge. GitGuardian Security Checksis not a required context fordev. The queue does not wait for it.- The
/implementand/quickfixreadiness step adds a ready pull request to the queue. The GRC workflow platform owns that step. tests/test_platform_ci_gates.pyfails when a required producer for a queued branch has nomerge_grouptrigger. It also fails when a branch has no strict status checks and no merge queue.
Alternatives considered¶
| Alternative | Reason for rejection |
|---|---|
Keep strict status checks on dev |
Each merge makes every open pull request out of date, and each update runs the full CI again. |
| Merge feature pull requests with a merge commit | Release Please reads the feature commit and the PR title in the merge commit body. Each change then shows two times in CHANGELOG.md, as in 10.1.0. |
Consequences¶
Positive¶
- A merge into
devdoes not make the other open pull requests out of date. - The queue tests the tree that
devgets after the merge.
Negative¶
- A pull request runs the required checks two times: on the pull request and on the merge group.
- Each merge group analysis adds a short-lived branch to SonarCloud.
Neutral¶
- The GitHub merge queue documentation does not say if an edit to the title or body removes a queued pull request. The title lint reads the title when the merge group runs.