You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: deploy CI check does not build the way production does #816
The CI step that checks the web deploy's build does not build it the way production does, so some deploy-time failures cannot show up in CI.
The gaps
Node version. The frontend job in .github/workflows/ci.yaml uses Node 22; production runs nodejs24 (app.yaml). Pin the job to 24.
No Node pin anywhere..npmrc sets engine-strict=true, but no package.json declares engines.node, so the setting enforces nothing. Add engines.node (for example ">=24 <25") to the root package.json, or a .nvmrc.
Lockfile not frozen. The frontend job runs pnpm install without --frozen-lockfile, so lockfile drift is silently fixed in CI and fails later. Other jobs already use --frozen-lockfile.
Staged deploy never runs in CI. CI runs only the deploy:assemble + verify-deploy-build.sh path. scripts/build-deploy-staging.mjs, which builds the directory the staged deploy (and pnpm deploy:canary) actually uploads, is untested apart from its pure manifest transforms. Add a CI step that runs it after the build and checks the staged directory: a package.json with only the server's dependencies, a pnpm-lock.yaml, @simlin/core and @simlin/engine vendored as file: dependencies, and an app.yaml.
Why it matters
Production deploys are a local command with no gcloud in CI (docs/dev/deploy.md), so this CI step is the only check before the real deploy.
None of these gaps has caused a failed deploy yet.
changed the title [-]Harden the deploy-assembly CI gate: Node-major skew, unpinned engines.node, non-frozen install, staged path untested[/-][+]build: deploy CI check does not build the way production does[/+]on Oct 12, 2026
Activity
[-]Harden the deploy-assembly CI gate: Node-major skew, unpinned engines.node, non-frozen install, staged path untested[/-][+]build: deploy CI check does not build the way production does[/+]