Repository navigation
ci: stop requiring PR branches to be up to date before merging - #3457
Open
HackedRico wants to merge 3 commits into
Open
HackedRico wants to merge 3 commits into
HackedRico wants to merge 3 commits into
Conversation
Set required_status_checks.strict to false for master in .asf.yaml. With strict on, each merge to master puts every other open PR out of date. Each of those PRs then needs an update-branch merge commit and a full CI run before it can merge, so approved PRs merge one at a time. On 2026-12-01 a full Code Quality run took 23 to 30 minutes. Most of that time was the wait for a runner from the pool that all apache repositories share. Since 2026-11-17, update-branch merge commits account for 35% of the runner jobs in this repository. ASF does not require strict. The .asf.yaml reference lists false as the default. With strict off, two PRs that each pass CI can break master together without a merge conflict. The Code Quality and Security Checks runs on each push to master report that break after the merge.
|
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.



Description
Set
required_status_checks.stricttofalseformasterin.asf.yaml.With
strict: true, each merge tomasterputs every other open PR out of date. Each of those PRs then needs an update-branch merge commit and a full CI run before it can merge, so approved PRs merge one at a time.Code Qualityrun took 23 to 30 minutes. Most of that time was the wait for a runner from the pool that all apache repositories share.strict. The.asf.yamlbranch protection reference listsfalseas the default.strict: truecame in with the first version of.asf.yamlin #3400 and has not changed since.With
strictoff, two PRs that each pass CI can breakmastertogether without a merge conflict. TheCode QualityandSecurity Checksruns on each push tomasterreport that break after the merge. GitHub still blocks a PR that has a merge conflict, and Update branch stays available for a PR that depends on code another PR just changed.The other protections stay as they are: one approving review, the
Code QualityandSecurity Checksrequired checks, and conversation resolution.Type of change
Repository configuration. No code change.
How Has This Been Tested?
.asf.yamlparses as YAML, andstrictreads back asfalsewith both required contexts in place.masteris one line.ASF Infra applies
.asf.yamlfrom the default branch, so the setting takes effect only after this PR merges. To check it then, open an approved PR that has green checks and is behindmaster. Squash and merge is enabled without an update.Checklist: