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

Improve logging in InternalCommandPortListeningCheck (#2984) #3001

Merged

Conversation

vcvitaly
Copy link
Contributor

@vcvitaly vcvitaly commented Jul 16, 2020

Related to:
Mock Server doesn't start after updating to 5.11.0 #2984

When /bin/sh -c $command exists with code 126 (Command invoked cannot execute), the error output is not logged.
An example, /bin/sh is not available starting certain image version:
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: "/bin/sh": stat /bin/sh: no such file or directory": unknown

Such error output could be logged to assist troubleshooting. It shouldn't bloat logs since such outcome is rare.

@stale
Copy link

stale bot commented Jan 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Jan 24, 2021
@stale stale bot removed the stale label Apr 12, 2021
@bsideup
Copy link
Member

bsideup commented Apr 12, 2021

Hey @vcvitaly,

Sorry for overlooking this PR. Could you please resolve the conflict? It looks like you have "enable edits by maintainers" disabled, otherwise I'd do it myself :) Thanks!

…_11_start_issue

# Conflicts:
#	core/src/main/java/org/testcontainers/containers/wait/internal/InternalCommandPortListeningCheck.java
@vcvitaly
Copy link
Contributor Author

Hey @vcvitaly,

Sorry for overlooking this PR. Could you please resolve the conflict? It looks like you have "enable edits by maintainers" disabled, otherwise I'd do it myself :) Thanks!

@bsideup Thanks for the review! I merged the master, it should be good.

@bsideup bsideup added this to the next milestone Apr 24, 2021
@bsideup bsideup merged commit 49a103c into testcontainers:master Apr 24, 2021
@bsideup
Copy link
Member

bsideup commented Apr 24, 2021

@vcvitaly thanks! Merged 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants