Skip to content
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

detect dependency failed to start #10101

Merged
merged 1 commit into from Dec 19, 2022
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Dec 19, 2022

What I did
detect dependent service failed to start (container exited) and exit with error.
note: this doesn't cover scenarios like replicated service with one container to exit but the other eventually becoming healthy, container to restart after an initial failure, etc...

Related issue
closes #9732

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team December 19, 2022 14:44
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 76.98% // Head: 76.98% // No change to project coverage 👍

Coverage data is based on head (5d0bef3) compared to base (9d12eec).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2   #10101   +/-   ##
=======================================
  Coverage   76.98%   76.98%           
=======================================
  Files           2        2           
  Lines         252      252           
=======================================
  Hits          194      194           
  Misses         51       51           
  Partials        7        7           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pkg/e2e/fixtures/dependencies/dependency-exit.yaml Outdated Show resolved Hide resolved
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit b8bbdcd into docker:v2 Dec 19, 2022
@ndeloof ndeloof deleted the dependency_exit branch December 19, 2022 15:26
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.

compose doesn't show error or exit if depends_on service has exited
3 participants