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

terraform test: fix crash when non-applyable plans are applied #36582

Open
wants to merge 1 commit into
base: v1.11
Choose a base branch
from

Conversation

liamcervante
Copy link
Member

This fixes a crash in 1.11 branch that occurs when a run block in a test file fails due to a non-applyable plan. It later tries to deference the null state and crashes. This was already fixed in main during a larger refactor in which the actual crash wasn't detected, so I'm pushing directly to 1.11.

We shouldn't merge this until after the 1.11.0 release happens later this week, with the target release for this PR being 1.11.1 next week.

I will forward port the test that was added here so we don't accidentally cause a regression in main.

Fixes #

Target Release

1.11.1

CHANGELOG entry

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

@liamcervante liamcervante added the 1.11-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Feb 26, 2025
@liamcervante liamcervante requested a review from a team as a code owner February 26, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.11-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.

2 participants