snapapi: session 9 — browser fix, CI/CD progress

This commit is contained in:
Hoid 2026-02-20 08:18:55 +00:00
parent 92947c7712
commit 34be13e5ad
3 changed files with 48 additions and 8 deletions

View file

@ -1,5 +1,43 @@
# SnapAPI Session Log
## Session 9 — 2026-02-20 (Browser Fix + CI/CD Attempt)
**Goal:** Fix production reliability bug, set up CI/CD pipeline.
### What Was Done
1. **BUG-007 Fixed: Simultaneous browser restart** (snapapi-browser-fix specialist):
- Root cause: Both browsers hit `RESTART_AFTER_MS` simultaneously, causing 0 capacity for ~4s
- Fix: Staggered `lastRestartTime` per browser + one-at-a-time restart guard
- Commit: `e49c4073` — deployed to staging, verified playground returns 200
- **Needs production tag to fix in prod** (currently affects prod every ~1hr)
2. **CI/CD pipeline partially set up** (snapapi-cicd-setup specialist):
- Updated `.forgejo/workflows/deploy.yml` and `promote.yml` with working kubectl deployment steps
- Created deployer SA with RBAC for both namespaces
- Generated deployer kubeconfig with 10-year token
- **BLOCKED:** Forgejo API token only has read scope, can't add secrets. Needs `write:repository` scope.
- REGISTRY_TOKEN secret already exists (from previous session)
- KUBECONFIG secret still missing
3. **Staging TLS investigation:**
- Certificate stuck for 21h — `staging.snapapi.eu` has no DNS record
- Needs investor to add DNS A record
### Investor Test — Session 9
1. **Trust with money?** → YES, professional product, but playground has intermittent 503 (BUG-007 in prod)
2. **Pod crash data loss?** → No, PostgreSQL is separate
3. **Free tier abuse?** → Playground rate-limited to 5/hr/IP, no free API keys
4. **Key recovery?** → Via Stripe customer portal (when webhook is registered)
5. **Website features work?** → All pages work, playground intermittently fails due to BUG-007
### Open Issues
- BUG-007 fix on staging only — needs prod tag
- Stripe webhook URL not registered
- CI/CD blocked on Forgejo token scope
- staging.snapapi.eu DNS missing
- No external uptime monitoring
## Session 8 — 2026-02-19 (Git Sync + CI/CD Prep + Checkout Verification)
**Goal:** Housekeeping — sync repo, prepare CI/CD credentials, verify checkout flow.