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

feat: Also log command stderr at TRACE level #206

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Apr 3, 2023

Resolves #67

@pdecat pdecat requested a review from a team as a code owner April 3, 2023 13:17
@github-actions github-actions bot added size/S and removed size/XS labels Apr 3, 2023
@pdecat pdecat force-pushed the trace-stderr branch 2 times, most recently from a49739a to 13a4db9 Compare April 4, 2023 13:14
@gorge511
Copy link

gorge511 commented Feb 5, 2024

Hi, @pdecat @austinvalle is there any plan to finish this? I spent a whole day investigating why my external data resource is not working on our CI/CD and this feature would help me a lot. Thanks

@pdecat
Copy link
Contributor Author

pdecat commented Feb 5, 2024

Hi @gorge511, from my point of view, this is finished and ready to merge (I'm just a contributor here).

Copy link
Member

@austinvalle austinvalle left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution @pdecat and apologies for the delay on reviewing this. I'll add a small note changelog to this and merge/release it next week 👍🏻

Our CI is bugged right now for PRs from forks, so the tests didn't run, but I pulled the PR down and it all looks good.

 $ make testacc                                                  
TF_ACC=1 go test -v -cover -timeout 120m ./...
?       github.com/terraform-providers/terraform-provider-external      [no test files]
?       github.com/terraform-providers/terraform-provider-external/internal/provider/test-programs/tf-acc-external-data-source       [no test files]
=== RUN   TestDataSource_basic
--- PASS: TestDataSource_basic (0.68s)
=== RUN   TestDataSource_error
--- PASS: TestDataSource_error (0.26s)
=== RUN   TestDataSource_Program_OnlyEmptyString
--- PASS: TestDataSource_Program_OnlyEmptyString (0.17s)
=== RUN   TestDataSource_Program_PathAndEmptyString
--- PASS: TestDataSource_Program_PathAndEmptyString (0.63s)
=== RUN   TestDataSource_Program_EmptyStringAndNullValues
--- PASS: TestDataSource_Program_EmptyStringAndNullValues (0.17s)
=== RUN   TestDataSource_Query_EmptyElementValue
--- PASS: TestDataSource_Query_EmptyElementValue (0.61s)
=== RUN   TestDataSource_Query_NullElementValue
--- PASS: TestDataSource_Query_NullElementValue (0.55s)
=== RUN   TestDataSource_CurrentDir
--- PASS: TestDataSource_CurrentDir (0.65s)
=== RUN   TestDataSource_upgrade
--- PASS: TestDataSource_upgrade (3.38s)
=== RUN   TestDataSource_20MinuteTimeout
    data_source_test.go:414: Skipping this test since the TF_ACC_EXTERNAL_TIMEOUT_TEST environment variable is not set to any value. This test requires 20 minutes to run, so it is disabled by default.
--- SKIP: TestDataSource_20MinuteTimeout (0.00s)
PASS
coverage: 84.0% of statements
ok      github.com/terraform-providers/terraform-provider-external/internal/provider    7.973s  coverage: 84.0% of statements

@austinvalle austinvalle added this to the v2.3.3 milestone Feb 9, 2024
@austinvalle austinvalle self-assigned this Feb 9, 2024
@austinvalle austinvalle merged commit 0998e0f into hashicorp:main Feb 12, 2024
6 checks passed
@pdecat pdecat deleted the trace-stderr branch February 13, 2024 09:17
Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
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.

Support option to output stderr regardless of failure
3 participants