-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Merge Train
github-actions[bot] edited this page Jul 17, 2026
·
1 revision
Since v3.8.49 (WS3.2/WS3.4 of the quality/velocity plan) the default merge path for
reviewed PRs into release/vX.Y.Z is the Mergify merge queue (.mergify.yml);
the manual merge-train documented below is the FALLBACK — used during incidents,
release freezes, or if the Mergify Open Source plan ever changes.
- PR is reviewed/greened by the campaigns and approved by the owner's pre-merge ⭐
gate (the report + per-item decision — see
/merge-prsStep 0.75). - The owner (or the session acting on the owner's decision) applies the
queuelabel. The label IS the merge approval; Mergify only executes it. - Mergify batches up to 10 queued PRs, validates the batch against the fast-gates, and merges (squash). A red batch is bisected automatically — the offending PR is isolated in ~log2(N) revalidations and unqueued; the rest proceed.
- Post-merge, the continuous release-green workflow validates the new tip on push and opens an attribution issue if the combination regressed (never auto-revert).
Guardrails (mirror CLAUDE.md Hard Rules #21/#22):
-
Release freeze open → do NOT label PRs targeting the frozen branch; retarget to
the active
release/vX+1first. - Another session's in-flight PR → never label it; only the owning session queues its own work.
- Tests-only diffs and
hotfix-labeled PRs already run reduced CI (seeRELEASE_CHECKLIST.md→ Hotfix Fast-Lane); the queue conditions accept whatever check set actually ran (#check-failure=0+#check-pending=0).
Used when the queue is unavailable. This codifies the practice that drained 33 PRs in one day during the v3.8.47 cycle:
-
Assemble the batch (~10–30 reviewed+approved PRs). Check
linked:collisions (sametap.testFiles, same CHANGELOG hunks) and serialize those. -
Validate ONCE: in an isolated worktree off the release tip, merge all batch
heads locally, then run the release-equivalent suite
(
npm run check:release-green, add--with-buildbefore a release). -
Green → merge the PRs in sequence (re-checking
state,headRefOidbefore each — a PR whose head moved re-enters review). Prove the net diff of each merge is the PR's own change (no auto-resolve reverts: auditgit diff --statfor out-of-scope deletions). - Red → bisect the batch by halves (validate each half) instead of re-validating one-by-one; drop the offending PR back to the review queue with the evidence.
-
Never: merge during a freeze into the frozen branch;
git stashanywhere; blanket-rerun CI hoping a red goes away (rule: a red is information).
- Per PR (quality.yml fast-gates): TIA-impacted tests + full unit 4-shard + vitest + lint bag + typecheck + docs/changelog integrity.
-
Per batch/tip (continuous release-green):
--quickHARD gates on every push to the release branch; full--with-build --full-cisweeps 3×/day. - Per release (ci.yml on the release PR): the complete matrix incl. E2E ×9, package-artifact + tarball boot-smoke, coverage/ratchets.
Nothing is validated less than before — the heavy surface just runs per batch/tip instead of per PR, which is what removes the O(N) round-trips.
OmniRoute · Website · npm · Docker Hub
- Setup Guide
- User Guide
- Features
- Quick Start (Docker)
- Electron Desktop App
- Termux (Android)
- PWA Guide
- MCP Server
- A2A Server
- Agent Protocols
- OpenCode Plugin
- Webhooks
- Cloud Agents
- Skills
- Memory
- Evals
- Gamification
- Guardrails
- Compliance
- Error Sanitization
- Public Credentials
- Route Guard Tiers
- Stealth Guide
- CLI Token Auth