Skip to content

Conversation

@austinvalle
Copy link
Member

@austinvalle austinvalle commented Jan 9, 2026

NOTE: This PR is dependent on some upstream work that hasn't been merged, other than that, the PR is ready for review

Related Issue

N/A

Description

This PR introduces a new StateStore test mode that can be used to smoke test the state storage being used by Terraform. It runs a variety of Terraform commands to achieve this and is based off of the existing acceptance tests for backends in Terraform core: https://github.com/hashicorp/terraform/blob/main/internal/backend/testing.go

The StateStore mode does not test locking, there will be a follow-up PR for that functionality and it will be triggered with a different field as not all state store implementations support locking.

Note

The helper/resource/statestore/statestore_test.go tests I have been running locally with the latest main commit for Terraform, built with experiments enabled: go install -ldflags="-X main.experimentsAllowed=yes" .

I'm assuming we'll get an alpha snapshot from TF Core sometime soon, which we can then add to our CI and re-run.... but everything is working on my local ATM 😄

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

No

@austinvalle austinvalle added this to the v1.15.0 milestone Jan 9, 2026
@austinvalle austinvalle added the enhancement New feature or request label Jan 9, 2026
@austinvalle austinvalle requested a review from a team as a code owner January 9, 2026 22:09
go.mod Outdated
Comment on lines 16 to 18
github.com/hashicorp/terraform-exec v0.24.1-0.20260106235132-34cefc28ca08
github.com/hashicorp/terraform-json v0.27.2
github.com/hashicorp/terraform-plugin-go v0.29.0
github.com/hashicorp/terraform-plugin-go v0.29.1-0.20251107103451-b1dbec9688da
Copy link
Member Author

@austinvalle austinvalle Jan 9, 2026

Choose a reason for hiding this comment

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

TODO: update once releases are made for these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant