Repository navigation
fix(up): wait for every replica in --wait and service_completed_successfully - #14523
Merged
Merged
Conversation
…ssfully Signed-off-by: Egor Rezvyi <99123419+Zoomish@users.noreply.github.com>
Zoomish
force-pushed
the
14521-wait-all-replicas
branch
from
November 17, 2026 09:32
eb7a546 to
141e471
Compare
ndeloof
approved these changes
Nov 18, 2026
ndeloof
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
nit: when a replica fails, checkDependencyCompleted marks every replica as errored, including one that exited 0 (the new test pins test-db-1 as StatusError). That is the existing per-container-list reporting, so fine to leave, but it reads oddly with replicas that completed successfully.
ndeloof
enabled auto-merge (rebase)
November 18, 2026 07:08
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
docker compose up --waitanddepends_onwithservice_completed_successfullytreat a scaled service as ready after one replica. This waits until every replica meets the condition. One failed replica still fails the wait.Related issue
Fixes #14521
Changes made
isServiceHealthykeeps scanning after a running replica with no healthcheck, and after a healthcheck that is still starting. The service is ready only when every replica is ready.exited,unhealthy, and an unknown health status still fail immediately.isServiceCompletedreturns success only when every replica has exited 0. A non-zero exit still fails immediately. An empty container list and dry-run are unchanged.Testing done
make testmake e2e-composeormake e2e-compose-standalonemake lintmake fmtmake lintfinished with 0 issues.make testpassed.make fmtmade no content changes.Additional context
(not mandatory) A picture of a cute animal, if possible in relation to what you did

My cat (Helped me)