Repository navigation
ci: retry the Pester installs from PSGallery - #2171
Conversation
PSGallery intermittently answers that no module named Pester matches, which fails CI for a reason that has nothing to do with the change. #2167 stopped the oracle marker check tests from installing Pester when the check is unchanged, but the PowerShell module job and the Windows service account tests still install it on every run, and the oracle marker check tests still install it when the check changes. Each Pester install now makes up to four attempts, waiting 30, 60 and 90 seconds between them, and fails with PSGallery's error once all four fail, like the Chocolatey installs (#2115). The loop is inline in each step because these jobs may check out an older commit than the workflow's own. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Lines changed, against master:
The whole change is in Note LLM-assisted content (no human feedback). |
Let maintainers know that an action is required on their side
|
There was a problem hiding this comment.
🟢 Approval recommended
The Pester installation retry changes have no active review issues blocking approval.
No open issues 🎉
What changed in this PR
This PR makes CI more resilient to intermittent PSGallery failures by retrying Pester installation in the oracle marker, PowerShell module, and Windows service account test jobs.
Changes:
- Allows up to four installation attempts, with waits of 30, 60, and 90 seconds.
- Logs failed attempts and rethrows the final installation error.
- Keeps retry logic inline so jobs can check out older commits without requiring a shared helper.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds bounded retries to all four Pester installation steps while preserving their existing versions, scopes, and shells. |
Review effort: Balanced
PSGallery intermittently answers that no module named Pester matches, which fails CI for a reason that has nothing to do with the change. #2167 stopped the oracle marker check tests from installing Pester when the check is unchanged, but the PowerShell module job and the Windows service account tests still install it on every run, and the oracle marker check tests still install it when the check changes.
Each Pester install now makes up to four attempts, waiting 30, 60 and 90 seconds between them, and fails with PSGallery's error once all four fail, like the Chocolatey installs (#2115). The loop is inline in each step because these jobs may check out an older commit than the workflow's own.
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com