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 run in container flakiness #489

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

cristianrgreco
Copy link
Collaborator

@cristianrgreco cristianrgreco commented Mar 9, 2023

We are sometimes seeing test failures related to run-in-container, used when resolving the default gateway.

We currently create the container with autoRemove: true, attach to it, and wait for the log output. However we see the container is sometimes created and removed so quickly that we cannot inspect it in time, resulting in an error.

Now we remove autoRemove: true, and instead forcefully remove the container once we have consumed all log output. We have also removed some of the interval logic around inspecting the container as this has been fixed apocas/dockerode#534.

@netlify
Copy link

netlify bot commented Mar 9, 2023

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 58d0b89
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/6409b62b27c6e300081ce192
😎 Deploy Preview https://deploy-preview-489--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Mar 9, 2023
@cristianrgreco cristianrgreco marked this pull request as ready for review March 9, 2023 12:41
@cristianrgreco cristianrgreco merged commit d69689d into main Mar 9, 2023
@cristianrgreco cristianrgreco deleted the fix-run-in-container-flakiness-2 branch March 9, 2023 14:49
@cristianrgreco cristianrgreco self-assigned this Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Backward compatible bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exec Stream Doesn't Emit End Event
1 participant