Open
Description
terraform-plugin-testing version
v1.11.0
Behavior
When running provider tests, you may encounter an intermittent error similar to below:
cannot run Terraform provider tests: error calling terraform version command: fork/exec /tmp/plugintest-terraform3455380737/terraform: text file busy
The error is being raised by the testing framework, so it's possible some of Terraform environment setup may not be thread safe, possibly related to hc-install (see referenced issue).
We had a 2nd report of this internally from the HCP provider, again from the terraform version
command:
https://github.com/hashicorp/terraform-provider-hcp/actions/runs/13190402272/job/36822133356
References
- Potentially related to Make installer's
Ensure
/Install
&Remove
methods thread-safe hc-install#35