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

fix: docker startup in acceptance #716

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

mtekel
Copy link
Contributor

@mtekel mtekel commented Oct 24, 2024

Do not set -e, because then we trap service docker stop and docker never starts. Instead keep waiting.

@mtekel mtekel requested review from CFN-CI and a team as code owners October 24, 2024 09:46
@maxmoehl maxmoehl added the run-ci Allow this PR to be tested on Concourse label Oct 24, 2024
maxmoehl
maxmoehl previously approved these changes Oct 24, 2024
Copy link
Member

@maxmoehl maxmoehl left a comment

Choose a reason for hiding this comment

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

Approving for CI.

Only trap docker stop after you have started it.

Otherwise errors in the loop try to stop it already,
while waiting for startup.
maxmoehl
maxmoehl previously approved these changes Oct 24, 2024
Copy link
Member

@maxmoehl maxmoehl left a comment

Choose a reason for hiding this comment

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

Approving for CI.

Increase wait intervals to not spam tests with errors on initial start (1s is usually too slow).

Attempt to start service more than once in case it did not come up. Give it more time to start.

Improve error message when startup fails.
Copy link
Contributor

@b1tamara b1tamara left a comment

Choose a reason for hiding this comment

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

Approving for CI

@maxmoehl maxmoehl merged commit 7a2d1d0 into cloudfoundry:master Oct 28, 2024
4 checks passed
@mtekel mtekel deleted the docker-acceptance-fix branch October 28, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-ci Allow this PR to be tested on Concourse
Projects
Development

Successfully merging this pull request may close these issues.

3 participants