load /etc/wpp/staging.env (or $ENV_FILE) before manage.py migrate --check and manage.py smoke_staging in staging smoke suite
keep smoke logic unchanged otherwise; only env bootstrap for DB/schema parity
Why
Staging smoke can fail with schema mismatch when manage.py commands run without staging DB env, which makes checks read a different DB context after failed/partial deploy paths. This is a low-risk hardening directly for #130 and release-readiness #90.
Checks
bash -n infra/staging/smoke_suite.sh
.venv/bin/python manage.py check
.venv/bin/python manage.py test lobby.tests.SmokeStagingCommandTests.test_smoke_staging_command_runs_full_flow
## Summary
- load `/etc/wpp/staging.env` (or `$ENV_FILE`) before `manage.py migrate --check` and `manage.py smoke_staging` in staging smoke suite
- keep smoke logic unchanged otherwise; only env bootstrap for DB/schema parity
## Why
Staging smoke can fail with schema mismatch when manage.py commands run without staging DB env, which makes checks read a different DB context after failed/partial deploy paths. This is a low-risk hardening directly for #130 and release-readiness #90.
## Checks
- `bash -n infra/staging/smoke_suite.sh`
- `.venv/bin/python manage.py check`
- `.venv/bin/python manage.py test lobby.tests.SmokeStagingCommandTests.test_smoke_staging_command_runs_full_flow`
Refs #130
Refs #90
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
/etc/wpp/staging.env(or$ENV_FILE) beforemanage.py migrate --checkandmanage.py smoke_stagingin staging smoke suiteWhy
Staging smoke can fail with schema mismatch when manage.py commands run without staging DB env, which makes checks read a different DB context after failed/partial deploy paths. This is a low-risk hardening directly for #130 and release-readiness #90.
Checks
bash -n infra/staging/smoke_suite.sh.venv/bin/python manage.py check.venv/bin/python manage.py test lobby.tests.SmokeStagingCommandTests.test_smoke_staging_command_runs_full_flowRefs #130
Refs #90
✅ Review complete: ændringen er lav-risiko, løser env-kontekst før migrate/smoke, og CI-status er grøn. Ingen blockers fundet på denne head SHA.
Merged by integrator after gates passed on head
8b6f11575963f8d29cf429c003b200df0367d52b(approved + required CI success). Source branch deleted.