Upgrade terragrunt module tests to v0.93.10#1627
Merged
james00012 merged 1 commit intomainfrom Nov 21, 2025
Merged
Conversation
Update CircleCI configuration and terragrunt module tests to use terragrunt v0.93.10 while maintaining backward compatibility with v0.80.4 for other modules. ## Changes ### CircleCI Configuration - Add `TERRAGRUNT_TEST_VERSION` env var (v0.93.10) for terragrunt module tests - Create `install_terragrunt_latest` anchor for manual terragrunt installation - Separate test jobs into 4 distinct jobs: - `terraform_test`: All modules except terragrunt, using terraform - `terraform_test_tofu`: All modules except terragrunt, using tofu - `terragrunt_test`: Terragrunt module only, using terraform + v0.93.10 - `terragrunt_test_tofu`: Terragrunt module only, using tofu + v0.93.10 ### Terragrunt Module Updates - Update `format.go`: Change from `hclfmt` to `hcl format` (v0.93.10 syntax) - Fix test assertions to use common output patterns compatible with both Terraform and OpenTofu (e.g., "successfully initialized" instead of exact "Terraform has been successfully initialized!") - Add auto-detection in `TestEnvVarsPropagation` to handle both terraform and tofu binaries - Improve `format_test.go` to verify actual formatting behavior, not just command execution - Remove duplicate tests in `stack_generate_test.go` ## Testing All terragrunt module tests pass locally with v0.93.10 and both terraform and tofu as underlying IaC binaries. Fixes #1609
e673394 to
3ca2be6
Compare
denis256
approved these changes
Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrades the terragrunt module tests to use terragrunt v0.93.10 while keeping other modules on v0.80.4. This allows us to test the latest terragrunt features without forcing an upgrade across all tests.
Changes
CircleCI Configuration
TERRAGRUNT_TEST_VERSIONenvironment variable set to v0.93.10 for terragrunt-specific testsinstall_terragrunt_latestanchor for installing the specified terragrunt versionterraform_test: All modules except terragrunt, using terraform binaryterraform_test_tofu: All modules except terragrunt, using tofu binaryterragrunt_test: Terragrunt module only, using terraform + v0.93.10terragrunt_test_tofu: Terragrunt module only, using tofu + v0.93.10Terragrunt Module Code
hclfmttohcl format(new v0.93.10 syntax)Test Quality Improvements
Testing
All terragrunt module tests pass locally with v0.93.10 using both terraform and tofu as the underlying IaC binary.