pr-testing

Download and test the Aspire CLI from a PR build against its head commit.

6.2k|952|Updated Sep 25, 2023
One-click install
npx skills add https://github.com/dotnet/aspire --skill pr-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-testing
Source: https://github.com/dotnet/aspire/tree/main/.github/skills/pr-testing
Command: npx skills add https://github.com/dotnet/aspire --skill pr-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates PR-based validation for Aspire by downloading the Aspire CLI from a pull request's dogfood artifacts, verifying it matches the PR commit, and executing scenario-based tests to confirm changes are correct and non-regressive.

Core Features & Use Cases

  • PR-based CLI dogfooding: Fetch and install the Aspire CLI artifact from a PR's build and verify alignment with the PR head commit.
  • PR change analysis: Inspect changed files and categorize modifications (CLI, Hosting, Dashboard, Templates, Clients, Tests) to tailor test scenarios.
  • Scenario generation & execution: Generate targeted test scenarios for the modified areas and execute them in isolated, temp Aspire projects.
  • Validation artifacts: Produce version reports, run logs, and a consolidated test summary for PR review.

Quick Start

Use this skill to test a specific pull request by providing the PR number or URL. The agent will fetch the dogfood CLI, install it, verify the PR head commit, analyze changes, generate test scenarios, and run them in fresh Aspire projects.

Frequently Asked Questions about pr-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Aspire CLI testing from a pull request build?

Aspire CLI testing from a pull request is automated by downloading the PR's dogfood artifacts, installing the CLI, and validating it against the PR's latest commit. The skill handles PR identification, artifact retrieval, version verification, and test scenario execution.

What is PR-based dogfooding for Aspire CLI validation?

PR-based dogfooding for Aspire CLI validation is the process of fetching a CLI artifact built from a pull request, installing it, and verifying the installed version matches the PR head commit SHA to ensure changes are correct and non-regressive.

How do I generate targeted test scenarios for Aspire PR changes?

Targeted test scenarios for Aspire PR changes are generated by inspecting modified files and categorizing them by area, such as CLI, Hosting, Dashboard, Templates, Clients, or Tests. The skill then executes these scenarios in isolated, temporary Aspire projects.

Can I validate an Aspire CLI artifact against a specific PR commit SHA?

Validating an Aspire CLI artifact against a specific PR commit SHA is supported by comparing the head commit SHA with the installed version. This ensures the CLI artifact accurately reflects the latest changes pushed to the pull request.

What validation artifacts are produced when testing an Aspire PR?

Validation artifacts produced when testing an Aspire PR include version reports, execution run logs, and a consolidated test summary. These outputs are generated to facilitate the PR review process and confirm non-regressive changes.

Do I need to provide a PR URL to run Aspire CLI verification workflows?

Providing a PR URL is not strictly required; you can supply either a PR number or a URL to run Aspire CLI verification workflows. The skill parses the input to fetch dogfood instructions and initiate the testing process.