AzLocal.UpdateManagement v0.8.83: preserve raw ARM tags on inventory PassThru + wire attempts_without_run in GH Actions monitor-updates.yml#89
Merged
Conversation
Fix-forward for v0.8.82 Item-5: the Step.08 `UpdateLastAttempt` reconciliation in `Export-AzLocalUpdateRunMonitorReport` reads `$inv.tags` to surface "Recent update attempts with no observable updateRun". v0.8.82 silently lost the raw ARM `tags` bag in `Get-AzLocalClusterInventory` (only the projected/flattened columns were retained on the PassThru objects), so the section was always empty in production. Changes: - `Get-AzLocalClusterInventory.ps1`: copy the raw `properties.tags` bag onto each PassThru row before the `$selectColumns` whitelist is applied. The whitelist still excludes `tags` from CSV/JSON exports, so on-disk artefacts are byte-identical. - `Export-AzLocalUpdateRunMonitorReport.ps1`: docstring updated from "6 step outputs" to "7 step outputs", listing the `attempts_without_run` output that Step.08 already emits via `Set-AzLocalPipelineOutput`. - `Automation-Pipeline-Examples/github-actions/monitor-updates.yml`: wire `attempts_without_run` into the workflow's `jobs.outputs:` block so downstream jobs can fan out on it. ADO equivalent already auto-publishes via `Set-AzLocalPipelineOutput`. - `Tests/AzLocal.UpdateManagement.Tests.ps1`: add 2 regression tests under "v0.8.83: Get-AzLocalClusterInventory preserves raw ARM tag bag on PassThru". - All 22 pipeline YAMLs: bump `GENERATED_AGAINST_MODULE_VERSION` pin to `'0.8.83'`. - Version constants: `ModuleVersion='0.8.83'` in psd1 + `$script:ModuleVersion='0.8.83'` in psm1. ReleaseNotes prepended (length 9936/10000). - CHANGELOG, release-history, README: standard release-doc updates. Test results: 1244 passed, 0 failed, 1 skipped (148.4s).
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.
Summary
Fix-forward for v0.8.82 Item-5. The Step.08
UpdateLastAttemptreconciliation inExport-AzLocalUpdateRunMonitorReportreads$inv.tagsto render the "Recent update attempts with no observable updateRun" section. v0.8.82 silently lost the raw ARMtagsbag inGet-AzLocalClusterInventory(only the projected/flattened columns were retained on the PassThru objects), so the section was always empty in production.Changes
Public/Get-AzLocalClusterInventory.ps1: copy the rawproperties.tagsbag onto each PassThru row before the$selectColumnswhitelist is applied. The whitelist still excludestagsfrom CSV/JSON exports, so on-disk artefacts are byte-identical.Public/Export-AzLocalUpdateRunMonitorReport.ps1: docstring updated from "6 step outputs" to "7 step outputs", listing theattempts_without_runoutput that Step.08 already emits viaSet-AzLocalPipelineOutput.Automation-Pipeline-Examples/github-actions/monitor-updates.yml: wireattempts_without_runinto the workflow'sjobs.outputs:block so downstream jobs can fan out on it. ADO equivalent already auto-publishes viaSet-AzLocalPipelineOutput.Tests/AzLocal.UpdateManagement.Tests.ps1: add 2 regression tests underv0.8.83: Get-AzLocalClusterInventory preserves raw ARM tag bag on PassThruand bump the version assertion to0.8.83.GENERATED_AGAINST_MODULE_VERSIONpin to'0.8.83'.ModuleVersion='0.8.83'in psd1 +$script:ModuleVersion='0.8.83'in psm1. ReleaseNotes prepended (length 9936 / 10000).Test results
1244 passed, 0 failed, 1 skipped (148.4s)against the full Pester suite.