Skip to content

Fix run in container flakiness#489

Merged
cristianrgreco merged 1 commit into
mainfrom
fix-run-in-container-flakiness-2
Mar 9, 2023
Merged

Fix run in container flakiness#489
cristianrgreco merged 1 commit into
mainfrom
fix-run-in-container-flakiness-2

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Mar 9, 2023

Copy link
Copy Markdown
Collaborator

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

netlify Bot commented Mar 9, 2023

Copy link
Copy Markdown

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