Repository navigation
Wait for osprey-worker before Demo Ready - #466
cassidyjames merged 3 commits into
Conversation
demo.sh printed Demo Ready without waiting for the worker. Add wait_for_container osprey-worker 90 after the UI wait. Compose container_name is osprey-worker (no healthcheck; the helper falls back to Running). Closes roostorg#433. Signed-off-by: Forest Savage <[email protected]>
|
Warning Review limit reachedNext included review available in 14 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe demo script now checks ChangesDemo worker readiness
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: 🔵 Low · up to The change prevents Demo Ready from appearing when osprey-worker fails to start. The bounded behavior change is otherwise localized, but explicit human approval is still required before merging the startup-script update. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Thank you for the time on this review. The dest is only the |
|
@forest-savage1234 thanks for the contribution! I'm testing this locally (I haven't actually tested demo.sh recently…), but it looks simple enough at a glance. I don't think we need to update the changelog here, though; it's a minor fix of a race condition and not something most people will encounter or notice. |
`docker inspect --format='{{.State.Health.Status}}'` writes a stray newline to stdout before failing when a container has no healthcheck, breaking the "not_found" fallback even when the container is healthy.
Use a Go template conditional instead of catching the error, so a missing healthcheck falls back correctly instead of erroring.
cassidyjames
left a comment
There was a problem hiding this comment.
Thanks @forest-savage1234! I made one minor fix (the not_found fallback was broken), but otherwise this should be good.
Wait for osprey-worker before Demo Ready
Closes #433.
Description
demo.shprints Demo Ready without waiting forosprey-worker. The script waits for kafka, postgres, minio, Druid, the UI API, and the UI, then prints the banner. If the worker dies on first boot (#432), newcomers still see Demo Ready and an empty UI. This addswait_for_container "osprey-worker" 90with the other waits. Composecontainer_nameisosprey-worker(no healthcheck; the helper falls back to Running).Checklist
uv run ruff check .passes (no unused imports or other lint errors)uv tool run fawltydeps --check-unused --pyenv .venvpasses (no unused dependencies)CHANGELOG.mdwith my changes, if notable (refer to Keep a Changelog conventions)demo.shwas run. The Tests box stays unchecked because Demo Ready was not reached. The worker wait failed (exit 1). That is the intended gate, not a full green demo.Validation
Exit 0.
Exit 0.
./demo.shrun 2026-08-23 ~7:06–7:35 PM AKDT on Windows. Shallow clone of main atC:\\Users\\fores\\Downloads\\osprey-433-demo. Docker already running. One-line dest wait only. No Demo Ready. Exit 1.git diff --statondemo.sh:1 file changed, 1 insertion(+)(wait_for_container "osprey-worker" 90 || exit 1). Worker start failure is #432, out of scope.Files
demo.shCHANGELOG.mdOut of scope
How to review
A dead worker should fail the wait instead of printing Demo Ready.
I am a volunteer. Thank you for the time. I am trying to become more useful on this work, so I welcome a critical look. If this is the wrong cut, or you want me to stand down, say so and I will recut from notes.
Summary by CodeRabbit
Bug Fixes
Documentation