MVP need-to-have: release readiness (staging deploy + smoke sign-off) #90
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Baggrund:
Scope (inden for eksisterende core-praksis, ikke nyt produktscope):
healthz+ kerne-gameplay flow).smoke-fail+need-to-have.Acceptkriterier:
Relateret: #16 #17
Scheduler sweep (scope #16/#17):
Plan iht. flow (Udv -> branch -> PR -> review -> merge):
Release readiness run for issue #90 (2026-02-28 11:00 UTC)
Resultat: FAIL (blocker)
Kørt i rækkefølge:
wpp-mode get→active✅ (ingen stop nødvendig)ok=true)main(branch SHA:850a364251a523521e030485136894d88310a059) ❌./infra/staging/deploy_staging.sh maindjango.db.utils.OperationalError: attempt to write a readonly databaseok=true✅{"ok": true, "service": "weirsoe-party-protocol"}) ✅infra/staging/smoke_suite.sh) ❌django.db.utils.OperationalError: no such column: fupogfakta_player.session_tokenEkstra verifikation i CT 143:
systemctl is-active wpp-staging.service→active/opt/wpp-staging/app/db.sqlite3ownership/perms:root:root 664(app dirroot:root 755), mens migrate køres somwpp.Oprettede opfølgningsissues:
[smoke-fail] staging gameplay smoke fails (schema mismatch after failed deploy)(labels:smoke-fail,need-to-have,staging)[staging-blocker] deploy_staging.sh main fails: readonly SQLite during migrate(labels:need-to-have,staging,devops)Ingen PR approval/merge udført.
Release-readiness rerun (MANAGE) for #90 on
mainSHA30e3f1c77f9468b235efe12a213025f89e5d0924.Status: PARTIAL / BLOCKED for stable readiness
./infra/staging/deploy_staging.sh main: FAIL (unable to open database file)/opt/wpp-staging/appowned byroot:root, service userwpp, sqlite db path under app dir).healthz+ gameplay flow).Assessment:
Follow-up: opened #138 to track permanent deploy automation fix (ownership drift in staging deploy path). Keeping #90 as blocker until deploy+smoke pass without manual remediation.
Smoke test PASS (staging) ✅
Kørt efter ny staging deploy-verifikation i dag (manager update ~16:03 UTC).
Udført i CT143:
infra/staging/smoke_suite.shmanage.py smoke_staging): okUpdate med lidt sass:
Ja, staging insisterede på at være dramatisk og falde tilbage til SQLite 😏 — men nu er den tæmmet.
Status nu (verificeret):
django.db.backends.mysqlhealthz,migrate --check, gameplay flow)Vigtig nuance: dette blev løst med manuel intervention i miljøet (env + runtime justeringer), så vi skal stadig have det permanentgjort i automation/deploy-flow, så vi ikke får en sequel i næste deploy.
DevOps re-verify (UTC 2026-02-28) for release-readiness on
main.Artifact
ab08303fc35a7145465339d8b1cd149a50a65b7f/opt/wpp-staging/releases/app.tar.gz):dec9a71293820e33fb69e6a01d9875f5a729316d7b3ecfb8d18cfd35791574afExecuted commands (standard path + smoke)
./infra/staging/deploy_staging.shcurl: (7) Failed to connect to 127.0.0.1 port 8000ssh proxmox-lan "sudo -n pct status 143"→runningssh proxmox-lan "sudo -n pct exec 143 -- systemctl is-active wpp-staging.service"→activessh proxmox-lan "sudo -n pct exec 143 -- curl -fsS http://127.0.0.1:8000/healthz"→{"ok": true, "service": "weirsoe-party-protocol"}ssh proxmox-lan "sudo -n pct exec 143 -- bash -lc 'cd /opt/wpp-staging/app && ./infra/staging/smoke_suite.sh'"[smoke] OK,Smoke flow OK ...)Conclusion
Concrete next step
infra/staging/deploy_staging.shhealth check to tolerate service warm-up (e.g. bounded retry/backoff) and re-run this exact verification flow.Scheduler update: release-readiness blocker fra seneste verify er nu formaliseret som #141 (health-check race i
deploy_staging.sh). Dev-runner er retasket til at levere commit+PR artifact for fix. #90 holdes åben indtil canonical deploy + smoke passerer uden manuel intervention.Release-readiness update: blocker-fix for deploy health-check race er nu i PR #142 (SHA
c4ea5ca20853b2ee6752013881578e03abfb3970). #90 forbliver åben indtil PR er reviewed/merged og canonicaldeploy_staging.sh+ smoke er verificeret grønt uden manuel intervention.Smoke test PASS (staging) ✅\n\nKørt 2026-02-28 17:40 UTC efter ny deploy-verifikation på release-readiness-sporet.\nKommando (CT143):
cd /opt/wpp-staging/app && ISSUE_ON_FAIL=0 ./infra/staging/smoke_suite.sh\nResultat: healthz OK,migrate --check --noinputOK,manage.py smoke_stagingOK.Scheduler update: PR #142 er nu merged til
main(merge SHA6fd57d1714ee97c2f855e215e5df0728490df19a) og source branch er slettet. Næste release-readiness step for #90 er canonical staging verify:./infra/staging/deploy_staging.sh+ smoke-suite, uden manuel intervention.Canonical staging verify rerun (dev-runner) on
mainafter PR #142 merge.6fd57d1714ee97c2f855e215e5df0728490df19a./infra/staging/deploy_staging.shcd /opt/wpp-staging/app && ISSUE_ON_FAIL=0 ./infra/staging/smoke_suite.shEvidence:
Result: PASS for canonical deploy+smoke gate on current
main. #90 is ready to close from dev side.Scheduler closure: canonical release-readiness gate is now satisfied on
main(deploy + smoke PASS at SHA6fd57d1714ee97c2f855e215e5df0728490df19a, see latest evidence above).\n\nClosing #90 and treating MVP release-readiness as complete. Next step stays with PO/architect go-no-go in the release window.Smoke test PASS (staging) ✅
Kørt 2026-02-28 18:39 UTC efter ny canonical deploy-verifikation på #90.
Kommando (CT143):
cd /opt/wpp-staging/app && ISSUE_ON_FAIL=0 ./infra/staging/smoke_suite.shResultat: healthz OK,
migrate --check --noinputOK,manage.py smoke_stagingOK.Artifact: session
NRT3TG.Staging smoke PASS — 2026-03-15 11:15 UTC
manage.py migrate --check --noinput): OKmanage.py smoke_staging): OKIngen
smoke-failissue oprettet.Staging smoke pass 2026-03-16 03:06 UTC run: /healthz OK, migrate --check OK, gameplay smoke_staging OK (session P2UFQN). Ny staging deploy observeret på /opt/wpp-staging/app mtime 2026-03-15 19:16:39 UTC, så dette dækker den seneste deploy.
Staging smoke PASS — 2026-03-17 20:04 UTC
/opt/wpp-staging/appmtime:2026-03-17 06:54:48 UTC)./healthz: OKmanage.py migrate --check --noinput: OKmanage.py smoke_staging: OK (session XE95EF)/opt/wpp-staging/app/artifacts/smoke/smoke-20260317T200420Z.jsonIngen
smoke-failissue oprettet.