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

define.TempDirForURL(): show CombinedOutput when a command fails #3619

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Nov 8, 2021

What type of PR is this?

/kind other

What this PR does / why we need it:

When define.TempDirForURL() runs an external command, if it fails, include the command's output in the error that's handed back to its caller so that the end-user has some idea of what happened.

How to verify it

New integration test!

Which issue(s) this PR fixes:

Out-of-band error report.

Special notes for your reviewer:

We really need to stop adding logic to the define package. It drags additional dependencies in for consumers of the package that only want our type definitions, which directly undermines the stated rationale for creating the define package and moving type definitions into it.

Does this PR introduce a user-facing change?

None

When define.TempDirForURL() runs an external command, if it fails,
include the command's output in the error that's handed back to its
caller so that the end-user has some idea of what happened.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 8, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nalind

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Nov 8, 2021
@nalind
Copy link
Member Author

nalind commented Nov 8, 2021

h/t @edsantiago @cevich

@edsantiago
Copy link
Collaborator

Is this a fix for #3544? #3214?

@nalind
Copy link
Member Author

nalind commented Nov 8, 2021

It's for the vague error message you asked about in chat last week.

@rhatdan
Copy link
Member

rhatdan commented Nov 8, 2021

LGTM

@edsantiago
Copy link
Collaborator

Oh, I remember now. LGTM, thank you!

@rhatdan
Copy link
Member

rhatdan commented Nov 8, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 8, 2021
@openshift-merge-robot openshift-merge-robot merged commit 50ebc90 into containers:main Nov 8, 2021
@nalind nalind deleted the git-clone-error branch November 8, 2021 21:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants