[smoke-fail] staging gameplay smoke fails (schema mismatch after failed deploy) #130
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?
Automatisk oprettet ifm. issue #90 release readiness.
Fejl under smoke (
infra/staging/smoke_suite.sh):django.db.utils.OperationalError: no such column: fupogfakta_player.session_tokenKontekst:
Downstream mitigation landed via PR #135.
Context:
db.sqlite3in source archives, which could leave stale/root-owned SQLite state in staging during deploy.db.sqlite3, reducing schema drift risk after deploy and aligning with MySQL-only staging expectations.Artifacts:
12fc12f955618b895f14e2109e24409206bc2fd6After merge, staging deploy + smoke should be re-run to verify the schema mismatch symptom is gone end-to-end.
Follow-up fix pushed for #130 (also supports #90):
infra/staging/smoke_suite.sh:manage.py migrate --check --noinputschema driftmessage before gameplay smokelobby.management.commands.smoke_stagingto sendsession_tokenon lie/guess submit (matches current API contract)SmokeStagingCommandTests.test_smoke_staging_command_runs_full_flowChecks run locally:
python3 -m py_compile lobby/management/commands/smoke_staging.py lobby/tests.pybash -n infra/staging/smoke_suite.shbash -n infra/staging/deploy_staging.sh.venv/bin/python manage.py test lobby.tests.SmokeStagingCommandTests lobby.tests.LieSubmissionTests.test_submit_lie_requires_session_token -v 2(PASS)PR: #137
Commit:
abb656dDevOps drift verification run (MANAGE) completed on staging CT143.
Result: manual remediation PASS, automation still FAIL-prone.
What happened:
./infra/staging/deploy_staging.sh mainfailed withdjango.db.utils.OperationalError: unable to open database file.DATABASE_URL=sqlite:////opt/wpp-staging/app/db.sqlite3(/etc/wpp/staging.env)/opt/wpp-staging/appwas owned byroot:rootafter deploy copy stepdb.sqlite3missing, and service runs as userwppchown -R wpp:wpp /opt/wpp-staging/appmanage.py migrate --noinputinfra/staging/smoke_suite.sh-> healthz OK + gameplay flow OK.Conclusion:
Resolved by merged PR #140 (env bootstrap in staging smoke suite). Closing this blocker; release-readiness tracking continues in #90.