Add adapter-node smoke check to .woodpecker.yaml validate step (parity with westside-admin) #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Surfaced as discovered scope during the /review-ticket review of
forgejo_admin/westside-admin#12(2026-04-30, review notereview-1117-2026-04-30). The reviewer noted that westside-contracts also uses@sveltejs/adapter-nodebut has no post-build smoke check at all — so a future build that silently skips emittingbuild/index.jswould push a broken image to Harbor without anyone noticing.Not a regression from any specific change — westside-contracts has been in this state since its CI pipeline was scaffolded. Filing now because the diagnostic lens of the westside-admin bootstrap made the gap visible.
Repo
forgejo_admin/westside-contractsWhat Broke
The
.woodpecker.yamlvalidatestep (or equivalent) does not assert on any specific build artifact afternpm run build. If@sveltejs/adapter-nodeever fails to emitbuild/index.js(adapter regression, vite plugin issue, accidental config change toadapter-static, etc.), the pipeline would still report green and Kaniko would build an image whosenode buildentry fails at runtime.This is silent-failure exposure, not a current outage.
Repro Steps
Hypothetical: simulate a missing entry by
npm run buildfollowed byrm build/index.js, then run the pipeline. With no smoke check, validate passes. With the proposed check, it fails.Expected Behavior
The
validatestep asserts on the canonical adapter-node entry:test -f build/index.jstest -f build/handler.jsMatching the fix landed in westside-admin via PR #13.
Environment
forgejo_admin/westside-contracts@sveltejs/adapter-nodeforgejo_admin/westside-admin#13Acceptance Criteria
.woodpecker.yamlvalidatestep asserts onbuild/index.jsandbuild/handler.jsafternpm run buildRelated
westside-contracts— project this affectsforgejo_admin/westside-admin #12— the parent bug that triggered this discoveryforgejo_admin/westside-admin #13— the reference fix to mirror