Skip to content

Fix issue #8: add production readiness health checks#12

Merged
jaeyunha merged 1 commit into
mainfrom
issue-8-health-readiness-deploy-20260517
May 17, 2026
Merged

Fix issue #8: add production readiness health checks#12
jaeyunha merged 1 commit into
mainfrom
issue-8-health-readiness-deploy-20260517

Conversation

@jaeyunha
Copy link
Copy Markdown
Member

Summary

  • add Rust API /ready readiness endpoint that returns 503 when Postgres is unavailable while keeping /health as HTTP-200 liveness
  • add public Next.js /healthz endpoint
  • document/configure AWS ALB/ECS health paths and add deploy wait gate for /ready + /healthz

Validation

  • make doctor
  • make check
  • TEST_DATABASE_URL=postgresql://opengithub:opengithub@localhost:55433/opengithub_test ./hack/cargo_locked.sh test -p opengithub-api --test health_readiness --test api_rate_limits_contract
  • cd web && npx vitest run tests/healthz-route.test.ts
  • bash -n scripts/deploy.sh
  • python -m json.tool deploy/aws/health-checks.json >/dev/null

Note

  • Full make test was attempted and reached an unrelated existing failure in projects_list_contract expecting /owner/projects/... while implementation returned /orgs/owner/projects/...; readiness-focused tests are green.

Closes #8

@jaeyunha jaeyunha merged commit 0b3deca into main May 17, 2026
@jaeyunha jaeyunha deleted the issue-8-health-readiness-deploy-20260517 branch May 17, 2026 11:27
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.

Deployment blocker: add production readiness and health endpoints

1 participant