Skip to content

revert: "ci: opt in to .asf.yaml rulesets staged rollout" - #4607

Merged
Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:revert/4604-asf-rulesets-opt-in
May 1, 2026
Merged

Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:revert/4604-asf-rulesets-opt-in

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Reverts #4604 (commit 875616561f3cbcc77e7b86d6a02b5ac1c5f706f5).

The opt-in had no observable effect 18+ minutes after merge:

  • GET /repos/apache/texera/rulesets → []
  • GET /repos/apache/texera/rules/branches/release/v1.1.0-incubating → []

Root cause traced into apache/infrastructure-asfyaml:

  1. The dispatcher (infrastructure-p6/.../05-asfyaml.py) routes to next-gen by default and our meta.environment: github_rulesets opt-in is honored — the rulesets directive does run.
  2. But _build_ref_name_condition in asfyaml/feature/github/rulesets.py doesn't prefix bare convenience patterns with refs/heads/. release/* is sent as-is to the GitHub Rulesets API, which requires refs/heads/release/* (or ~DEFAULT_BRANCH / ~ALL).
  3. The reconciler's REST calls don't check HTTP status, so the resulting 422 is silently swallowed — no email, no log, /rulesets stays empty.

Both issues are being fixed 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 using this opt-in — has the same empty-/rulesets symptom.

Reverting to keep main clean. Will revisit once apache/infrastructure-asfyaml#93 lands upstream, or pursue an INFRA Jira ticket (Kafka-style, INFRA-26603 precedent).

Any related issues, documentation, discussions?

Reopens #4603.

How was this PR tested?

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

@Yicong-Huang
Yicong-Huang marked this pull request as draft May 1, 2026 08:52
@Yicong-Huang
Yicong-Huang marked this pull request as ready for review May 1, 2026 09:05
@Yicong-Huang
Yicong-Huang merged commit e62aaa7 into apache:main May 1, 2026
16 checks passed
Yicong-Huang added a commit that referenced this pull request May 1, 2026
### What changes were proposed in this PR?

Reverts #4582 (commit `1045997b0e8f6bee850a27af53e65ae406d70481`), which
added a `release/*` ruleset to `.asf.yaml`.

ASF infra's support for the `rulesets` directive is still incomplete
(see also #4607 / apache/infrastructure-asfyaml#93). We'll protect
release branches via a different mechanism in a follow-up; reverting for
now to keep `.asf.yaml` clean and to unblock #4600.

### Any related issues, documentation, discussions?

Reopens #4579. Unblocks #4600.

### How was this PR tested?

Verified the ruleset never actually took effect — `GET
/repos/apache/texera/rulesets` returns `[]` and `GET
/repos/apache/texera/rules/branches/release/v1.1.0-incubating` returns
`[]`. So this revert is effectively a no-op against live GitHub state
and only cleans up `.asf.yaml`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
SarahAsad23 pushed a commit to SarahAsad23/texera that referenced this pull request May 4, 2026
…e#4616)

### What changes were proposed in this PR?

Reverts apache#4582 (commit `cfed1392322c9415b20f2d66542c42570235b618`), which
added a `release/*` ruleset to `.asf.yaml`.

ASF infra's support for the `rulesets` directive is still incomplete
(see also apache#4607 / apache/infrastructure-asfyaml#93). We'll protect
release branches via a different mechanism in a follow-up; reverting for
now to keep `.asf.yaml` clean and to unblock apache#4600.

### Any related issues, documentation, discussions?

Reopens apache#4579. Unblocks apache#4600.

### How was this PR tested?

Verified the ruleset never actually took effect — `GET
/repos/apache/texera/rulesets` returns `[]` and `GET
/repos/apache/texera/rules/branches/release/v1.1.0-incubating` returns
`[]`. So this revert is effectively a no-op against live GitHub state
and only cleans up `.asf.yaml`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
@Yicong-Huang
Yicong-Huang deleted the revert/4604-asf-rulesets-opt-in branch June 15, 2026 06:46
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…e#4616)

### What changes were proposed in this PR?

Reverts apache#4582 (commit `1045997b0e8f6bee850a27af53e65ae406d70481`), which
added a `release/*` ruleset to `.asf.yaml`.

ASF infra's support for the `rulesets` directive is still incomplete
(see also apache#4607 / apache/infrastructure-asfyaml#93). We'll protect
release branches via a different mechanism in a follow-up; reverting for
now to keep `.asf.yaml` clean and to unblock apache#4600.

### Any related issues, documentation, discussions?

Reopens apache#4579. Unblocks apache#4600.

### How was this PR tested?

Verified the ruleset never actually took effect — `GET
/repos/apache/texera/rulesets` returns `[]` and `GET
/repos/apache/texera/rules/branches/release/v1.1.0-incubating` returns
`[]`. So this revert is effectively a no-op against live GitHub state
and only cleans up `.asf.yaml`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)
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