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

Error messages from tools are missing #203

Open
1 task
hattan opened this issue Jun 20, 2023 · 1 comment
Open
1 task

Error messages from tools are missing #203

hattan opened this issue Jun 20, 2023 · 1 comment
Assignees

Comments

@hattan
Copy link
Contributor

hattan commented Jun 20, 2023

When executing tools in a subshell (such as tflint) , the tool output is not displayed in the pipeline logs.

AC:
Output from tools used in Symphony should be surfaced and visible in the pipeline or workflow logs.

Tasks

@mahomedalid
Copy link
Contributor

@hattan the problem gets presented when two things happens:

  • err on exit is enabled, and
  • stderr is redirected to stdout, and stdout is redirected to a file (aka 2>&1 >output)

If err on exist is enabled but stderr is not redirected, the script breaks but the error still surfaces, example tfdestroy:

image

I only found two instances where these set of conditions occurs: iac.tf.sh and tests.runner.sh

do you know other cases I should consider? or are these two the only ones with the issue as far as you know?

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 a pull request may close this issue.

2 participants