Skip to content

ci: stop requiring PR branches to be up to date before merging - #3457

Open
HackedRico wants to merge 3 commits into
masterfrom
ci/no-strict-status-checks
Open

HackedRico wants to merge 3 commits into
masterfrom
ci/no-strict-status-checks

Conversation

@HackedRico

Copy link
Copy Markdown
Member

Description

Set required_status_checks.strict to false for master in .asf.yaml.

With strict: true, 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 branch protection reference lists false as the default.

strict: true came in with the first version of .asf.yaml in #3400 and has not changed since.

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. 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 Quality and Security Checks required checks, and conversation resolution.

Type of change

Repository configuration. No code change.

How Has This Been Tested?

  • .asf.yaml parses as YAML, and strict reads back as false with both required contexts in place.
  • The diff against master is one line.

ASF Infra applies .asf.yaml from 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 behind master. Squash and merge is enabled without an update.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

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.
Copilot AI balanced review requested due to automatic review settings December 1, 2026 17:20

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 18:28

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@HackedRico
HackedRico requested a review from deacon-mp December 1, 2026 18:28
Copilot AI balanced review requested due to automatic review settings December 1, 2026 19:23

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

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.

2 participants