feat: add failure diagnostics collection for Github Actions#664
Draft
svasista-ms wants to merge 1 commit into
Draft
feat: add failure diagnostics collection for Github Actions#664svasista-ms wants to merge 1 commit into
svasista-ms wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a reusable composite GitHub Action to collect network and service diagnostics when WinGet or PowerShell Gallery operations fail, and wires it into existing WinGet installation actions to automatically emit that context on CI failures.
Changes:
- Add a new composite action (
winget-failure-diagnostics) that prints runner environment, egress IP, network config, service probes, and recent WinGet logs. - Invoke the diagnostics action on failure from the existing
install-winget(PSGallery scope) andinstall-winget-package(WinGet scope) composite actions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/actions/winget-failure-diagnostics/action.yaml | New composite action to gather WinGet/PSGallery failure diagnostics. |
| .github/actions/install-winget/action.yaml | Runs diagnostics action on failure for PSGallery-related install failures. |
| .github/actions/install-winget-package/action.yaml | Runs diagnostics action on failure for WinGet package install failures. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| Write-Host "--- $Label : $Method $Url ---" | ||
| try { | ||
| $resp = Invoke-WebRequest -Uri $Url -Method $Method -UseBasicParsing -MaximumRedirection 0 -TimeoutSec 15 -ErrorAction Stop |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #664 +/- ##
=======================================
Coverage 79.61% 79.61%
=======================================
Files 26 26
Lines 5544 5544
Branches 5544 5544
=======================================
Hits 4414 4414
Misses 1001 1001
Partials 129 129 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
TBD