Repository navigation
fix: preserve Terraform provider bindings and lint diagnostics - #257
Jared Holgate (jaredfholgate) merged 6 commits into
Conversation
Preserve proven local library providers and implicit local defaults while requiring same-provider mocks for introduced operations. Isolate dependency-provider restoration so example inputs and authored constraints remain unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Code coverage overviewLanguages: PowerShell PowerShell / code-coverage-agent
View coverage of the 2 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Repository test results 8 files ±0 376 suites ±0 9m 47s ⏱️ +5s Results for commit 309c5b9. ± Comparison against base commit 1762857. This pull request removes 53 and adds 50 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Authoring test results 31 files + 12 2 614 suites +178 1h 24m 47s ⏱️ + 30m 15s Results for commit 309c5b9. ± Comparison against base commit 1762857. This pull request removes 91 and adds 241 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Delay native dependency loading for fully mocked templates until generated module inputs exist. Retain original native proof for preserved local providers and introduced mappings, plus mandatory post-transform coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Current-head verification update (
|
Complete the preserved pending merge of main at 84d681e and integrate the qualified provider migration onto the source of landed main 1762857. The complete recorded patch reproduces tree 781b141. Reuse the exact-tree pre-commit and Native qualification evidence; non-writing layout and docs checks also pass in this worktree. Preserve authored changes and shared safety fixtures. The landed main ancestry is merged normally next. Source-only integration; publication and release remain held. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Merge actual main at 1762857 after the prerequisite landed. Resolve the normal merge against the complete, already-qualified provider-migration source without changing tree 781b141. Both local merge commits preserve the earlier feature history and authored changes. Reuse the exact-tree 3990 Unit, 2196 Component and 41 Native results; no full gate was repeated for identical source. Keep publication, SFI sign-off, consumer qualification and release held. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Report threshold-blocking lint findings immediately without duplicate terminal annotations, and preserve internal copy progress behavior. Serialize the original effective analyzer rules through public IncludeRule partitions, retaining parser diagnostics once and the whole-pass retry cap. Keep provider-binding safety and focused regression coverage intact. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Generate a real PSUseOutputTypeCorrectly informational finding instead of relying on version-dependent casing severity. Preserve all severity, parser identity, exact-once and complete finding-multiset assertions. Record safe analyzer/version context for future fixture failures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Summary
Fix the migration blocker affecting Azure/terraform-azurerm-avm-ptn-alz#357, preserving real local-library provider configuration, fixtures, assertions and the unchanged
Azure/avm-utl-interfaces/azure0.5.0dependency.IncludeRulecalls, runtime public builtin discovery and an unchanged custom-only exclusion partition. Preserve full inputs, settings, severities and discovery arguments. Keep actual parser records once byDiagnosticRecord/ParseErrorseverity, not rule name; retain every ordinary finding, including duplicates. The unchanged default eight-attempt budget covers whole passes, and failed attempts emit no partial findings.Integrated main:
1762857b0c916d96076204bf5612a769328582b3, including #254. No dependency upgrade is used as a workaround.Current-head validation
Commit:
309c5b9f7985ee147ebb571d26c3ea6f25654b1fQualified tree:
082ab63564b9fe0dfbdcf0d5e32d94575ed9ce82One complete unfiltered
./build.ps1 pre-commitpassed on that exact unchanged tree:Focused analyzer coverage: 37/37 passed. The real fixture now deliberately produces a
PSUseOutputTypeCorrectlyinformational finding instead of depending on version-varying casing severity. All original severity, parser and exact-multiset requirements remain; safe baseline diagnostics report the actual imported analyzer version and casing severity. This is a test-only portability correction, not a production rule/settings/version change. Recorded local PSScriptAnalyzer 1.25.0 public-inventory evidence preserved the original 57 effective builtins from 75 available names and the same 13 ordinary findings. That earlier 13/13 receipt contains no parser diagnostics because unchanged configured severity filters excludeParseError. A separate genuinely invalid fixture uses identical explicit parse-inclusive severity arguments in both controls: success-streamMissingEndCurlyBraceappears once in the baseline, 76 times in naive serial collection, and once after correction, with full finding-multiset equality. Tests also preserve effective custom-file controls, ordinary duplicates, whole-pass retry limits and exception behavior.Lint/terminal coverage exercises immediate annotation timing/locations, thresholds, notices, actual standalone/composed child dispatch, nonzero exits and retained distinct/non-issue failures. Earlier receipts remain separate, never stitched into current-tree qualification. Exact-head automatic CI passed: Authoring CI, package qualification, repository CI, and workflow CI. Unit, component, native compatibility, Terraform mock integration, Bicep integration and package matrix jobs succeeded on Windows, Ubuntu and macOS.
Successful hosted Windows/Ubuntu diagnostics confirm the fixture distinction: imported PSScriptAnalyzer 1.21.0 reports casing findings as Warning, versus the recorded local 1.25.0 / Information baseline. The explicit real output-type mismatch now supplies stable Information coverage without changing either runtime's versions, settings or effective checks. CI results remain separate from the complete local gate. The previous head (
e2a5a40) passed its full local gate but failed this fixture precondition in hosted unit jobs; those receipts are retained separately and are not current-head CI qualification.Limits and rollout
Native ALZ evidence proves source/configuration/fixture/assertion preservation only, not real-provider runtime equivalence. Fully mocked execution and compositional clock evidence are separate. Earlier loopback/native claims must not be treated as real-ALZ runtime or released qualification. The shared checkout and released package were not changed; no unmocked ALZ/Random/Time apply or Azure/remote-state operation was performed.
The pre-existing directory-based custom-rule discovery gap remains explicitly dormant, neither silently enabled nor claimed covered. Explicit custom-file controls separately prove preservation of rules already effective under those control arguments. Upstream PowerShell/PSScriptAnalyzer#2206 is not assumed merged or released.
Keep draft: SFI sign-off is outstanding and required before merge/release. No merge, release, force-push, workflow dispatch, weakened rule or safety/version-gate bypass was performed. After sign-off and separately authorized merge/release, publish a new Avm.Authoring version, then run released
pre-commit/pr-checkand unit qualification for consumer repairs, including Azure/terraform-azurerm-avm-ptn-alz#357. Update internal rollout/minimum-version guidance when that release version is known.