snapapi: session 28 - deployed v0.6.0 to staging via image import

This commit is contained in:
Hoid 2026-02-26 14:06:44 +00:00
parent 78bcdfe01d
commit be2f424042
3 changed files with 44 additions and 8 deletions

View file

@ -60,16 +60,17 @@
- **Deployed to staging:** Yes (commit db1fa8d). Full link crawl: zero 404s across all pages.
- **Production:** Awaiting investor approval for v* tag
### BUG-012: /health reports hardcoded version 0.1.0 (LOW) — IN PROGRESS
### BUG-012: /health reports hardcoded version 0.1.0 (LOW) — FIXED (staging)
- **Found:** Session 27
- **Impact:** Health endpoint shows wrong version, makes monitoring/debugging harder
- **Fix:** Read version from package.json dynamically
- **Status:** Sub-agent working on fix
- **Deployed to staging:** Yes (commit 2eca4e7, image imported to all nodes). Verified: /health returns version 0.6.0
### BUG-013: OpenAPI spec stale — missing GET /v1/screenshot, /v1/usage; has removed /v1/signup/free (MEDIUM) — IN PROGRESS
### BUG-013: OpenAPI spec stale — missing GET /v1/screenshot, /v1/usage; has removed /v1/signup/free (MEDIUM) — FIXED (staging)
- **Found:** Session 27
- **Impact:** API docs misleading for developers
- **Status:** Sub-agent working on fix
- **Fix:** Removed /v1/signup/free, added GET /v1/screenshot, added /v1/usage
- **Deployed to staging:** Yes (commit 2eca4e7). Verified: OpenAPI spec has correct paths
### BUG-014: /usage.html missing from production (MEDIUM)
- **Found:** Session 27

View file

@ -1,5 +1,40 @@
# SnapAPI Session Log
## Session 28 — 2026-02-26 14:00 UTC (Deployment Unblocked)
**Goal:** Unblock staging deployment (registry push was broken since session 27).
### What Was Done
1. **Bypassed broken registry push** — built Docker image on k3s-mgr, exported via `docker save`, imported via `k3s ctr images import` on all 3 nodes (k3s-mgr, k3s-w1, k3s-w2). imagePullPolicy: IfNotPresent means k3s uses local image.
2. **Deployed v0.6.0 to staging**`kubectl set image` with commit 2eca4e7. Rollout successful.
3. **Verified all fixes on staging:**
- `/health` → version 0.6.0 (dynamic from package.json) ✅
- `/openapi.json` → no /v1/signup/free, has GET /v1/screenshot, has /v1/usage ✅
- `/usage.html` → 200 ✅
- `/recovery.html` → 200 ✅
4. **Closed BUG-012 and BUG-013** (both verified on staging)
### Investor Test
1. Trust with money? **Mostly** — Stripe checkout works, webhook still unregistered
2. Data loss on crash? **No** — PostgreSQL
3. Free tier abuse? **Low** — playground IP-limited + watermarked
4. Key recovery? **Yes on staging**, stale on production
5. Website features? **All working on staging**, production behind
### Open Bugs (staging-fixed, awaiting prod deploy)
- BUG-007 (HIGH): QUEUE_FULL on simultaneous restart — fixed staging
- BUG-011 (HIGH): No URL length limit — fixed staging
- BUG-014 (MEDIUM): /usage.html missing from production
### Assessment
Staging now has ALL code (v0.6.0) deployed and verified. Registry push still broken (needs write:package token) but workaround works for manual deploys. Recommending production deploy — staging has 8+ fixes/features over production.
---
## Session 27 — 2026-02-26 11:00 UTC (Quality Fixes + State Accuracy Audit)
**Goal:** Fix documentation/API accuracy issues, audit state.json accuracy.

View file

@ -1,11 +1,11 @@
{
"phase": "production-live",
"version": "0.5.2-prod (missing usage dashboard+v0.6.0 fixes) / 0.5.2-staging (also missing v0.6.0, deploy blocked)",
"version": "0.5.2-prod (missing usage dashboard+v0.6.0 fixes) / 0.6.0-staging (deployed via direct import)",
"staging": {
"status": "running",
"namespace": "snapapi-staging",
"replicas": 1,
"image": "git.cloonar.com/openclawd/snapapi:5b59a7a01078ad1f296feb80a8feddd149e8e6a1",
"image": "git.cloonar.com/openclawd/snapapi:2eca4e7",
"healthCheck": "passing"
},
"production": {
@ -65,7 +65,7 @@
],
"notDone": [
"Register Stripe webhook URL in Stripe Dashboard",
"CI/CD pipeline: workflows updated, RBAC+kubeconfig ready, BLOCKED on Forgejo token scope (needs write:repository)",
"CI/CD pipeline: workflows updated, RBAC+kubeconfig ready, BLOCKED on Forgejo token scope (needs write:package). WORKAROUND: docker build on k3s-mgr + ctr import to all nodes",
"Staging TLS (blocked on DNS for staging.snapapi.eu — no DNS record exists)",
"External uptime monitoring (no UptimeRobot account/key)",
"Deploy staging features to production — PARTIAL (v0.5.2 deployed but missing usage dashboard, openapi updates)"
@ -84,6 +84,6 @@
"priceId": "price_1T2XHpRtlDv9c8GoThHfd8kS"
}
},
"lastSession": "2026-02-26T11:00:00Z",
"lastSession": "2026-02-26T14:00:00Z",
"codeLocation": "Forgejo repo openclawd/SnapAPI. Clone: git clone forgejo-snapapi:openclawd/SnapAPI.git"
}