Skip to content

docs(proposals): add build-parallel scheduling proposal - #1470

Merged
mergify[bot] merged 1 commit into
python-wheel-build:mainfrom
tiran:docs/build-parallel-scheduling-proposalv2
Nov 20, 2026
Merged

mergify[bot] merged 1 commit into
python-wheel-build:mainfrom
tiran:docs/build-parallel-scheduling-proposalv2

Conversation

@tiran

@tiran tiran commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Description

What

Design proposal for three build-parallel scheduling improvements:

  • continuous scheduling: queue a package as soon as its build dependencies are ready, instead of waiting for a whole batch to finish; build order and logs are no longer deterministic
  • an opt-in continue-past-failures mode: fail-early stays the default for backwards compatibility; in the opt-in mode, a run continues past a failure that nothing needs at build time and reports all failures at the end, in a machine-readable report
  • a middle exclusivity tier between full exclusivity and none: one heavy build at a time while small builds continue alongside

The proposal describes outcomes and behavior only. Option and argument names, settings schema, and other implementation details are left to the detailed design.

Why

See #1463

This PR is a new version of the document. I have excluded implementation details (names of options and args) and reworded the text so it is easier to read and understand.

@tiran
tiran requested a review from a team as a code owner November 17, 2026 06:35
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4330411 and d7f44db.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The proposal describes continuous scheduling as build dependencies become ready. It specifies optional continuation after failures that are not build dependencies, end-of-run failure reporting, and a mode that permits one heavy build at a time. Fail-fast remains the default. It also describes hard-stop behavior, exit codes, bootstrap behavior, and non-goals.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · previous review 43304

This PR only adds a design proposal document for parallel build scheduling. It changes no runtime behavior, so merging it carries no production risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change accurately: it adds a design proposal for build-parallel scheduling. The raw summary confirms the only changed file is docs/proposals/build-parallel-scheduling.md, and the t…
Description check Passed The description states that this is a design proposal for three build-parallel scheduling improvements: continuous scheduling, an opt-in continue-past-failures mode, and a middle exclusivity tier. The…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change accurately: it adds a design proposal for build-parallel scheduling. The raw summary confirms the only changed file is docs/proposals/build-parallel-scheduling.md, and the title follows a conventional docs(...) prefix. It is short, specific, and matches the main change, so it passes.

Full details: Description check

Explanation

The description states that this is a design proposal for three build-parallel scheduling improvements: continuous scheduling, an opt-in continue-past-failures mode, and a middle exclusivity tier. These match the raw summary and the PR objectives, so the description is clearly related to the changeset and passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1076fb4 and 4330411.

Files selected for processing: 1

  • docs/proposals/build-parallel-scheduling.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@mergify

mergify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

tiran added a commit to tiran/fromager that referenced this pull request Nov 17, 2026
…uilds

build-parallel now queues a package as soon as its build dependencies
are ready instead of waiting for a whole round of builds to finish,
which keeps workers busy when one package in a batch runs long. Build
order and log output are no longer deterministic between runs.

A failure now stops queueing new builds, cancels builds that are queued
but not started yet, and waits for builds that are already running
before exiting with an error. Cancelled builds are handled explicitly,
since concurrent.futures.CancelledError does not derive from Exception.

Implements the continuous scheduling part of the build-parallel
scheduling proposal (python-wheel-build#1470).

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>

@rd4398 rd4398 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the overall direction and it is surely going to add value. I have left few comments. Let me know what you think.

@tiran
tiran force-pushed the docs/build-parallel-scheduling-proposalv2 branch from 1076fb4 to 4330411 Compare November 18, 2026 09:46

@rd4398 rd4398 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good! Thanks for addressing the feedback

@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

queue

⚠️ Configuration not compatible with a branch protection setting

Details

The branch protection of main requires branches to be up to date before merging. The merge queue tests pull requests in a draft PR built on the latest base branch, then merges the original pull requests. Their own branches were not updated with that base branch, so GitHub considers them out of date and refuses to merge them.

To fix it, turn off Require branches to be up to date before merging in the branch protection of main. It is safe to turn off: the merge queue already tests every pull request it merges on the latest base branch, together with the ones queued ahead of it. That is what this setting checks. Changing the setting needs admin access.

If you need to keep the setting:

  • Use merge_method: fast-forward: the queue pushes the tested draft PR's branch to the base branch itself, which the setting does not refuse.
  • Use in-place checks: Mergify tests each pull request on its own branch, one at a time, which gives up parallel checks and batches. To do so, set merge_queue.max_parallel_checks: 1 and merge_queue.mode: serial, set every queue rule batch_size: 1 and max_checks_retries: 0, and avoid two-step CI (make merge_conditions identical to queue_conditions).

Learn more in the documentation.

@tiran

tiran commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

@mergify rebase

@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

rebase

☑️ Nothing to do, the required conditions are not met

Details
  • any of:
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]

@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

queue

⚠️ Configuration not compatible with a branch protection setting

Details

The branch protection of main requires branches to be up to date before merging. The merge queue tests pull requests in a draft PR built on the latest base branch, then merges the original pull requests. Their own branches were not updated with that base branch, so GitHub considers them out of date and refuses to merge them.

To fix it, turn off Require branches to be up to date before merging in the branch protection of main. It is safe to turn off: the merge queue already tests every pull request it merges on the latest base branch, together with the ones queued ahead of it. That is what this setting checks. Changing the setting needs admin access.

If you need to keep the setting:

  • Use merge_method: fast-forward: the queue pushes the tested draft PR's branch to the base branch itself, which the setting does not refuse.
  • Use in-place checks: Mergify tests each pull request on its own branch, one at a time, which gives up parallel checks and batches. To do so, set merge_queue.max_parallel_checks: 1 and merge_queue.mode: serial, set every queue rule batch_size: 1 and max_checks_retries: 0, and avoid two-step CI (make merge_conditions identical to queue_conditions).

Learn more in the documentation.

@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · pull request branch update failed

1 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 20 Nov, 13:51 · rule default · triggered by rule Automatic merge on approval
  • 🚫 Left the queue 13:52 · 4330411

Reason

The pull request can't be updated

GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/python-publish.yaml without workflows permission
GitHub only lets Mergify write to .github/workflows/ with the workflows permission. An organization owner can accept Mergify's pending permissions at https://dashboard.mergify.com/orgs/python-wheel-build/repositories.

To get back in the queue

  • Update or rebase the branch yourself: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, tick the box below to queue it again as it is.

Requeue requested — the merge queue status continues in this comment ↓.

Times in UTC · dashboard · how the merge queue works

Design proposal for three build-parallel scheduling improvements:

- continuous scheduling: queue a package as soon as its build
  dependencies are ready, instead of waiting for a whole batch to
  finish; build order and logs are no longer deterministic
- an opt-in continue-past-failures mode: fail-early stays the default
  for backwards compatibility; in the opt-in mode, a run continues
  past a failure that nothing needs at build time and reports all
  failures at the end, in a machine-readable report
- a middle exclusivity tier between full exclusivity and none: one
  heavy build at a time while small builds continue alongside

The proposal describes outcomes and behavior only. Option and argument
names, settings schema, and other implementation details are left to
the detailed design.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran
tiran force-pushed the docs/build-parallel-scheduling-proposalv2 branch from 4330411 to d7f44db Compare November 20, 2026 13:52
@mergify mergify Bot added queued and removed queued labels Nov 20, 2026
@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as 93023a9 at 13:54 UTC

Less than a minute in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 20 Nov, 13:53 · rule default · triggered by rule Automatic merge on approval
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged 13:54 · 93023a9 · merge
3 merge conditions met

Times in UTC · dashboard · how the merge queue works

@mergify
mergify Bot merged commit 93023a9 into python-wheel-build:main Nov 20, 2026
7 checks passed
@mergify mergify Bot removed the queued label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants