Promote to stable 2.1.0 - #9
Merged
Merged
Conversation
Previous loose patterns matched common words like "major", "fix", and "feature" anywhere in commit messages, causing unintended version bumps. Now only explicit "+semver: major/minor/patch" triggers a bump. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Introduce Confirm-CWAADependencyService to ensure winmgmt (WMI) is set to Automatic startup and Running before install, repair, and service start. WMI underpins agent inventory, scripting, and check-in; when disabled, Get-CimInstance calls silently no-op. Wired into Install/Repair/Start, configurable via $Script:CWAADependencyServiceNames, respects -WhatIf. Reserves event IDs 2030-2039. Includes coverage across PrivateHelpers/Installation/ServiceOps/CrossCutting. Also fix Test-CWAAPort port-availability tests that mocked Invoke-Expression and a bare netstat function while the code called netstat.exe by full path, making the mocks inert. The tests passed only on machines with nothing on the tray port; on a box running the real agent (port 42000 in use) they returned false. Extract the external call into Get-CWAANetstat as a mockable seam and update the three affected tests to mock it. Reconcile CHANGELOG: the released 2.0.0 was mislabeled [1.0.0]; rename it and add the WMI feature under [Unreleased]. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The CrossCutting pipeline test mocked schtasks with a bare 'return $null', which does not set $LASTEXITCODE. Register-CWAAHealthCheckTask checks $LASTEXITCODE after the native /CREATE call, so the test inherited whatever exit code a prior native command left behind. It passed locally and on lucky CI runs but failed when the ambient code was non-zero (CI saw 1060). Use the same conditional mock pattern already established in the Installation tests, setting $global:LASTEXITCODE = 0 on the /CREATE branch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add WMI dependency service enforcement to agent lifecycle
Move the WMI dependency service enforcement entry from [Unreleased] into a dated [2.1.0] section so the stable release job can extract proper GitHub Release notes (it matches on "## [<version>]"). Leaves an empty [Unreleased] for the next cycle. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Finalize CHANGELOG for 2.1.0 release
christaylorcodes
temporarily deployed
to
PSGallery
June 17, 2026 22:57 — with
GitHub Actions
Inactive
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.
Promote to stable 2.1.0
Promotes
developtomain, publishing the stable 2.1.0 release to the PowerShell Gallery.2.1.0-alpha0005is complete.What ships in 2.1.0
Added
Confirm-CWAADependencyServiceensureswinmgmt(WMI) is set to Automatic startup and Running before install, repair, and service-start operations. WMI underpins agent inventory, scripting, and check-in, and the module's ownGet-CimInstancecalls fail silently when it's disabled. Configurable via$Script:CWAADependencyServiceNames; respects-WhatIf; writes events 2030–2039.Internal (not user-facing)
netstatmock ×3 via a newGet-CWAANetstatseam;schtasks$LASTEXITCODEleak). Surfaced on a machine running the real agent / on CI.[1.0.0]→[2.0.0]).+semver:prefix for major/minor bumps.Release mechanics
main).## [2.1.0]CHANGELOG section (added in Finalize CHANGELOG for 2.1.0 release #8) and creates the GitHub Release + Gallery publish.develop: Build, Smoke Test, PR Checks. Prerelease2.1.0-alpha0005is live for testing.After merge
2.1.0(stable) on the Gallery:Find-Module ConnectWiseAutomateAgentv2.1.0tag and GitHub Release are created automatically.🤖 Generated with Claude Code