Repository navigation
Status update - #2080
Open
alerickson wants to merge 3 commits into
Open
Status update#2080alerickson wants to merge 3 commits into
alerickson wants to merge 3 commits into
Conversation
…dlet errors and a scheduled health check that triggers an agentic workflow to file a service-status issue
…ve the manual Test-PSGalleryOutage.ps1 script under test/FindPSResourceTests
alerickson
requested review from
Sydney Smith (SydneyhSmith),
Aditya Patwardhan (adityapatwardhan),
Anam Navied (anamnavi) and
shammu1
as code owners
November 4, 2026 23:59
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The default test module path is incorrect, and outage reporting can be prevented by insufficient retry timeouts, improperly quoted probe URLs, and curl transport failures that skip dispatch.
5 open issues
Allow enough time for probes and reporter dispatch · New Prevent curl transport errors from skipping outage dispatch · New Allow enough time for verification and outage reporting · New Escape quotes in probe URLs before building the Bash command · New Fix the default module path to resolve inside the repository · New
What changed in this PR
This PR improves PowerShell Gallery outage diagnostics in PSResourceGet and adds automated monitoring to report persistent service failures.
Changes:
- Add a Gallery status-page hint to relevant V2 request errors and suppress follow-on errors after failed searches.
- Add scheduled endpoint checks and an outage reporter that re-verifies failures before creating or updating a service-status issue.
- Add a manual local outage simulation script.
| File | Description |
|---|---|
test/Test-PSGalleryOutage.ps1 |
Simulates Gallery failures with a local HTTP server. |
src/code/V2ServerAPICalls.cs |
Preserves request error details and avoids parsing failed responses. |
src/code/Utils.cs |
Adds Gallery-specific status-page guidance. |
src/code/FindHelper.cs |
Skips further response processing after request errors. |
.github/workflows/psgallery-outage-reporter.md |
Defines outage verification and issue-reporting behavior. |
.github/workflows/psgallery-outage-reporter.lock.yml |
Provides the generated executable reporter workflow. |
.github/workflows/psgallery-health-check.yml |
Schedules endpoint probes and dispatches confirmed failures. |
.github/aw/actions-lock.json |
Pins the agentic workflow setup action. |
.gitattributes |
Marks workflow lock files as generated. |
Review effort: Balanced
| jobs: | ||
| probe: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 |
|
|
||
| $json = if ($failures.Count) { ConvertTo-Json -InputObject $failures -Compress -Depth 3 } else { '[]' } | ||
| "failed=$([bool]$failures.Count)".ToLower() >> $env:GITHUB_OUTPUT | ||
| "results=$json" >> $env:GITHUB_OUTPUT |
|
|
||
| engine: copilot | ||
|
|
||
| timeout-minutes: 15 |
Comment on lines
+66
to
+67
| 1. **Re-verify.** For every failing probe, request its `uri` again with | ||
| `curl --silent --location --output /dev/null --max-time 60 --write-out '%{http_code}' '<uri>'`, |
| [int] $StatusCode = 503, | ||
| [int] $Port = 8080, | ||
| [string] $FakeHost = 'test.powershellgallery.com', | ||
| [string] $ModulePath = (Join-Path $PSScriptRoot '..\..\out\Microsoft.PowerShell.PSResourceGet\Microsoft.PowerShell.PSResourceGet.psd1'), |
This branch has not been deployed
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.

PR Summary
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.