-
Notifications
You must be signed in to change notification settings - Fork 55
feat: add health checks to docker-compose and remove sleep from pipeline #767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add health checks to docker-compose and remove sleep from pipeline #767
Conversation
WalkthroughReplaces fixed sleep-based waits with Docker Compose's readiness wait in CI and adds explicit healthchecks plus depends_on service_healthy conditions for multiple database and cache services in docker-compose to coordinate startup. Changes
Sequence Diagram(s)sequenceDiagram
participant CI as CI job
participant DC as Docker Compose
participant Svc as Services
participant Test as Test step
rect rgb(230,245,255)
CI->>DC: docker compose up -d --wait
note right of DC: Start containers\nand wait for healthchecks
end
rect rgb(240,255,230)
DC->>Svc: start containers\nrun healthchecks
alt service healthy
Svc-->>DC: service_healthy
else unhealthy (retries)
Svc-->>DC: failing -> retry per healthcheck
end
end
rect rgb(255,245,230)
DC->>CI: all required services healthy
CI->>Test: run unit/adapters tests
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/tests.yml(2 hunks)docker-compose.yml(10 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Adapter Tests (Mirror)
- GitHub Check: Adapter Tests (Pool)
🔇 Additional comments (1)
.github/workflows/tests.yml (1)
57-60: Workflow changes look good, pending docker-compose validation.Both test jobs now use
docker compose up -d --waitto wait for service readiness via health checks instead of fixed sleep delays. This is a solid improvement for deterministic startup—however, it depends on properdepends_onconfiguration withcondition: service_healthyin docker-compose.yml for the tests service.I'll validate this in the docker-compose.yml review below.
Also applies to: 100-103
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Added healthchecks to the various test dependencies within the docker-compose. These healthchecks differ in implementation per database.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.