Repository navigation
Description
Description
For a consumer with a committed build artifact (a bundled GitHub Action:
dist/index.js via just bundle), the release train can deadlock on its own
Dist Check gate before the step that would resolve it ever runs.
The three pieces, all in the managed scaffold:
-
dist-check.ymltriggers onpull_requesttorelease/**andmain
only.devis deliberately not dist-gated, so Renovate lockfile bumps
merge todevwithout regenerating the bundle. That is by design and fine. -
release-core.ymlrebuilds and commits the bundle in the finalize
commit —just bundle+FILE_PATHS: CHANGELOG.md,<dist_paths>— but the
step is gatedif: ${{ inputs.release_kind == 'final' && ... }}. -
release-core.ymlvalidate refuses to proceed when any latest check on
the release PR is red:CI_FAILED=$(echo "$LATEST_CHECKS" | jq '[.[] | (.conclusion // .state) as $v | select($v == "FAILURE" or $v == "ERROR")] | length') if [ "$CI_FAILED" != "0" ]; then echo "ERROR: PR #$PR_NUMBER has failed CI checks" exit 1
prepare-release.yml opens the draft release/X.Y.Z -> main PR, which
immediately triggers Dist Check against the bundle as it stands on dev —
stale, because of (1). release.yml candidate then hits (3) and aborts, so the
finalize rebuild in (2) never runs. And even if the gate let it through, (2) is
final-only, so the candidate would still never refresh the bundle.
Net effect: the artifact must be fresh before the candidate, even though
every other part of the design treats release time as the authority on bundle
freshness (release-extension.yml's verify-dist re-checks it at the finalize
SHA). The consumer-visible symptom is a red release PR on a train where nothing
is actually wrong with the source.
Steps to Reproduce
In a Node/TS consumer with a bundle recipe and a committed dist/:
- Let Renovate merge one or more lockfile/dependency PRs to
dev(they touch
package-lock.json, neverdist/, anddist-check.ymldoes not run on
dev-targeted PRs). gh workflow run prepare-release.yml -f version=X.Y.Z— the draft release PR
opens andDist Checkfails on it.gh workflow run release.yml(candidate) — validate aborts with
ERROR: PR #N has failed CI checks.
Expected Behavior
A train started from a dev whose source is sound should run clean. Either:
- (a) rebuild + commit the bundle at prepare time (or for the
candidate, not justfinal), so the artifact is fresh by the time
Dist Checkfirst evaluates the release PR; or - (b) have the candidate's check gate ignore
Dist Checkspecifically,
since finalize regenerates the bundle regardless and
release-extension.yml'sverify-distis the real publishing gate.
(a) is the more honest fix — the rc then genuinely reflects what ships. (b) is
the smaller diff.
Actual Behavior
The candidate aborts on a red Dist Check that only the (final-only,
downstream) finalize step can clear. The documented recovery is a manual
bugfix/<issue>-... branch off release/X.Y.Z that rebuilds the bundle, PRs
into the release branch, merges, then re-dispatches the candidate — a mid-train
detour on every train that follows a batch of dependency bumps.
Environment
- Consumer:
vig-os/sync-issues-action(Node/TS action,direnvmode,
DEVKIT_VERSION=1.17.0, gitflow) - Devkit: 1.17.0
- Observed: 2026-09-28, preparing
v0.5.1
Concretely: dev sat 76 commits past v0.5.0 with dist/index.js
byte-identical to the v0.5.0 tag, while the lockfile had moved on —
the committed bundle embedded @octokit/auth-app 8.3.0 / core 10.0.13 /
request 7.0.7 against locked 8.3.1 / 10.0.16 / 7.0.8, plus @vercel/ncc
0.44 -> 0.45 output churn. A local npm ci && npm run bundle reproduced
Dist Check's verdict exactly (+760/-377 in dist/index.js).
This is the second occurrence in this repo: the v0.4.0 train hit the same wall
on a stale ncc bundle from a Renovate bump and was recovered with the manual
bugfix-into-release-branch detour.
Additional Context
Contrast with how the changelog side was solved: prepare-release.yml runs
synthesize-bot-changelog at prepare time, so bot-authored dependency and
adoption PRs that never touched CHANGELOG.md on dev are reconciled before
the content gate evaluates. The bundle has the identical shape of problem — bot
PRs that legitimately skip a managed artifact on dev — but no equivalent
prepare-time reconciliation, so it fails a gate instead.
Activity
fix: sync watermark, stacked-PR CI, prepare-time bundle, App-ID fallb…
c-vigo commentedon Sep 30, 2026
Fixed on
devby #1792 (964a49d), option (a):prepare-release.ymlrebuilds a committed bundle (bundlerecipe) before the CHANGELOG freeze, and the refresheddist/rides the freeze commit, so the release PR opens with a fresh artifact. The build logic lives in a new managed.github/actions/build-bundle, shared with finalize. The live proof is still owed on the first consumer train with a stale bundle after adoption (likely sync-issues-action); if it still deadlocks, open a new issue rather than reopening this one.ci(actions): update github-actions (minor and patch) (#1812)
chore: release 1.18.0 (#1819)