Repository navigation
ci/build: Skip heavy build matrix on draft pull requests - #20973
Merged
xiaoxiang781216 merged 1 commit intoOct 25, 2026
Merged
Conversation
In response to the ASF Infrastructure notice regarding excessive GitHub Actions runner consumption, skip the heavy build matrix when a pull request is in draft state. Fast checks (check.yml and lint.yml) continue to run to provide early style and syntax feedback. The full build matrix will automatically trigger once the PR is marked 'Ready for review'. Signed-off-by: Swatantra Yadav <[email protected]>
Swatantra-66
requested review from
lupyuen,
raiden00pl and
simbit18
as code owners
October 24, 2026 17:20
Contributor
|
Swatantra suggested not starting the CI for PR that are marked as Draft, I think this is a good idea reduce the CI workload. |
|
acassis
approved these changes
Oct 24, 2026
xiaoxiang781216
approved these changes
Oct 24, 2026
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
Following the recent notice from ASF Infrastructure on the
dev@mailing list regarding runner resource consumption, this patch optimizes GitHub Actions usage by skipping the heavy Linux build matrix while a pull request is in Draft state.ready_for_reviewtoon.pull_request.typesin.github/workflows/build.ymlso the full build matrix triggers automatically once the author marks the PR ready for review.if: github.event_name != 'pull_request' || !github.event.pull_request.drafttoFetch-Source, cascading the skip to all downstream matrix jobs.check.ymlandlint.yml) continue to run on draft PRs to provide early style/syntax feedback without consuming matrix runners.Pre-discussed with @acassis.
Impact
CI / Runners - Saves up to 28 concurrent matrix jobs for each push while a PR is in draft, immediately saving GitHub Actions runner capacity across the ASF.
Workflow - Zero impact on test coverage. The full matrix runs as soon as a PR is marked 'Ready for review'.
Testing
Verified workflow YAML syntax.
Verified git whitespace and clean diff against
upstream/master.