Skip to content

Conversation

@DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Dec 8, 2025

This helps us surface issues where we can only notice problems with local values in the stacks component language during the evaluation of the value.

Co-authored-by: Mutahhir Hayat [email protected]
Co-authored-by: Matej Risek [email protected]

Fixes #

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

This helps us catch diagnostics in locals that only happen during evaluation

Co-authored-by: Mutahhir Hayat <[email protected]>
Co-authored-by: Matej Risek <[email protected]>
@DanielMSchmidt DanielMSchmidt requested a review from a team as a code owner December 8, 2025 16:02
nfagerlund
nfagerlund previously approved these changes Dec 9, 2025
Copy link
Member

@nfagerlund nfagerlund left a comment

Choose a reason for hiding this comment

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

Omg awesome, I was hoping you'd be able to track down a way to interrupt this.

I went ahead and re-ran my reproduction case, and sure enough, the plan errored and spewed the same list of errors I saw from the modules runtime into the diagnostics. I was unable to proceed to an apply and corrupt the state.

The empty state thing still definitely deserves love, but this definitely fixes the one cause of it that we've been able to observe.

@DanielMSchmidt
Copy link
Contributor Author

@nfagerlund I'll also look into the state issue and in inputs being unknown to make sure no other way can lead to a similar issue

@DanielMSchmidt
Copy link
Contributor Author

@nfagerlund This PR should fix the state issues: #37981

jbardin
jbardin previously approved these changes Dec 10, 2025
@DanielMSchmidt DanielMSchmidt added the 1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Dec 11, 2025
@DanielMSchmidt DanielMSchmidt dismissed stale reviews from jbardin and nfagerlund via e02f8b4 December 11, 2025 09:31
@DanielMSchmidt DanielMSchmidt merged commit 2eb22c8 into main Dec 11, 2025
13 checks passed
@DanielMSchmidt DanielMSchmidt deleted the stacks-surface-diagnostics-from-locals branch December 11, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants