You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a new version of terraform-provider-coder is released, the provisioner/terraform/testdata directory in the coder repository needs to be updated manually by running the generate.sh script. However, there is no enforcement or automated check to ensure this happens, especially in cases like adding optional parameters to the terraform schema, so these test data files can remain outdated for several releases (example PR: #18044)
We already have a Dependabot action that updates the terraform-provider-coder version (example) This issue proposes enhancing that workflow to:
Automatically run the generate.sh script after the terraform-provider-coder version is updated.
Run the provisioner/terraform test suite to verify the generated test data.
If any tests fail, notify the team so they can manually update the tests accordingly.
This will help keep the test data in sync with provider updates and reduce manual maintenance, improving overall test reliability.