Skip to content

docs(merge-queue): document serial-mode batch grouping heuristic#11693

Open
sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-7456-document-serial-mode-batch-grouping/document-serial-mode-batch-grouping-heuristic--a6adeea3
Open

docs(merge-queue): document serial-mode batch grouping heuristic#11693
sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-7456-document-serial-mode-batch-grouping/document-serial-mode-batch-grouping-heuristic--a6adeea3

Conversation

@sileht
Copy link
Copy Markdown
Member

@sileht sileht commented Jun 1, 2026

The heuristic that groups pull requests into batches in serial mode was
changed in #32298 (group by changed-directory similarity when no scopes
source is configured) and was undocumented.

Document, in the Batches page, how Mergify decides which pull requests
share a batch: priority and queue order come first, then similarity
fills the batch (scopes when configured, otherwise the directories each
PR changes), and stacks are kept together. Replace the vague,
out-of-place note in the failure-handling section with this accurate
description.

Fixes MRGFY-7456

Copilot AI review requested due to automatic review settings June 1, 2026 14:30
@mergify mergify Bot had a problem deploying to Mergify Merge Protections June 1, 2026 14:30 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Jun 1, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify Bot requested a review from a team June 1, 2026 14:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the updated serial-mode batch grouping heuristic in the Merge Queue “Batches” documentation, clarifying how Mergify chooses which pull requests share a batch and removing a vague/incorrect note from the failure-handling section.

Changes:

  • Add a new section explaining batch composition rules (priority/queue order, similarity via scopes or changed directories, and stack co-location).
  • Provide an illustrative DOT diagram and a note about batch_max_wait_time affecting candidate availability.
  • Remove the previous note in the failure-handling section that gave an incomplete description of batching behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/content/docs/merge-queue/batches.mdx Outdated
Comment thread src/content/docs/merge-queue/batches.mdx
@sileht sileht marked this pull request as ready for review June 1, 2026 14:39
@sileht sileht force-pushed the devs/sileht/mrgfy-7456-document-serial-mode-batch-grouping/document-serial-mode-batch-grouping-heuristic--a6adeea3 branch from 39926da to b3b9cca Compare June 1, 2026 14:42
@sileht
Copy link
Copy Markdown
Member Author

sileht commented Jun 1, 2026

Revision history

# Type Changes Reason Date
1 initial 39926da 2026-06-01 14:42 UTC
2 content 39926da → b3b9cca (raw) 2026-06-01 14:42 UTC
3 content b3b9cca → 208ba38 (raw) 2026-06-01 15:35 UTC
4 content 208ba38 → c100266 (raw) 2026-06-01 15:43 UTC

@mergify mergify Bot had a problem deploying to Mergify Merge Protections June 1, 2026 14:42 Failure
jd
jd previously approved these changes Jun 1, 2026
@mergify mergify Bot requested a review from a team June 1, 2026 15:27
Comment thread src/content/docs/merge-queue/batches.mdx
@sileht sileht force-pushed the devs/sileht/mrgfy-7456-document-serial-mode-batch-grouping/document-serial-mode-batch-grouping-heuristic--a6adeea3 branch from b3b9cca to 208ba38 Compare June 1, 2026 15:35
@mergify mergify Bot dismissed jd’s stale review June 1, 2026 15:35

Pull request has been modified.

@mergify mergify Bot had a problem deploying to Mergify Merge Protections June 1, 2026 15:35 Failure
The heuristic that groups pull requests into batches in serial mode was
changed in #32298 (group by changed-directory similarity when no scopes
source is configured) and was undocumented.

Document, in the Batches page, how Mergify decides which pull requests
share a batch: priority and queue order come first, then similarity
fills the batch (scopes when configured, otherwise the directories each
PR changes), and stacks are kept together. Replace the vague,
out-of-place note in the failure-handling section with this accurate
description.

Fixes MRGFY-7456

Change-Id: Ia6adeea393375646d6c530dc85e560339e81a9a3
@sileht sileht force-pushed the devs/sileht/mrgfy-7456-document-serial-mode-batch-grouping/document-serial-mode-batch-grouping-heuristic--a6adeea3 branch from 208ba38 to c100266 Compare June 1, 2026 15:43
@mergify mergify Bot had a problem deploying to Mergify Merge Protections June 1, 2026 15:43 Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants