Loading...
Loading...
### Terraform Version ```shell Code on main branch ``` ### Terraform Configuration Files N/A ### Debug Output N/A ### Expected Behavior Tests pass after this fix is introduced: https://github.com/hashicorp/terraform/pull/38583/changes ### Actual Behavior There is a race condition in tests related to ephemeral resources when that fix is made: ``` % go test -race ./internal/terraform ... ================== --- FAIL: TestContext2Apply_ephemeralProviderRef (0.04s) testing.go:1617: race detected during execution of test FAIL FAIL github.com/hashicorp/terraform/internal/terraform 18.291s FAIL ``` ### Steps to Reproduce Edit L[249 of internal/resources/ephemeral/ephemeral_resources.go](https://github.com/hashicorp/terraform/blame/527402d3fe2de2363c4587e7abd1a3b23669ca25/internal/resources/ephemeral/ephemeral_resources.go#L249): ```diff - r.renewDiags.Append(diags) + r.renewDiags = r.renewDiags.Append(diags) ``` Then run `go test -race ./internal/terraform` ### Additional Context _No response_ ### References Detected by accident in https://github.com/hashicorp/terraform/pull/38583 ### Generative AI / LLM assisted development? Nope
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.