Repository navigation
feat(terraform): migrate legacy utility module calls - #254
Jared Holgate (jaredfholgate) merged 7 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Workflow test results 1 files ±0 32 suites ±0 3s ⏱️ -2s Results for commit cec0fe9. ± Comparison against base commit 84d681e. This pull request removes 1 and adds 2 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Repository test results 8 files ±0 376 suites ±0 8m 51s ⏱️ -43s Results for commit cec0fe9. ± Comparison against base commit 84d681e. This pull request removes 62 and adds 59 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Authoring test results 31 files + 12 2 541 suites +243 1h 32m 0s ⏱️ + 31m 23s Results for commit cec0fe9. ± Comparison against base commit 84d681e. This pull request removes 330 and adds 493 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Package qualification results 3 files 15 suites 2m 38s ⏱️ Results for commit cec0fe9. ♻️ This comment has been updated with latest results. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Require source-proven provider mocks, including the built-in provider, before acceptance and native test execution. Preserve the real public initialization and test paths. Replace provisioner timing with bounded compositional native clock proof and exact update-action, source-hash and output assertions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Summary
Add a fixed, one-off authored utility-module migration before telemetry updates. Upgrade older exact Regions pins to
0.13.0and Interfaces pins to0.9.0; equal/newer pins remain unchanged. Match registry sources rather than block labels, and do not rewrite downloaded dependencies or unrelated custom modules.Convert
Azure/naming/azurermtoAzure/avm-utl-naming/azure0.2.0in modern mode. Omitlegacy_modewhen absent, or set an existing old-source flag to false. Existing AVM naming calls keep their owner-selected versions and modes. Preserve labels and compatible inputs; the utility's supported named output aliases remain valid, so caller output references do not require rewriting. Generated names and random seeds may change: review plans for resource replacements. This is not a name/state-continuity guarantee or an automatic latest-release updater.Migration and telemetry safeguards
removedblocks withdestroy = false.0.4.1; preserve checksum and package controls.Test structure and mock boundary
Replace repeated fixture-native matrices with Unit/Component decision and filesystem coverage. Public Terraform acceptance now has 2 AzAPI cases and 1 AzureRM case, rather than 318/326 selected cases per fixture. Native compatibility runs once per OS, and 5 package/download/bootstrap cases run separately.
The initial retained Native set was 35; two approved deterministic-generation/owner-preservation regressions and one built-in mock capability case bring the final total to 38, not another exhaustive decision table.
Acceptance and qualification explicitly mock Terraform's built-in provider as well as every other required provider. Source/default-mock/complete-run-map proof runs immediately before the real test process, per selected target; provider-free setup targets do not receive unrelated bindings. Public initialization and test execution remain real. Runtime credentials are cleared and HTTP proxies/ModTM endpoints are loopback-only. Network isolation does not permit real-provider applies.
The repeat-update case is bounded compositional proof, not unmodified end-to-end or ALZ runtime qualification: guard the generated
plantimestamp()expression and file hashes; obtain two ordered timestamps from provider-free native plans; override only that clock dependency; preserve the original name-stability/apply-ID assertions; require exact nativeupdateactions andno-opfor other managed resources. No provisioner/local-exec or real-provider apply is used.Validation for
cec0fe928bdd1943be7ff9705d2e1123bcbd5f34./build.ps1 pre-commit: passed, 20m27s; Component 2,151 passed with two existing skips../build.ps1 qualification -QualificationGroup Native: 38 passed, zero failed/skipped, 6m49s locally.pr-checkwas not reported as passed locally: OIDC credentials were unavailable. Exact-head Authoring CI, including mandatory Ubuntu coverage, Package qualification, Repos CI, and Workflow CI subsequently completed successfully.No deployments, real-provider applies, telemetry-collector calls, releases, or changes to user-owned module checkouts were performed for this correction. The pull request remains subject to normal review and explicit merge/release authorization.