CI: retry transient Install-Module failures, bump checkout to v7 - #19
Merged
dmann000 merged 1 commit intoJul 21, 2026
Merged
Conversation
PSGallery module resolution occasionally blips on a single matrix runner (observed on windows-latest, pwsh) even when the identical Install-Module call succeeds on the other OSes in the same run. Wrap Pester/Posh-SSH installs in both cross-platform-tests.yml jobs with a small retry helper (3 attempts, 15s back-off, -ErrorAction Stop so the non-terminating PSGallery failure actually trips the catch). Also bump actions/checkout v4 -> v7 in this file to clear the Node.js 20 deprecation warning on these jobs.
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
Install-Modulecalls for Pester/Posh-SSH in bothcross-platform-tests.ymljobs with a small retry helper (3 attempts, 15s back-off). Fixes a transientInstall-Package: No match was found for the specified search criteria and module name Pesterfailure seen on thewindows-latest, pwshjob, where the identical call succeeded on ubuntu/macOS in the same run -- a manual re-run then passed. Uses-ErrorAction Stopsince PSGallery resolution failures are non-terminating by default and would otherwise never trip thecatch.actions/checkoutv4 -> v7 in this file (both jobs) to clear the Node.js 20 deprecation warning. Scoped tocross-platform-tests.ymlonly --update-api-capability-map.ymlis untouched.Test plan
run:blocks parse cleanly under bothpwshand Windows PowerShell 5.1 ([System.Management.Automation.Language.Parser]::ParseFile), without invokingInstall-Module.