You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2026/10/16 17:43:38 UTC
[PR] ci: move branch protection into the Merge Queue ruleset [iceberg-rust]
kevinjqliu opened a new pull request, #3481:
URL: https://github.com/apache/iceberg-rust/pull/3481
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
- N/A, follow-up to #3458.
## What changes are included in this PR?
<!--
Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates.
-->
Classic branch protection can only be bypassed by admins, and while it exists GitHub blocks direct merges for the ruleset's bypass actors (`DIRECT_MERGE: BLOCKED` on an approved PR). This moves the approval and linear-history rules into the Merge Queue ruleset and disables classic protection, as apache/seatunnel does.
`iceberg-public` members can then also skip the approval, so CONTRIBUTING.md says to still get one.
## Are these changes tested?
<!--
Specify what test covers (unit test, integration test, etc.).
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
Validated with [apache/infrastructure-asfyaml](https://redirect.github.com/apache/infrastructure-asfyaml) and the GitHub rulesets API. After merge, check that `viewerMergeActions` shows `DIRECT_MERGE: ALLOWED_WITH_BYPASS` for an `iceberg-public` member on an approved PR.
## AI Disclosure
<!--
https://iceberg.apache.org/contribute/#guidelines-for-ai-assisted-contributions
-->
Drafted with GitHub Copilot.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] ci: replace classic branch protection with a ruleset so the bypass works [iceberg-rust]
Posted by "CTTY (via GitHub)" <gi...@apache.org>.
CTTY merged PR #3481:
URL: https://github.com/apache/iceberg-rust/pull/3481
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] ci: replace classic branch protection with a ruleset so the bypass works [iceberg-rust]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #3481:
URL: https://github.com/apache/iceberg-rust/pull/3481#discussion_r4297731942
##########
.asf.yaml:
##########
Review Comment:
The new `protected_branches` / `rulesets` block appears to be indented two spaces less than the surrounding `github:` config (e.g., compare with `merge:` / `rebase:` above). In YAML, this would move these keys out from under `github:` and likely break or ignore the intended GitHub settings. Align indentation so these keys are under the same `github:` level as the other GitHub settings.
##########
.asf.yaml:
##########
Review Comment:
The previous configuration explicitly set `dismiss_stale_reviews: false`, but that setting is removed in the new ruleset. This can change behavior (stale reviews may be dismissed depending on defaults), which impacts the PR approval workflow. If the intent is to preserve current behavior, add `dismiss_stale_reviews: false` under `required_pull_request_reviews` in the new ruleset.
##########
.asf.yaml:
##########
Review Comment:
This ruleset uses `type: branch`, while the existing ruleset below uses `target: branch` (and also specifies `enforcement`). If the asfyaml schema expects `target` (as implied by the existing “Merge Queue” ruleset), this new ruleset may not be applied. Use the same keys as the working ruleset (`target: branch`, plus an explicit `enforcement`) for consistency and to avoid the ruleset being ignored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] ci: replace classic branch protection with a ruleset so the bypass works [iceberg-rust]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #3481:
URL: https://github.com/apache/iceberg-rust/pull/3481#discussion_r4297851471
##########
.asf.yaml:
##########
@@ -33,14 +33,23 @@ github:
squash_commit_message: PR_TITLE_AND_COMMIT_DETAILS
merge: false
rebase: false
- protected_branches:
- main:
+ # Disabled: GitHub blocks ruleset bypass while classic protection exists.
+ # The "Default Branch Protection" ruleset replaces it.
+ protected_branches: ~
+ rulesets:
+ - name: "Default Branch Protection"
+ type: branch
+ branches:
+ includes:
+ - "~DEFAULT_BRANCH"
+ excludes: []
+ bypass_teams:
+ - root
+ restrict_deletion: true
+ restrict_force_push: true
+ required_linear_history: true
required_pull_request_reviews:
required_approving_review_count: 1
- dismiss_stale_reviews: false
-
- required_linear_history: true
Review Comment:
`required_linear_history` is not removed, still set to true in the default branch ruleset
##########
.asf.yaml:
##########
Review Comment:
added it back, just to be explicit.
`dismiss_stale_reviews: false` is the default setting
##########
.asf.yaml:
##########
Review Comment:
this is a valid asf.yaml syntax
##########
.asf.yaml:
##########
@@ -33,14 +33,24 @@ github:
squash_commit_message: PR_TITLE_AND_COMMIT_DETAILS
merge: false
rebase: false
- protected_branches:
- main:
+ # Disabled: GitHub blocks ruleset bypass while classic protection exists.
+ # The "Default Branch Protection" ruleset replaces it.
+ protected_branches: ~
+ rulesets:
+ - name: "Default Branch Protection"
+ type: branch
+ branches:
+ includes:
+ - "~DEFAULT_BRANCH"
+ excludes: []
+ bypass_teams:
+ - root
+ restrict_deletion: true
+ restrict_force_push: true
Review Comment:
newly added, to match the existing "classic protection" behavior (what `protected_branches` sets)
##########
.asf.yaml:
##########
@@ -33,14 +33,23 @@ github:
squash_commit_message: PR_TITLE_AND_COMMIT_DETAILS
merge: false
rebase: false
- protected_branches:
- main:
+ # Disabled: GitHub blocks ruleset bypass while classic protection exists.
+ # The "Default Branch Protection" ruleset replaces it.
+ protected_branches: ~
+ rulesets:
+ - name: "Default Branch Protection"
+ type: branch
+ branches:
+ includes:
+ - "~DEFAULT_BRANCH"
Review Comment:
this refers to the same `main` branch as before
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] ci: replace classic branch protection with a ruleset so the bypass works [iceberg-rust]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #3481:
URL: https://github.com/apache/iceberg-rust/pull/3481#issuecomment-6221892237
@CTTY @blackmwk im hoping this would get us the ability to bypass. I triple checked against other apache repo setting just to be sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org