Skip to content

fix: fail loudly when redirect-hotfix-pr can't run the cherry-pick path - #164

Merged
Shinrai merged 2 commits into
nextfrom
fix/hotfix-redirector-fail-loud-and-centralize
Jul 28, 2026
Merged

Shinrai merged 2 commits into
nextfrom
fix/hotfix-redirector-fail-loud-and-centralize

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix: fail loudly when redirect-hotfix-pr can't run the cherry-pick path (d3af515)

📦 Dependencies

No dependency updates

🔧 Other Changes

  • refactor: centralize release-flow workflows into workflow-*.yml reusables (67fa2d1)
👥 Contributors

Shinrai added 2 commits July 27, 2026 09:48
The dependabot-security path cherry-picks onto the hotfix lane, which needs
the caller workflow to have run a checkout AND configured a git identity. An
out-of-date caller (a copied local-*/example template from before those steps
were required) reached the cherry-pick with neither — where the failure was
silent-ish: `git cherry-pick` runs via runCapturing, so a missing identity was
misread as a *conflict*, posted a misleading "couldn't cherry-pick cleanly"
comment, and exited 0 (green), leaving the security PR on the default branch to
be auto-merged.

Probe the prerequisites (git checkout present + user.name/user.email
configured) at the top of the dependabot-security path. When missing, post an
explanatory comment naming the stale caller and throw — a red X + actionable
message instead of a silent skip. Pure `missingCherryPickPrereq()` helper with
unit tests; the git probing lives in the side-effecting wrapper.
…bles

The six release-flow workflows shipped only as copied `local-*`/example
templates carrying full job logic. Repos onboarded before a template changed
kept a stale copy — e.g. the hotfix-redirector's Dependabot-security path needs
a checkout + git identity that older copies lack, latently reintroducing the
"security PR → master" bug. Copied job logic can't be fixed by bumping @v4.

Author reusables that own the token/checkout/identity/action-call:
  workflow-hotfix-redirector, workflow-next-release, workflow-next-reset,
  workflow-hotfixes-release, workflow-feature-pr, workflow-pr-title-normalizer.

Each repo file collapses to a trigger + one thin `uses:` job (the trigger and
concurrency must stay local — GitHub requires the trigger declared in the
triggering workflow). This repo dogfoods them via `./`; consumers pin `@v4`, so
bumping the pin carries new requirements automatically and per-repo drift can't
recur. Behavior is unchanged — the job steps are moved verbatim, with the bot
secrets exposed under generic names (BOT_APP_CLIENT_ID/…) mapped by the caller,
matching the existing workflow-publish convention. Per-repo package_name /
build_command are inputs on the two release reusables.

Callers shrink from ~180-260 lines of copied logic to ~33-54 lines each.
Validated: actionlint, validate-action-refs, YAML parse all clean.
@cldmv-bot cldmv-bot Bot added the ! fix → next v4 flow: fix contributor PR targeting the next integration branch label Jul 28, 2026
@cldmv-bot cldmv-bot Bot changed the title refactor: centralize release-flow workflows into workflow-*.yml reusables fix: fail loudly when redirect-hotfix-pr can't run the cherry-pick path Jul 28, 2026
@cldmv-bot

cldmv-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Auto-normalized PR title: rewrote PR title to match the highest-priority commit type (fix).

  • Before: refactor: centralize release-flow workflows into workflow-*.yml reusables
  • After: fix: fail loudly when redirect-hotfix-pr can't run the cherry-pick path

If this isn't what you want, edit the title — the normalizer won't re-fire as long as the title stays conventional.

@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines labels Jul 28, 2026
@Shinrai
Shinrai merged commit 9100f95 into next Jul 28, 2026
16 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/hotfix-redirector-fail-loud-and-centralize branch July 28, 2026 05:57
Shinrai added a commit that referenced this pull request Jul 28, 2026
#169)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #166
- fix: measure coverage against a src-preserving build, not the
dist-only one (658761a)

- #165
- fix: recognize npm's real 'already published' error so publish is
idempotent (fd92652)

- #164
- fix: fail loudly when redirect-hotfix-pr can't run the cherry-pick
path (d3af515)

- #163
- fix: never auto-merge a Dependabot PR onto the release branch
(20bd697)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- #168
- docs(changelogs): flesh out v4.10.0 / v4.15.0 / v4.16.0 from commit
diffs (b2e38f6)
  - docs(changelogs): backfill v4.3.0 through v4.16.0 (7dfe488)

- #167
- docs: record why Dependabot subjects stay off the master-audit
allow-list (9ff1016)

- #164
- refactor: centralize release-flow workflows into workflow-*.yml
reusables (67fa2d1)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---------

Co-authored-by: Shinrai <[email protected]>
Co-authored-by: Nathaniel H <[email protected]>
Co-authored-by: cldmv-bot[bot] <230771808+cldmv-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant