-
Notifications
You must be signed in to change notification settings - Fork 156
Upload logs when dependencies fail to start #330
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
Upload logs when dependencies fail to start #330
Conversation
|
Great idea! I would suggest 2 changes, though: 1- instead of copying and pasting the code from the |
Fixes Container logs are not uploaded when dependencies fail to start #327
|
Thanks for the feedback, I've gone back and made some changes. I've moved the failed services table and log upload into functions in the I made some other changes to the tests in |
toote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments. There is only one important one (to preserve the exit code), all the rest are mostly aesthetic. Sorry for being so nit-picky but I believe that this is the last one as you are obviously did a wonderful job
…logs-when-dependencies-fail-to-start
toote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A single minor detail that I caused when suggesting the name change that also caused one of the pipeline steps to fail. I tried to change it myself as it was VERY simple but I didn't have access to push to your branch so it falls to you again. Sorry
|
I'm seeing a README linting failure which I don't think is caused by this PR: Would you like me to change the version numbers in the README to |
|
@software-opal actually, I would suggest you update it to 3.11.1 as that will be the release version after this is merged :) |
toote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
This PR fixes #327 by uploading docker-compose logs when the services fail to start up.
I've done this by copy-pasting the log upload code from the end of the
run.shfile to below the code that starts up the dependent services.I've verified that these changes correctly fix the issue using the BuildKite pipeline and docker-compose file in the issue.