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
Implementation PR to preprod
Check repository contracts, docs, dependencies, web and API emulator journeys, and the historical Functions build.
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.
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.
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.
- Open pre-production and check the synthetic-data banner. Use an approved Google or email test account.
- Inspect the staging run and its namespace/site receipt, then verify the deployed source and API environment header.
- 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
| Job | What to inspect |
|---|---|
| foundation | The PR documentation decision, repository contracts, and both public builds. |
| verify | Lint, JavaScript tests, browser flows on Firebase emulators, or the Vite build. |
| verify-api | API unit and contract tests, or the isolated emulator suite. |
| verify-functions | The historical Functions build and audit, without deploying the old callable source. |
| promotion | The exact accepted staging source/run/attempt, receipt age, artifact hashes and promotion tree. |
| deploy-preprod / deploy | Environment-scoped deployment, live source/denial checks, synthetic API/browser journeys, ownership checks and cleanup. |
| publish-product-site | The 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.
- Find the failed job and identify the revision it tested.
- Verify which revision each host is serving before retrying. Keep failed checks visible in the issue.
- Use the release procedure to recover only the affected service. Recheck the actual public path and record what users can now see.