Skip to content

ci(hotfix): cap auto-hotfix fan-out at 25.9, exclude main#2065

Merged
benflexcompute merged 1 commit into
release-candidate/25.9from
BenY/cap-auto-hotfix-version-rc25.9
Jun 15, 2026
Merged

ci(hotfix): cap auto-hotfix fan-out at 25.9, exclude main#2065
benflexcompute merged 1 commit into
release-candidate/25.9from
BenY/cap-auto-hotfix-version-rc25.9

Conversation

@benflexcompute

@benflexcompute benflexcompute commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Backport of #2064 to release-candidate/25.9.

Why this branch needs it

pull_request-triggered workflows run the workflow file from the base branch of the PR, not from main. So #2064 (into main) has no runtime effect on hotfix events — each RC branch runs its own copy. Without this backport, merging a PR into 25.9 still fans out to main and 25.10 (both above the intended cap).

With this change, a merge into 25.9 produces no auto-hotfix targets (nothing above it should be hotfixed), and main is excluded.

Change

  • MAX_HOTFIX_VERSION: "25.09" cap env (bump to extend later).
  • Drop main from TARGET_BRANCHES.
  • Target filter base < branch <= cap; above-cap branches logged + skipped.

Scope: only 25.9 is backported — older lines (25.2–25.8) are assumed to no longer receive merges.

🤖 Generated with Claude Code


Note

Low Risk
Only GitHub Actions branch-selection logic changes; no runtime app or security paths are touched.

Overview
Narrows Create Hotfix PR so merges into release-candidate/* no longer open auto-hotfixes on main or on RC lines above a fixed ceiling.

Adds MAX_HOTFIX_VERSION: "25.09" (documented for bumping when a newer line should receive hotfixes). TARGET_BRANCHES starts empty instead of always including main. Release-candidate targets must satisfy base version < branch version ≤ cap; newer RCs (e.g. 25.10+) are skipped with an explicit log line.

For a merge into 25.9, there are typically no downstream RC targets, so the workflow should produce no auto-hotfix PRs unless a higher-but-capped branch exists.

Reviewed by Cursor Bugbot for commit 2f4fea8. Bugbot is set up for automated code reviews on this repo. Configure here.

The auto-hotfix workflow fanned a merged release-candidate PR out to
main plus every higher-versioned release-candidate branch. With 25.10
now on remote, hotfixes would propagate to 25.10/main automatically,
which is no longer wanted.

Add a MAX_HOTFIX_VERSION cap (25.09, normalized YY.MM) and drop main
from the target set. Only release-candidate branches above the PR base
and at/below the cap receive hotfix PRs; higher branches are logged and
skipped. Bump the env var to extend the cap to a newer line later.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@benflexcompute benflexcompute enabled auto-merge (squash) June 15, 2026 23:45
@benflexcompute benflexcompute merged commit e928166 into release-candidate/25.9 Jun 15, 2026
18 checks passed
@benflexcompute benflexcompute deleted the BenY/cap-auto-hotfix-version-rc25.9 branch June 15, 2026 23:56
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