-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: skip check evaluation when context is not prepared successfully #35408
fix: skip check evaluation when context is not prepared successfully #35408
Conversation
07b3bed
to
c66d40d
Compare
@liamcervante could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for the contribution @burnerlee!
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
Whoops, I missed this was being merged directly into the v1.8 branch. We should have merged this into I've reverted this PR in #35410, and merged this into the correct branch in #35411. @burnerlee, the commit that lands in |
oh I see, I will take care of this in the future contributions |
@liamcervante, I am looking forward to making new contributions to this project. Can't find recent good-first-issues. Can you assign me some beginner-friendly/medium level issues? |
Hi @burnerlee, thanks for your contribution! We appreciate your enthusiasm, unfortunately we do not currently have a list of good first issues for community contribution. Please keep checking in for any issue marked |
Hey @crw thanks for the reply. Can you assign me some medium level issues instead? I would be happy to go through the codebase and try to resolve those. I'm looking to be a long time contributor |
@burnerlee Unfortunately, we do not have the capacity on the team right now for managing and reviewing larger external contributions. In general, it is difficult to ramp up external contributors on the context needed to understand the impact of changing any particular system. Again, please see specifically https://github.com/hashicorp/terraform/blob/main/.github/CONTRIBUTING.md#contributing-a-pull-request for more info on how to contribute effectively. I'd strongly recommend looking at the AWS or Azure providers as a starting place to make more widespread contributions. |
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. |
This PR fixes the
terraform test
cmd logging additional errorenous error message while referencing invalid attributes. While evaluating a check, a HCL evaluation context is created for the test command. Some validation is done during the creation of the context, failing which an empty context is returned with the expected diagnostic. This PR stops the evaluation of a check as soon as a diagnostic is returned with an error.Fixes #35265
Target Release
1.9.1
Draft CHANGELOG entry
BUG FIXES
terraform test
command is expected to not show confusing message when context does not contain variables due to validation error