Skip to content

feat(plugin): add native Terragrunt discovery and execution - #3571

Merged
Andriy Knysh (aknysh) merged 77 commits into
test/terraform-lifecycle-field-fixturesfrom
feat/component-plugin-contracts
Nov 21, 2026
Merged

Andriy Knysh (aknysh) merged 77 commits into
test/terraform-lifecycle-field-fixturesfrom
feat/component-plugin-contracts

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

what

Enable opt-in Terragrunt discovery through independent component discovery, validation, preparation, and state plugin contracts. Discovered local units and nested stacks enter the ordinary Atmos stack compiler and appear in list/describe output without per-unit YAML. Atmos owns native Terraform/OpenTofu execution and dependency scheduling.

Add a separately built Terragrunt plugin with a pinned, locally maintained facade. Preserve state paths while provisioning isolated workdirs. Pass the authenticated, sanitized environment and selected toolchain executable into preparation. Add environment, toolchain, workdir, dependency, and rejected-configuration tests, native CLI fixtures, cross-platform plugin CI, and updated PRDs.

why

Adopt existing Terragrunt HCL while retaining Atmos execution behavior. Configuration providers must not replace the Terraform execution provider or use process-global environments and discovery caches.

This remains an experimental, unpublished local package. Remote sources/backends, hooks, saved plans, terragrunt:// imports, state-function host dispatch, Terragrunt-aware affected comparison, typed plugin flags, and Pro/UI integration remain explicit PRD requirements. Dependency ordering is implemented; the apply fixtures do not establish affected-selection compatibility.

validation

  • Full root Go build and scoped lint pass.
  • Website production build and all 117 prebuild tests pass; the build reports existing anchor/MDX-normalization warnings outside this change.
  • Terraform short package suite: 1,074 test/subtest pass events, no failures.
  • Host config/schema, adapters, bootstrap, list/validation, and selected describe tests pass.
  • Standard Go module tidy, native plugin tests, and facade tests pass.
  • Both real CLI fixtures pass read-only discovery, native apply, four unchanged plans, dependency refresh, and reverse destroy using local terraform_data resources.
  • Tests cover sanitized and empty environments, identity forwarding/auth failures, installed tool versions, managed RC/cache handling, concurrent HCL child environments, absolute/relative workdirs, retained state, repeated provisioning, and conflicting workdir ownership.
  • Local incremental patch coverage estimate: 91.5%, excluding generated code. This is scoped test/fixture evidence; full-suite Codecov and hosted cross-platform CI remain authoritative and pending.

references

Summary by CodeRabbit

  • New Features
    • Added opt-in native Terragrunt discovery and execution, including stack and unit inventory, dependency handling, and generated configuration files.
    • Added Starlark filesystem operations for creating, managing, and removing directories.
    • Added component discovery support for stack descriptions, validation, and affected-component selection.
  • Improvements
    • Projects using component discovery can work without a conventional stacks directory or stack inventory.
    • Plugin release checks can verify whether a version is already published.
  • Documentation
    • Added setup guidance and documented limitations for native Terragrunt support.

@osterman Erik Osterman (Cloud Posse) (osterman) added the no-release Do not create a new release (wait for additional code changes) label Oct 29, 2026
@atmos-pro

atmos-pro Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

License Issues

plugins/terragrunt/go.mod

PackageVersionLicenseIssue Type
../../sdk0.0.0NullUnknown License
./bridge0.0.0-00010101000000-000000000000NullUnknown License
Allowed Licenses: MIT, MIT-0, Apache-2.0, BSD-2-Clause, BSD-2-Clause-Views, BSD-3-Clause, ISC, MPL-2.0, 0BSD, Unlicense, CC0-1.0, CC-BY-3.0, CC-BY-4.0, CC-BY-SA-3.0, Python-2.0, OFL-1.1, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-unicode, LicenseRef-scancode-google-patent-license-golang
Excluded from license check: pkg:golang/github.com/antlr4-go/antlr/v4, pkg:golang/github.com/google/cel-go, pkg:golang/golang.org/x/image, pkg:golang/modernc.org/libc, pkg:golang/github.com/opencontainers/go-digest, pkg:golang/github.com/opencontainers/image-spec, pkg:npm/pako, pkg:npm/sax, pkg:npm/minimatch, pkg:npm/%40isaacs/nonrecursive-glob-match

Scanned Files

  • .github/workflows/plugin-sdk.yml
  • go.mod
  • plugins/terragrunt/bridge/go.mod
  • plugins/terragrunt/go.mod
  • sdk/go.mod

@github-actions github-actions Bot added the size/xl Extra large size PR label Oct 29, 2026
@mergify

mergify Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify Bot added the needs-cloudposse Needs Cloud Posse assistance label Oct 29, 2026
@github-actions github-actions Bot added the quality:not-ready One or more Quality Gate requirements are pending or failing label Oct 29, 2026
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Quality Gate   Quality Gate passed

Readiness

✅ Ready for review

✅ No merge conflicts

✅ Release label and milestone

✅ Verified commit signatures

✅ Fewer than 150 changed files

Reviews

✅ CodeRabbit approval (current head)

✅ Review threads resolved or dismissed

Measures

✅ All CI checks and workflows

✅ Codecov (current head)

✅ Benchmark results

View job summary

Current commit: 946e5cd21d47bb3b58da37899e6151dfeb474e5d · quality:ready

Quality Gate details
Gate Status Evidence
Ready for review Passed Marked ready for review
No merge conflicts Passed No merge conflicts with the target branch
Release label and milestone Passed minor fits next release 1.235.0 (published baseline v1.234.1)
All CI checks and workflows Passed 175 current PR CI results passed or were skipped/neutral
Codecov (current head) Passed codecov/patch: success; codecov/project: success
CodeRabbit approval (current head) Passed APPROVED
Verified commit signatures Passed 77/77 commits have GitHub-verified signatures
Review threads resolved or dismissed Passed 0 unresolved review threads (outdated threads still count)
Fewer than 150 changed files Passed 149 changed files; maximum 149
Benchmark results Passed No benchmark report processing error recorded for this head

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

CI timing summary

Latest completed GitHub Actions runs for 18af9e972f96.

  • PR wall-clock time: 2h 57m 48s
  • Aggregate runner time: 17h 21m 46s
  • Included: 20 workflows, 151 jobs (including matrix jobs)

Wall-clock time spans the earliest included workflow creation through the latest completion. Aggregate runner time adds each job's execution time, so concurrent jobs are counted separately.

Workflow Elapsed Runner time Jobs
❌ Tests 43m 27s 14h 00m 12s 113
✅ Benchmarks 32m 47s 32m 42s 1
✅ Screengrabs 25m 55s 25m 46s 2
✅ Website Preview Build 20m 41s 20m 38s 1
✅ CodeQL 12m 19s 29m 03s 6
✅ Plugin SDK 10m 22s 54m 13s 11
✅ Pre-commit 10m 04s 10m 00s 1
✅ atmos.ci 9m 09s 9m 05s 1
✅ Local action tests 8m 22s 11m 23s 4
✅ Dependency Review 3m 46s 3m 42s 1
✅ TruffleHog secret scan 1m 00s 56s 1
✅ Validate Codeowners 43s 40s 1
✅ Verify SHA Pinning 40s 37s 1
✅ Release Documentation Check 35s 31s 1
✅ Go Version Change Detection 34s 31s 1
✅ Verify Repository Symlinks 32s 29s 1
✅ PR Size Labeler 31s 27s 1
✅ autofix.ci 30s 26s 1
✅ Link Check 24s 22s 1
✅ Quality Gate Signal 6s 3s 1
Longest jobs (top 10)
Job Workflow Duration Conclusion
benchmark Benchmarks 32m 42s ✅ success
[k3s-macos] helm Tests 26m 07s ❌ failure
build Screengrabs 25m 32s ✅ success
Acceptance Tests (windows, shard 1/10) Tests 24m 26s ✅ success
[race] non-acceptance test suite (shard 3/4) Tests 23m 17s ✅ success
[race] non-acceptance test suite (shard 2/4) Tests 22m 39s ✅ success
Acceptance Tests (windows, shard 3/10) Tests 22m 11s ✅ success
Acceptance Tests (macos, shard 1/10) Tests 21m 44s ✅ success
[race] non-acceptance test suite (shard 4/4) Tests 21m 04s ✅ success
Acceptance Tests (linux, shard 1/10) Tests 20m 38s ✅ success

Updated automatically when a PR workflow finishes.

@osterman Erik Osterman (Cloud Posse) (osterman) added minor New features that do not break anything and removed no-release Do not create a new release (wait for additional code changes) labels Oct 29, 2026
@osterman Erik Osterman (Cloud Posse) (osterman) changed the title feat(plugin): add component configuration contracts and adapters feat(plugin): add native Terragrunt discovery and execution Oct 29, 2026
@github-actions github-actions Bot added size/xxl and removed size/xl Extra large size PR labels Oct 29, 2026
@mergify

mergify Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

This PR exceeds the recommended limit of 10,000 lines.

Large PRs are difficult to review and may be rejected due to their size.

Please verify that this PR does not address multiple issues.
Consider refactoring it into smaller, more focused PRs to facilitate a smoother review process.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Warning

SHA Pin Verification Passed — with documented exceptions

All 207 third-party action reference(s) are covered, but 2 rely on a documented allowlist entry in allowlist.json and could not be automatically drift-checked. This does not fail CI, but should be reviewed.

Action Location Status Details
aquasecurity/[email protected] release-distribution.yml:210 ⚠️ Allowlisted (documented) The aquasecurity GitHub organization has enabled an IP allow list that blocks API access (git ref/tag lookups) from GitHub-hosted Actions runner IPs, for any caller, on any of their repos, including public ones — this is not specific to our token or workflow. Verified independently: the exact same 4
aquasecurity/[email protected] test.yml:1400 ⚠️ Allowlisted (documented) The aquasecurity GitHub organization has enabled an IP allow list that blocks API access (git ref/tag lookups) from GitHub-hosted Actions runner IPs, for any caller, on any of their repos, including public ones — this is not specific to our token or workflow. Verified independently: the exact same 4

See the action run for full details.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor
Action performed

Comments resolved and changes approved.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

Erik Osterman (Cloud Posse) (@osterman) The earlier reply reported an approval, but I have not verified the current approval status.

Would you like me to request approval for the latest revision?

You are interacting with an AI system.

@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) approve the latest commit

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Erik Osterman (Cloud Posse) (@osterman) I’ll request approval for the latest revision. The approval workflow will check eligibility and review readiness.

Action performed

Changes approved. Review threads were not changed.

@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) full review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@osterman have exceeded the limit for the number of chat messages per hour. Please wait 35 minutes and 13 seconds before sending another message.

@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) full review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@osterman have exceeded the limit for the number of chat messages per hour. Please wait 43 minutes and 36 seconds before sending another message.

…odule

Move fs.mkdir, fs.mkdtemp and fs.remove next to the module that registers
them. The code is unchanged. The pull request now changes 149 files, which
the quality gate and CodeRabbit both require.

Co-Authored-By: Claude <[email protected]>

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 19, 2026
@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@osterman

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) approve

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor
Action performed

Comments resolved and changes approved.

@aknysh

Copy link
Copy Markdown
Member

CodeRabbit (@coderabbitai) review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

No files to review.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@atmos-pro

atmos-pro Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@atmos-pro

atmos-pro Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@github-actions

Copy link
Copy Markdown

These changes were released in v1.235.0-nightly.44967635975.

This branch was successfully deployed

1 active and 2 inactive (1 outdated) deployments
preview — 946e5cd2 Deployed Nov 21, 2026 by github-actions[bot]
screengrabs — 946e5cd2 Deployed Nov 21, 2026 by aknysh via build #4855
release-notes — 3311bb74 Deployed Nov 9, 2026 by coderabbitai[bot] via previews #4128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New features that do not break anything quality:ready All Quality Gate requirements pass for the current PR head size/xxl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants