You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Release Branch Protection ruleset added in #4582 is currently a no-op: GitHub API confirms release/v1.1.0-incubating has no active rules and the repository has no rulesets at all (/repos/apache/texera/rulesets returns []).
Root cause: in apache/infrastructure-asfyaml, the rulesets directive is gated behind a staged-rollout flag — see asfyaml/feature/github/rulesets.py:
Reopening — PR #4604 was merged 18+ minutes ago and the opt-in had no observable effect:
GET /repos/apache/texera/rulesets → []
GET /repos/apache/texera/rules/branches/release/v1.1.0-incubating → []
Root cause traced into apache/infrastructure-asfyaml:
The dispatcher (infrastructure-p6/modules/gitbox/files/asfgit/hooks/post-receive.d/05-asfyaml.py) routes to next-gen by default and our meta.environment: github_rulesets opt-in is honored, so the rulesets directive does run.
But _build_ref_name_condition in asfyaml/feature/github/rulesets.py does not prefix bare convenience patterns with refs/heads/. Our release/* is sent as-is to the GitHub Rulesets API, which requires refs/heads/release/* (or ~DEFAULT_BRANCH / ~ALL).
The reconciler's REST calls do not check HTTP status codes, so the resulting 422 is silently swallowed — no email, no log, /rulesets stays empty.
Both bugs are being addressed in apache/infrastructure-asfyaml#93 ("Follow-up fixes for the GitHub rulesets feature") which is still open. apache/logging-parent — the only other ASF project that has tried this opt-in — also has empty /rulesets for related reasons.
Reverting #4604 to keep main clean. Will revisit once apache/infrastructure-asfyaml#93 is merged upstream, or pursue an INFRA Jira ticket (Kafka-style, INFRA-26603 precedent).
Resolved. The meta.environment: github_rulesets opt-in was re-added incidentally by #5036 (merge queue setup), then INFRA's #5080 (Set up default rulesets for default and release branches) installed the actual rulesets, and #5139 (fix: enable ASF nextgen config) added meta.nextgen: true to let the next-gen parser apply them.
Activity
ci: opt in to .asf.yaml rulesets staged rollout (#4604)
Yicong-Huang commentedon May 1, 2026
Reopening — PR #4604 was merged 18+ minutes ago and the opt-in had no observable effect:
GET /repos/apache/texera/rulesets→[]GET /repos/apache/texera/rules/branches/release/v1.1.0-incubating→[]Root cause traced into
apache/infrastructure-asfyaml:infrastructure-p6/modules/gitbox/files/asfgit/hooks/post-receive.d/05-asfyaml.py) routes to next-gen by default and ourmeta.environment: github_rulesetsopt-in is honored, so therulesetsdirective does run._build_ref_name_conditioninasfyaml/feature/github/rulesets.pydoes not prefix bare convenience patterns withrefs/heads/. Ourrelease/*is sent as-is to the GitHub Rulesets API, which requiresrefs/heads/release/*(or~DEFAULT_BRANCH/~ALL)./rulesetsstays empty.Both bugs are being addressed in apache/infrastructure-asfyaml#93 ("Follow-up fixes for the GitHub rulesets feature") which is still open.
apache/logging-parent— the only other ASF project that has tried this opt-in — also has empty/rulesetsfor related reasons.Reverting #4604 to keep
mainclean. Will revisit once apache/infrastructure-asfyaml#93 is merged upstream, or pursue an INFRA Jira ticket (Kafka-style, INFRA-26603 precedent).Yicong-Huang commentedon Jun 7, 2026
Resolved. The
meta.environment: github_rulesetsopt-in was re-added incidentally by #5036 (merge queue setup), then INFRA's #5080 (Set up default rulesets for default and release branches) installed the actual rulesets, and #5139 (fix: enable ASF nextgen config) addedmeta.nextgen: trueto let the next-gen parser apply them.Verified on
apache/texeranow:```
$ gh api repos/apache/texera/rulesets --jq '.[] | {id, name, enforcement}'
{"id":16663487,"name":"Default Branch Protection","enforcement":"active"}
{"id":16663486,"name":"Merge Queue","enforcement":"active"}
```
No longer the empty
[]from the original report. Closing.ci: opt in to .asf.yaml rulesets staged rollout (apache#4604)