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

feat: exec multiplexed to return stderr #1933

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

gutocondela
Copy link
Contributor

What does this PR do?

This PR allows container command execution to return stderr, when the command execution produces an error.

Why is it important?

It's important to get the output of a error when executing a command in a container, to facilitate the error debug.

Related issues

@gutocondela gutocondela requested a review from a team as a code owner December 1, 2023 09:51
Copy link

netlify bot commented Dec 1, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 9299f1d
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6569ad838b34410008c5bed8
😎 Deploy Preview https://deploy-preview-1933--testcontainers-go.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.

@@ -129,7 +129,7 @@ require (
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
github.com/serialx/hashring v0.0.0-20190422032157-8b2912629002 // indirect
github.com/shibumi/go-pathspec v1.3.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.9 // indirect
github.com/shirou/gopsutil/v3 v3.23.10 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is probably unrelated, but let's include it as it's harmless

@mdelapenya mdelapenya self-assigned this Dec 1, 2023
@mdelapenya mdelapenya added the bug An issue with the library label Dec 1, 2023
Copy link
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for contributing this fix! It's important to return the stdError in that case

@mdelapenya mdelapenya added feature New functionality or new behaviors on the existing one and removed bug An issue with the library labels Dec 1, 2023
@mdelapenya
Copy link
Member

I'm changing the bug label to feature, as with this PR we are now supporting both outputs in the response, instead of the stdout, only.

@mdelapenya mdelapenya merged commit 927b11b into testcontainers:main Dec 1, 2023
112 checks passed
@mdelapenya mdelapenya changed the title fix: exec multiplexed to return stderr feat: exec multiplexed to return stderr Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or new behaviors on the existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Container Exec not returning stderr, on multiplexed option
2 participants