feat: add container health and readiness checks #295
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!295
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-83e123d4-health-readiness"
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?
Summary
Verification
No dependency or workflow changes. Native-script tests mock fetch/process and never start servers/containers. Actual container verification is LOCAL ONLY: NEVER integration/container tests or runtime provisioning in CI or release workflows.
Task: #task-83e123d4
Awaiting CI, independent review and explicit human merge approval.
Independent PR review
83487f91730ceb67caaf070c106fe09892217827), opentask-83e123d4Summary
The diff adds a scoped readiness signal and runtime Docker health check without changing the existing
/healthor/api/v1/healthliveness contracts. Readiness is database/migration based, read-only, independent of owner setup, and returns stableready/not_readyJSON with 200/503 andCache-Control: no-store. The native Node healthcheck script uses only runtime-available Node globals and targets/ready.Acceptance criteria
template/site/Dockerfilecopiesscripts/healthcheck.mjsand declaresHEALTHCHECK ... CMD ["node", "scripts/healthcheck.mjs"]; unit/static and local container evidence cover it./readyreturns 200 withstatus: "ready"andchecks.database: "pass"for initialized DBs, including before owner setup./health,/api/v1/health, and/ready; focused route tests cover liveness, readiness, setup-gate bypass, status codes, JSON, and no-store.node scripts/healthcheck.mjs/Docker health and route liveness to/health, readiness to/ready.Quality and security
SELECT id FROM schema_migrations; it does not open/create databases, run migrations, mutate schema, expose DB paths, credentials, or exception details.Blocking issues
Warnings
Final verdict
Approved. Awaiting explicit human merge approval.