session 110: fixed broken Docker build, deployed all 16 pending commits to staging via manual build
This commit is contained in:
parent
5e86426a6f
commit
c75e71a398
5 changed files with 136 additions and 7 deletions
|
|
@ -1,5 +1,25 @@
|
|||
# Session Log
|
||||
|
||||
## Session 110 — 2026-02-28 16:00 UTC (Saturday Afternoon)
|
||||
- **Production:** v0.5.1 ✅ healthy, 2 replicas, 0 restarts, ~56h uptime
|
||||
- **Staging:** ✅ **UPDATED** to commit 597be6b (all 16 commits since v0.5.1 now deployed to staging!)
|
||||
- **K8s cluster:** All 3 nodes Ready
|
||||
- **Support:** Zero tickets
|
||||
- **Critical fix: Docker build was BROKEN on HEAD**
|
||||
- Discovered that `npx tsc` failed during Docker build due to TypeScript errors in `email-change.test.ts` — mock return types missing `command`, `oid`, `fields` from `QueryResult<any>`. Tests passed with vitest (uses tsx, skips type checking) but Dockerfile runs `tsc` which checks all files.
|
||||
- Fixed by adding `as any` casts to mock implementations. Commit 597be6b pushed.
|
||||
- **CI runner workaround: Manual build + deploy to staging**
|
||||
- CI runner still down (no pods). Bypassed by building Docker image directly on k3s-mgr (ARM64 native) and importing via `ctr -n k8s.io images import` to all 3 nodes.
|
||||
- Set staging `imagePullPolicy: IfNotPresent` (was `Always`) so it uses locally imported images.
|
||||
- All 16 commits now live on staging: email-change routes, PDF options validation, SDK messaging fix, security deps, README, OpenAPI docs, tests, nav fixes.
|
||||
- **Staging verification:**
|
||||
- Health check: ✅ DB connected, PostgreSQL 17.4
|
||||
- OpenAPI: 17 paths (up from 12 on prod) — includes email-change, signup/verify, billing/success, billing/webhook
|
||||
- Email-change route: ✅ responds correctly
|
||||
- Landing page: ✅ SDK messaging fixed ("Code examples... Official SDKs coming soon")
|
||||
- **357 tests passing** across 24 test files
|
||||
- **Note for investor:** CI runner still needs fixing. Staging imagePullPolicy changed to IfNotPresent as workaround. Change back to Always once CI runner is restored. Docker registry token on k3s-mgr lacks `write:package` scope (couldn't push image to registry).
|
||||
|
||||
## Session 109 — 2026-02-28 13:00 UTC (Saturday Afternoon)
|
||||
- **Production:** v0.5.1 ✅ healthy, 2 replicas, 0 restarts, ~53h uptime, 4 PDFs served
|
||||
- **Staging:** v0.5.1 ✅ healthy (still on commit 8b31d11 image, 4 commits behind main now)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue