Skip to content

Add -NoCheckout switch to PRTest.ps1 - #205

Closed
Trenly wants to merge 1 commit into
masterfrom
copilot/prtest-no-checkout-artifact
Closed

Trenly wants to merge 1 commit into
masterfrom
copilot/prtest-no-checkout-artifact

Conversation

@Trenly

@Trenly Trenly commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a -NoCheckout switch to Tools\PRTest.ps1. Instead of checking out the pull request locally, it retrieves the pull request's WinGet Validator 10. Validation Completed check run, downloads the associated validation artifact, extracts the singleton merged manifest YAML, stages it in a PR-numbered folder under $env:TEMP\WinGet-PRTest, and runs SandboxTest.ps1 against it (implying -SkipManifestValidation).

Existing checkout-mode behavior is unchanged.

Changes

  • Tools\PRTest.ps1:
    • New -NoCheckout switch
    • Resolves the PR head SHA and the app-scoped 10. Validation Completed check run
    • Parses ArtifactDownloadUrl from the check output, downloads and extracts the artifact, stages the single YAML manifest into $env:TEMP\WinGet-PRTest\<PullRequest>
    • Documented exit codes for missing dependency, checkout failure, missing validation check, missing artifact URL, and missing YAML manifest

Validation performed

Note

No related open/closed issue was found in microsoft/winget-pkgs, and issue creation requires explicit confirmation per repository conventions that was not available during this session. This PR does not yet link to an issue — please link one or confirm creating a new feature_request.yml issue before merge.

Generated with assistance from GitHub Copilot.

Checklist

Add a -NoCheckout switch to Tools\PRTest.ps1 that fetches the PR's
validated merged manifest from the WinGet Validator artifact instead of
checking out the pull request locally.

* Resolve the PR head SHA and locate the app-scoped
  10. Validation Completed check run
* Parse the artifact download URL from the check output and download,
  extract, and stage the singleton YAML manifest into a folder named
  for the PR number under $env:TEMP\WinGet-PRTest
* Run SandboxTest.ps1 against the staged manifest with
  -SkipManifestValidation implied
* Preserve existing checkout-mode behavior
* Document exit codes for missing dependencies, checkout failure,
  missing validation check, missing artifact URL, and missing YAML
@Trenly

Trenly commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

Closing to re-target this change as a draft PR against upstream microsoft/winget-pkgs.

@Trenly Trenly closed this Sep 24, 2026
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.

1 participant