zeroshade commented on code in PR #2724:
URL: https://github.com/apache/iceberg-go/pull/2724#discussion_r4743826630
##########
.asf.yaml:
##########
@@ -40,14 +40,40 @@ github:
protected_branches:
main:
required_status_checks:
- # strict means "Require branches to be up to date before merging".
- strict: true
+ contexts:
+ - Analyze Actions
+ - Run zizmor 🌈
+ - asf-allowlist-check
+ - rat
+ - Audit and Verify
+ - go-ci-required
+ - go-integration-required
required_pull_request_reviews:
required_approving_review_count: 1
required_linear_history: true
+ rulesets:
+ - name: Merge Queue
+ target: branch
+ enforcement: active
+ conditions:
+ ref_name:
+ include:
+ - "~DEFAULT_BRANCH"
+ exclude: []
+ rules:
+ - type: merge_queue
+ parameters:
+ check_response_timeout_minutes: 90
+ grouping_strategy: ALLGREEN
+ max_entries_to_build: 1
Review Comment:
pyiceberg uses `max_entries_to_build: 2` and
`check_response_timeout_minutes: 180`. With 1 and 90, the queue tests one PR at
a time through the full Go CI plus both Spark integration runs, which will be a
bottleneck on days with many merges. Unless there's a reason to be stricter
here, could we match pyiceberg (or note in the description why we differ)?
##########
.asf.yaml:
##########
@@ -40,14 +40,40 @@ github:
protected_branches:
main:
required_status_checks:
- # strict means "Require branches to be up to date before merging".
- strict: true
+ contexts:
Review Comment:
pyiceberg moved everything into rulesets (`protected_branches: ~`, plus a
"Default Branch Protection" ruleset for reviews, linear history, and
force-push/deletion restrictions). It also put the required checks in the
merge-queue ruleset as a `required_status_checks` rule with
`strict_required_status_checks_policy: false`. Here the checks stay in classic
branch protection alongside the new ruleset, which splits the policy across two
mechanisms that are easy to edit out of sync. I haven't confirmed how ASF's
`.asf.yaml` handles both together, but matching pyiceberg's layout would avoid
the question and make "following #3832" literal.
##########
.asf.yaml:
##########
@@ -40,14 +40,40 @@ github:
protected_branches:
main:
required_status_checks:
- # strict means "Require branches to be up to date before merging".
- strict: true
+ contexts:
+ - Analyze Actions
+ - Run zizmor 🌈
+ - asf-allowlist-check
+ - rat
+ - Audit and Verify
+ - go-ci-required
+ - go-integration-required
required_pull_request_reviews:
required_approving_review_count: 1
required_linear_history: true
+ rulesets:
+ - name: Merge Queue
+ target: branch
+ enforcement: active
Review Comment:
Blocking: this ruleset has no `bypass_actors`. pyiceberg's has two:
`apache/root` (ASF infra, `actor_id: 118420`, `bypass_mode: always`) and
`apache/iceberg-public` (committers, `actor_id: 20107235`, `bypass_mode:
pull_request`). Without them, if a required job gets renamed (as the
description warns), a required check never reports for `merge_group`, or the
queue wedges, nobody can merge to main until infra edits the settings. Please
add the same two.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]