Skip to content

Intermittent test failures with provider tests: ... text file busy error #429

Open
@austinvalle

Description

@austinvalle

terraform-plugin-testing version

v1.11.0

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions