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

improvement: add additional info to error message when sh is not found #3980

Merged
merged 3 commits into from Mar 23, 2023

Conversation

10ko
Copy link
Member

@10ko 10ko commented Mar 22, 2023

What this PR does / why we need it:
A user is having intermittent errors when running a test with artifacts where Garden responds with the error message:

<test-name> specifies artifacts to export, but the image doesn't contain the sh binary. In order to copy artifacts out of Kubernetes containers, both sh and tar need to be installed in the image.

They are sure that both sh and tar are present in the container.

Given the way we determine if sh or tar are not present and the difficulty in reproducing the error, I propose to print the full error message we receive from the execution, in the hope we can identify the root cause.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@10ko 10ko requested a review from vvagaytsev March 22, 2023 10:32
@vvagaytsev
Copy link
Collaborator

Thank you! 👍

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

There are some test failures.

@vvagaytsev vvagaytsev force-pushed the improve-error-message-when-sh-not-found branch from 3e98e33 to e90aefe Compare March 23, 2023 12:30
@vvagaytsev
Copy link
Collaborator

I've fixed the test assertions, let's wait for the test results.

@vvagaytsev vvagaytsev self-requested a review March 23, 2023 13:19
@vvagaytsev vvagaytsev merged commit 69d11b1 into main Mar 23, 2023
47 checks passed
@vvagaytsev vvagaytsev deleted the improve-error-message-when-sh-not-found branch March 23, 2023 13:19
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

2 participants