Skip to content

Fix/deployment validation - #15

Merged
quangshuynh merged 2 commits into
mainfrom
fix/deployment-validation
Oct 18, 2026
Merged

quangshuynh merged 2 commits into
mainfrom
fix/deployment-validation

Conversation

@quangshuynh

Copy link
Copy Markdown
Member

No description provided.

… what it did

env.py never loaded the logging section alembic.ini declares, so
'alembic upgrade head' (the compose migrate step) printed nothing and an
operator could not tell whether it applied six revisions or none. Load it
only when Alembic was started from an ini file, so a Config built in code
(the tests, schema.py) keeps the caller's logging untouched.
The api service depends on migrate, so 'docker compose run --rm api ...'
ran 'alembic upgrade head' before every CLI command. After a build, a
scheduled retention cleanup would migrate the database under the old api
and worker, against the documented deploy order. With --no-deps the CLI
only checks the schema revision, as the API and worker do.
@quangshuynh
quangshuynh merged commit 887ecc3 into main Oct 18, 2026
6 checks passed
@quangshuynh
quangshuynh deleted the fix/deployment-validation branch October 18, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant