Skip to content

CI: retry transient Install-Module failures, bump checkout to v7 - #19

Merged
dmann000 merged 1 commit into
dmann000:mainfrom
juemerson-at-purestorage:ci/retry-dependency-install
Jul 21, 2026
Merged

dmann000 merged 1 commit into
dmann000:mainfrom
juemerson-at-purestorage:ci/retry-dependency-install

Conversation

@juemerson-at-purestorage

@juemerson-at-purestorage juemerson-at-purestorage commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Wraps Install-Module calls for Pester/Posh-SSH in both cross-platform-tests.yml jobs with a small retry helper (3 attempts, 15s back-off). Fixes a transient Install-Package: No match was found for the specified search criteria and module name Pester failure seen on the windows-latest, pwsh job, where the identical call succeeded on ubuntu/macOS in the same run -- a manual re-run then passed. Uses -ErrorAction Stop since PSGallery resolution failures are non-terminating by default and would otherwise never trip the catch.
  • Bumps actions/checkout v4 -> v7 in this file (both jobs) to clear the Node.js 20 deprecation warning. Scoped to cross-platform-tests.yml only -- update-api-capability-map.yml is untouched.

Test plan

  • Verified both retry-wrapped run: blocks parse cleanly under both pwsh and Windows PowerShell 5.1 ([System.Management.Automation.Language.Parser]::ParseFile), without invoking Install-Module.
  • Confirm all 4 CI jobs pass on this PR (retry path is a no-op on a healthy runner) and the Node 20 annotation is gone.

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.
@dmann000
dmann000 merged commit 8755994 into dmann000:main Jul 21, 2026
4 checks passed
@juemerson-at-purestorage
juemerson-at-purestorage deleted the ci/retry-dependency-install branch August 9, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants