Skip to content

Conversation

@arybolovlev
Copy link
Collaborator

Description

Remove the env variable TF_ACC_TERRAFORM_VERSION from the acceptance test GHA to ensure the testing framework won't install anything and will use the binary installed in the previous steps.

This should help avoiding the following issue: failed to create new working directory: unable to disable terraform-exec provider verification: fork/exec /tmp/plugintest-terraform1868655341/terraform: text file busy

Acceptance tests

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

Output from acceptance testing:

Release Note

Release note for CHANGELOG:

NONE

References

N/A.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

@arybolovlev arybolovlev marked this pull request as ready for review August 31, 2023 12:26
@arybolovlev arybolovlev requested a review from a team as a code owner August 31, 2023 12:26
@arybolovlev arybolovlev requested a review from sheneska August 31, 2023 12:36
@arybolovlev arybolovlev merged commit 83092c8 into main Sep 1, 2023
@arybolovlev arybolovlev deleted the update-gha-kind branch September 1, 2023 08:16
korenyoni added a commit to codefresh-io/terraform-provider-codefresh that referenced this pull request Oct 3, 2023
…Versions (#124)

## What

* Concurrent provider acceptance tests against different terraform
versions
* Install Terraform beforehand, do not delegate Terraform SDK v2 to do
download and install Terraform

## Why

* There is an issue caused when parallel Terraform Provider acceptance
tests install Terraform at the same time. Explained fairly well in
hashicorp/terraform-provider-kubernetes#2256
* Better testing by using different versions of the Terraform binary (3
latest stable minor versions — their latest stable patch version
resolved by
[terraform-switcher](https://github.com/warrensbox/terraform-switcher)
aka `tfswitch`)

## Notes

* Will probably need to test against OpenTofu in the future

## Checklist

* [x] _I have read
[CONTRIBUTING.md](https://github.com/codefresh-io/terraform-provider-codefresh/blob/master/CONTRIBUTING.md)._
* [x] _I have [allowed changes to my fork to be
made](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork)._
* [x] _I have added tests, assuming new tests are warranted_.
* [x] _I understand that the `/test` comment will be ignored by the CI
trigger [unless it is made by a repo admin or
collaborator](https://codefresh.io/docs/docs/pipelines/triggers/git-triggers/#support-for-building-pull-requests-from-forks)._
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants