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 test transparency. #1209

Merged
merged 2 commits into from
Dec 20, 2019
Merged

Improve test transparency. #1209

merged 2 commits into from
Dec 20, 2019

Conversation

porridge
Copy link
Member

What this PR does / why we need it:

  • Show what commands are being run.

    This makes it easier to get the most focused command for the thing that is
    failing.

  • Show the actual binary which is run.

This makes it easier to get the most focused command for the thing that
is failing.
@@ -942,7 +942,7 @@ func RunCommands(logger Logger, namespace string, command string, commands []kud
stdout := &bytes.Buffer{}
stderr := &bytes.Buffer{}

logger.Log("Running command:", cmd)
logger.Logf("Running command: %s %s", command, cmd)
Copy link
Member

Choose a reason for hiding this comment

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

The handling of command in RunCommands is weird, most of the time it's an empty string. I'd rather have us refactor these functions. But this isn't the scope of this PR, and as this improves logging for the case that command == "kubectl", I'm fine with this addition.

Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

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

LGTM!

@porridge porridge merged commit cbdfb88 into master Dec 20, 2019
@porridge porridge deleted the test-debuggability branch December 20, 2019 07:47
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
* Show the actual binary which is run.
* Show what commands are being run.
  This makes it easier to get the most focused command for the thing that is failing.

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants