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

fix: apply strip_refreshing to output for errors #4443

Merged
merged 6 commits into from
May 21, 2024

Conversation

pseudomorph
Copy link
Contributor

what

Apply strip_refreshing formatting to output prior to use in error messaging.

why

When using a custom run command for the plan step - an error with Terraform can produce very long outputs regarding refreshing. #3518 addressed stripping the refreshing comments out for successful commands, but they still come through in errors. This addresses that.

tests

references

@pseudomorph pseudomorph requested review from a team as code owners April 16, 2024 23:28
@pseudomorph pseudomorph requested review from jamengual, lukemassa and nitrocode and removed request for a team April 16, 2024 23:28
@github-actions github-actions bot added the go Pull requests that update Go code label Apr 16, 2024
@pseudomorph pseudomorph changed the title apply strip_refreshing to output for errors fix: apply strip_refreshing to output for errors Apr 16, 2024
@pseudomorph pseudomorph force-pushed the run_error_strip_refresh branch 2 times, most recently from c738bc7 to cbff893 Compare April 16, 2024 23:49
@pseudomorph pseudomorph marked this pull request as draft April 16, 2024 23:55
@pseudomorph
Copy link
Contributor Author

Need to figure out test failures. They seem unrelated.

@pseudomorph pseudomorph force-pushed the run_error_strip_refresh branch from cbff893 to 96b392b Compare April 17, 2024 19:31
@pseudomorph pseudomorph marked this pull request as ready for review April 17, 2024 20:48
@pseudomorph
Copy link
Contributor Author

I'm pretty confused on the test errors here. When I run the tests locally against main, they still show up. Traversing down the git history doesn't seem to change much for test status against recent commits.

@jippi
Copy link
Contributor

jippi commented Apr 19, 2024

@pseudomorph your test failures is fixed in #4462 :)

@pseudomorph pseudomorph force-pushed the run_error_strip_refresh branch 2 times, most recently from 00634bf to 22393d1 Compare April 23, 2024 15:37
@pseudomorph pseudomorph force-pushed the run_error_strip_refresh branch from 22393d1 to c719e96 Compare April 29, 2024 17:59
@pseudomorph pseudomorph force-pushed the run_error_strip_refresh branch from c719e96 to 36dbb4f Compare April 30, 2024 16:12
@jamengual jamengual added the waiting-on-review Waiting for a review from a maintainer label Apr 30, 2024
@chenrui333 chenrui333 merged commit 821de05 into runatlantis:main May 21, 2024
25 checks passed
@chenrui333 chenrui333 removed the waiting-on-review Waiting for a review from a maintainer label May 21, 2024
@chenrui333
Copy link
Member

@pseudomorph can you followup and add test for this change? Thanks!

ragne pushed a commit to ragne/atlantis that referenced this pull request May 23, 2024
@TGM
Copy link

TGM commented May 24, 2024

Wird, strip_refreshing dosen't do anything now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refreshing output not stripped in error output with 'strip_refreshing' on custom run command
5 participants