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

Improved errors printing in case of terraform/tofu invocation #3423

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

denis256
Copy link
Member

@denis256 denis256 commented Sep 19, 2024

Description

  • Updated error handling to print more details about catched process error
  • Since it is printed process stdout/stderr - output may be in multiple lines
  • Added tests for this

Example output:
image

Fixes #3422.

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

@denis256 denis256 changed the title Improved erorr printing to include stderr and stdout Improved errors printing in case of terraform/tofu invocation Sep 19, 2024
@denis256 denis256 marked this pull request as ready for review September 19, 2024 19:17
@denis256 denis256 merged commit 70797fd into main Sep 20, 2024
3 of 4 checks passed
@denis256 denis256 deleted the error-output-printing branch September 20, 2024 05:24
akrantz01 referenced this pull request in akrantz01/homelab Sep 24, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[gruntwork-io/terragrunt](https://redirect.github.com/gruntwork-io/terragrunt)
| patch | `v0.67.9` -> `v0.67.10` |
|
[gruntwork-io/terragrunt](https://redirect.github.com/gruntwork-io/terragrunt)
| patch | `0.67.9` -> `0.67.10` |

---

### Release Notes

<details>
<summary>gruntwork-io/terragrunt (gruntwork-io/terragrunt)</summary>

###
[`v0.67.10`](https://redirect.github.com/gruntwork-io/terragrunt/releases/tag/v0.67.10)

[Compare
Source](https://redirect.github.com/gruntwork-io/terragrunt/compare/v0.67.9...v0.67.10)

#### Updated CLI args, config attributes and blocks

-   `terraform`

#### What's Changed

- Improved process error handling to provide detailed output for caught
errors.

#### Related links

-
[https://github.com/gruntwork-io/terragrunt/pull/3423](https://redirect.github.com/gruntwork-io/terragrunt/pull/3423)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/akrantz01/homelab).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.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.

Terragrunt crashes with no useful information if terraform version is not determined
2 participants