Skip to content

Conversation

@cristianrgreco
Copy link
Collaborator

@cristianrgreco cristianrgreco commented Apr 2, 2025

Podman's API implementation delays resolving the logs Promise until the first chunk of log data is actually sent over the stream when follow: true. If the container never logs anything the Promise never resolves, and the await hangs indefinitely. Docker in contrast resolves the Promise as soon as the streaming connection is established, even before data flows.

This PR creates a pass through stream to act as a proxy which is immediately ready for all callers.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Apr 2, 2025
@netlify
Copy link

netlify bot commented Apr 2, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 3189acb
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67ed063ed21eee000866f4ea
😎 Deploy Preview https://deploy-preview-968--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 configuration.

@cristianrgreco cristianrgreco merged commit 87a5e5e into main Apr 2, 2025
249 checks passed
@cristianrgreco cristianrgreco deleted the log-stream-fix-for-podman branch April 2, 2025 10:06
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.

2 participants