FinBuddy

CI/CD pipeline

A checked staging source produces both environment bundles. Pre-production proves the integrated candidate, and a verified promotion releases its accepted production artifact before publishing the product site.

From pull request to production

  1. Implementation PR to preprod

    Check repository contracts, docs, dependencies, web and API emulator journeys, and the historical Functions build.

  2. Build and rehearse pre-production

    Build both environment bundles from one source. Deploy the isolated API/audit and web candidate, then check synthetic journeys, permissions, fresh telemetry and recovery.

  3. Promote the accepted source

    The promotion gate verifies the successful run, attempt, acceptance receipt and artifact hashes. Deploy backend prerequisites and that accepted production web artifact, then repeat live checks.

  4. Publish Pages

    Publish the product site and handbook from the accepted source after production verification. Record the separate promotion merge SHA in GitHub.

Where pre-production fits

Both FinBuddy environments run in Firebase project finbuddy-2025. Hosting target preprod serves finbuddy-2025-preprod.web.app with Firestore root preprod/data; target prod serves finbuddy-2025.web.app with root prod/data. The schema-2 staging receipt pins that project, site, both roots, source and artifact hashes. Synthetic accounts test the real pre-production deployment without copying production households into it.

The owner acceptance receipt belongs to one successful staging run and attempt. A missing, failed, expired or changed receipt blocks production. Source or artifact changes require fresh acceptance. Issue #174 records the rehearsal and recovery evidence; issue #169 records fresh production telemetry and cleanup.

  1. Open pre-production and check the synthetic-data banner. Use an approved Google or email test account.
  2. Inspect the staging run and its namespace/site receipt, then verify the deployed source and API environment header.
  3. Before main promotion, require verified data-copy recovery and strict policy parity. A source merge alone does not establish production cutover or retirement of the old project.

Read the check that failed

JobWhat to inspect
foundationThe PR documentation decision, repository contracts, and both public builds.
verifyLint, JavaScript tests, browser flows on Firebase emulators, or the Vite build.
verify-apiAPI unit and contract tests, or the isolated emulator suite.
verify-functionsThe historical Functions build and audit, without deploying the old callable source.
promotionThe exact accepted staging source/run/attempt, receipt age, artifact hashes and promotion tree.
deploy-preprod / deployEnvironment-scoped deployment, live source/denial checks, synthetic API/browser journeys, ownership checks and cleanup.
publish-product-siteThe Pages package, deploy result, and public handbook revision.

Recover the affected surface

The automated Hosting check retries the same read-only check for a brief revision propagation delay. A persistent mismatch or a failing asset or API check stops Pages publication.

  1. Find the failed job and identify the revision it tested.
  2. Verify which revision each host is serving before retrying. Keep failed checks visible in the issue.
  3. Use the release procedure to recover only the affected service. Recheck the actual public path and record what users can now see.