Skip to content

Automate terraform/testdata update by running generate.sh after terraform-provider-coder version bump #18053

Open
@ssncferreira

Description

@ssncferreira

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions