Skip to content

build: deploy CI check does not build the way production does #816

Open

Description

@bpowers

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.

Pointers

Activity

  1. added
    ci
    on Oct 12, 2026
  2. 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
  3. added
    hygiene
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cihygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions