fix(ci): smoke test boots the way production boots, and can fail #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/smoke-test-can-fail"
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?
The check could not fail
Three independent reasons this was incapable of failing:
HASKOS_DEBUG=true. The kernel's validator is literallyif self.debug: return self. This tested the one mode production never uses.docker run -dexits 0 when the container starts, not when it survives. A crash-on-boot passes.|| trueon every observation, including the log read.The fake DSN pointing at
localhost:5432inside the container also guaranteed the app could never finish booting — invisible for the same reasons.Why now
The identical step in
haskos-engineeringpassed an image that crashed on boot in production on 2026-07-27:haskos_kernel.configinstantiatesSettings()at import time and rejects placeholder secrets — but only outside debug mode. This app's runtime is fine (HASKOS_SESSION_SECRETis set on its Dokku app and it has been up and healthy for days). This is a gate defect, not an outage.What it does now
Sibling Postgres on its own network, no
HASKOS_DEBUG, dummy secrets that are present-and-valid rather than absent, then two assertions: the container is stillState.Running, and/healthanswers.The second is not redundant —
/healthonly responds after lifespan completes.Verified by making it fail
Ran the new logic against
dokku/haskos-finance:lateston contabo-sg:The old step passes both. That difference is the PR.
Ported from
haskos-engineeringPR #10.