Use pod replace in ibutsu-pod.sh#848
Conversation
Reviewer's GuideAdds podman --replace semantics to all ibutsu pod services, upgrades the Postgres container image from 12 to 15, and introduces a timeout with diagnostic logging when waiting for the backend to become ready. Flow diagram for backend readiness wait with timeoutflowchart TD
A[Start waiting for backend] --> B[Set BACKEND_WAIT = 0]
B --> C[Set BACKEND_TIMEOUT = 600]
C --> D{curl to backend succeeds?}
D -->|Yes| H[Backend up]
D -->|No| E[Sleep 2s]
E --> F[BACKEND_WAIT = BACKEND_WAIT + 2]
F --> G{BACKEND_WAIT >= BACKEND_TIMEOUT?}
G -->|Yes| I[Print error and ibutsu-backend logs]
I --> J[Exit 1]
G -->|No| D
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Co-authored-by: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the scripts/ibutsu-pod.sh Podman-based dev environment script to make container startup more repeatable and to fail faster when the backend doesn’t become reachable.
Changes:
- Add
podman run --replaceacross services to avoid name-collision failures on reruns. - Add a backend readiness wait loop with a 10-minute timeout and log dump on failure.
- Bump the PostgreSQL container image from
rhel8/postgresql-12torhel8/postgresql-15.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (73.44%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #848 +/- ##
=======================================
Coverage 73.44% 73.44%
=======================================
Files 154 154
Lines 7562 7562
Branches 662 662
=======================================
Hits 5554 5554
Misses 1788 1788
Partials 220 220 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Summary by Sourcery
Update ibutsu pod management script to use replaceable containers, modernize the Postgres image, and improve backend startup failure diagnostics.
Enhancements: