-
Notifications
You must be signed in to change notification settings - Fork 16
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
Intermittent test failures with provider tests: ... text file busy
error
#429
Comments
@SBGoods And I just had an interesting conversation about this bug and I think we have a potential lead on what's causing it, but will need to be verified deeper.
An interesting related thread on why we wouldn't have seen this issue sooner, recently GitHub actions has removed Terraform from the latest version of Ubuntu runners ( To further confirm that, the HCP provider tests don't seem to install Terraform prior to running the tests and the SDK/corner tests did not either, however we recently fixed that for an unrelated reason, so I would expect us to no longer run into this issue. To summarize, I think this issue can be avoided by explicitly installing Terraform prior to running acceptance tests: # Install latest version of Terraform
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_wrapper: false Will see if we can figure out a solution to the multiple installs across go tests, but even if we do have a solution, it's unlikely that you'd want to keep re-installing the same version of Terraform / deleting them for every test 😆 |
According to the thread at hashicorp/terraform-plugin-testing#429 the "text file busy" failure which is currently plaguing the tests is a result of each test case trying to install its temporary copy of Terraform. Pre-installing TF should fix it.
According to the thread at hashicorp/terraform-plugin-testing#429 the "text file busy" failure which is currently plaguing the tests is a result of each test case trying to install its temporary copy of Terraform. Pre-installing TF should fix it. Signed-off-by: Kamil Domański <[email protected]>
According to the thread at hashicorp/terraform-plugin-testing#429 the "text file busy" failure which is currently plaguing the tests is a result of each test case trying to install its temporary copy of Terraform. Pre-installing TF should fix it. Signed-off-by: Kamil Domański <[email protected]>
terraform-plugin-testing version
Behavior
https://github.com/hashicorp/terraform-plugin-sdk/actions/runs/13107424835/job/36564475352?pr=1420#step:7:602
When running provider tests, you may encounter an intermittent error similar to below:
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
Ensure
/Install
&Remove
methods thread-safe hc-install#35The text was updated successfully, but these errors were encountered: