[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FKYZ44BEPJNV8VQ0X73CZR":3,"skill-same:01M6FKYZ44BEPJNV8VQ0X73CZR":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6FKYZ44BEPJNV8VQ0X73CZR","pr-testing",null,"Use when asked to test a microsoft\u002Faspire pull request, including CLI, hosting, dashboard, component, template, and VS Code extension changes. Also covers testing PRs that change CI infrastructure — GitHub Actions (workflows, actions, gh-aw agentic workflows, CI scripts under .github\u002F and eng\u002F) and Azure DevOps pipelines (eng\u002Fpipelines, eng\u002Fcommon).","microsoft\u002Faspire","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6FKTZ7ND1S9JN6JTVK7A7MD",6426,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpr-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"pr testing","pr","testing","actions","prs","changes","scripts","extension","pipelines","hosting","devops","use","common","template","github actions","ci","code","infrastructure","aspire","azure devops","agentic workflows","component","change","workflows","dashboard","agentic","github","cli","2026-11-10 10:12:30",false,"---\nname: pr-testing\ndescription: Use when asked to test a microsoft\u002Faspire pull request, including CLI, hosting, dashboard, component, template, and VS Code extension changes. Also covers testing PRs that change CI infrastructure — GitHub Actions (workflows, actions, gh-aw agentic workflows, CI scripts under .github\u002F and eng\u002F) and Azure DevOps pipelines (eng\u002Fpipelines, eng\u002Fcommon).\n---\n\nYou are a specialized PR testing agent for the microsoft\u002Faspire repository. Your primary function is to test the artifacts or source that actually contain a PR's changes, verify they match the PR's latest commit, analyze the PR changes, and run appropriate test scenarios. Most product PRs use the Aspire CLI from a PR's \"Dogfood this PR\" comment; VS Code extension PRs require testing the PR extension source or a VSIX built from that source.\n\n## Understanding User Requests\n\nParse user requests to extract:\n1. **PR identifier** - either a PR number (e.g., `12345`) or full URL (e.g., `https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345`)\n\n### Example Requests\n\n**By PR number:**\n> Test PR 12345\n\n**By URL:**\n> Test https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345\n\n**Implicit:**\n> Test this PR (when working in a branch with an open PR)\n\n## Task Execution Steps\n\n### 1. Parse and Validate the PR\n\nExtract the PR number from the user's input:\n\n```powershell\n# If URL provided, extract PR number\n$prUrl = \"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345\"\n$prNumber = ($prUrl -split '\u002F')[-1]\n\n# Verify PR exists and get details\ngh pr view $prNumber --repo microsoft\u002Faspire --json number,title,headRefOid,body,files\n```\n\n### 2. Get the \"Dogfood this PR\" Download Link\n\nFetch the PR comments and find the \"Dogfood this PR with:\" comment that contains the CLI download instructions:\n\n```powershell\n# Get PR comments to find dogfood instructions\ngh pr view $prNumber --repo microsoft\u002Faspire --json comments --jq '.comments[] | select(.body | contains(\"Dogfood this PR\")) | .body'\n```\n\nThe comment typically contains instructions like:\n```\nDogfood this PR with:\n\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- 16093\n\nOr in PowerShell:\niex \"& { $(irm https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.ps1) } 16093\"\n```\n\nIf the PR only changes `extension\u002F` and no dogfood comment is available, do not stop here. Continue by checking out the PR branch in an isolated workspace and testing the extension source or a VSIX built from that branch. Still use the dogfood CLI when the extension change must be validated against a PR CLI artifact or a specific CLI version.\n\n### 3. Choose Execution Mode and Install the CLI\n\nBefore installing the CLI, decide whether the testing should run **locally** or in the repo-local **container runner**. Use the container runner when you need an isolated CLI install or to reproduce Linux\u002Fcontainer-specific behavior. Prefer local mode when the user is likely to keep the generated app for manual follow-up on the host machine.\n\nIn either mode, use the dogfood command from the PR comment as the install step. Do not add extra installer flags unless the user explicitly asks to debug the install flow. For extension-only PRs with no dogfood CLI, skip this CLI install step and build the extension\u002FCLI from the PR branch with `extension\u002Fbuild.sh` or `extension\u002Fbuild.ps1`.\n\nThe container runner lives at:\n\n```text\n.\u002Feng\u002Fscripts\u002Faspire-pr-container\u002F\n```\n\nUse the shell that matches the host:\n\n- **macOS\u002FLinux\u002FWSL:** `run-aspire-pr-container.sh`\n- **Windows PowerShell:** `run-aspire-pr-container.ps1`\n\n#### Local mode\n\n##### macOS\u002FLinux\u002FWSL\n\nCreate a temporary working directory and use `--install-path` and `--skip-path` to keep the install isolated. **Do not** override `HOME` to isolate the install — the install script uses `gh` internally, and `gh` resolves its auth config from `HOME`. Overriding `HOME` to an empty directory makes `gh` appear unauthenticated:\n\n```bash\ntestDir=\"$(mktemp -d -t aspire-pr-test-XXXXXX)\"\n\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- \"$prNumber\" --install-path \"$testDir\" --skip-path --skip-extension\n\ncliPath=\"$testDir\u002Fbin\u002Faspire\"\nhivePath=\"$testDir\u002Fhives\u002Fpr-$prNumber\u002Fpackages\"\ncliVersion=\"$(\"$cliPath\" --version)\"\n```\n\n##### Windows PowerShell\n\nOn Windows, **do not** override `HOME`, `USERPROFILE`, or `APPDATA` to isolate the install. Doing so breaks `gh` authentication because `gh` resolves its config from `APPDATA`, and overriding it to an empty directory makes `gh` appear unauthenticated even if the user has already run `gh auth login`. Instead, use the `-InstallPath`, `-SkipPath`, and `-SkipExtension` flags to keep the install isolated without touching environment variables that other tools depend on:\n\n```powershell\n$testDir = Join-Path $env:TEMP \"aspire-pr-test-$([guid]::NewGuid().ToString('N'))\"\nNew-Item -ItemType Directory -Path $testDir -Force | Out-Null\n\niex \"& { $(irm https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.ps1) } $prNumber -InstallPath $testDir -SkipExtension -SkipPath\"\n\n$cliPath = \"$testDir\\dogfood\\pr-$prNumber\\bin\\aspire.exe\"\n$hivePath = \"$testDir\\hives\\pr-$prNumber\\packages\"\n$cliVersion = & $cliPath --version\n```\n\n#### Container mode\n\nRun from the repository root so the repo-local scripts are available. Use a fresh host temp directory as the mounted workspace. The runner only opens the isolated container; the PR install still happens by running the dogfood command inside it. Choose this mode when you want isolation or need to validate behavior inside the repo-local Linux container.\n\n```bash\ntestDir=\"$(mktemp -d -t aspire-pr-test-XXXXXX)\"\nrunner() {\n  ASPIRE_PR_WORKSPACE=\"$testDir\" ASPIRE_CONTAINER_USER=0:0 \\\n    .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.sh \"$@\"\n}\n\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nOn Windows PowerShell hosts, use the PowerShell runner instead:\n\n```powershell\n$testDir = Join-Path $env:TEMP \"aspire-pr-test-$([guid]::NewGuid().ToString('N'))\"\nNew-Item -ItemType Directory -Path $testDir -Force | Out-Null\n\nfunction runner {\n  & .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.ps1 @args\n}\n\n$env:ASPIRE_PR_WORKSPACE = $testDir\n$env:ASPIRE_CONTAINER_USER = \"0:0\"\n\nrunner bash -lc \"curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- $prNumber\"\n```\n\nFor follow-up commands in the same mounted workspace, run:\n\n```bash\nrunner bash -lc '\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire --version'\n```\n\nBecause the container `HOME` is `\u002Fworkspace`, the standard dogfood install still lands under `\u002Fworkspace\u002F.aspire`. The repo-local runner now backs `\u002Fworkspace\u002F.aspire` with a deterministic Docker-managed volume instead of the host bind mount, so follow-up commands can keep using `\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire` and `\u002Fworkspace\u002F.aspire\u002Fhives\u002Fpr-\u003CPR_NUMBER>\u002Fpackages` without putting the AppHost RPC socket on the Docker Desktop workspace filesystem.\n\nTo record the full host-side container session with asciinema, enable recording before invoking the runner. Recording is handled by the host-side runner script (not inside the container), so `asciinema` must be installed on the host.\n\nmacOS\u002FLinux\u002FWSL example:\n\n```bash\nexport ASPIRE_PR_RECORD=1\nexport ASPIRE_PR_RECORDING_PATH=\"$testDir\u002Fpr-test.cast\"   # optional\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nWindows PowerShell example:\n\n```powershell\n$env:ASPIRE_PR_RECORD = \"1\"\n$env:ASPIRE_PR_RECORDING_PATH = Join-Path $testDir \"pr-test.cast\"   # optional\nrunner bash -lc \"curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- $prNumber\"\n```\n\n#### Important template note\n\nWhen creating new projects from the PR build:\n\n- Prefer the downloaded PR hive explicitly instead of relying on channel resolution alone.\n- In non-interactive runs, pass both `--name` and `--output`.\n- For `aspire-starter`, also pass `--test-framework None --use-redis-cache false` unless the scenario explicitly needs those prompts.\n- Always pass `--localhost-tld false` to suppress the `Use *.dev.localhost URLs [y\u002FN]:` prompt that causes `Failed to read input in non-interactive mode` errors.\n- Always pass `--suppress-agent-init` to suppress the post-create `Would you like to configure AI agent environments for this project?` prompt.\n- The `--output` directory must not already exist. `aspire new` refuses to write into a non-empty directory. If a previous attempt failed and left a partial directory behind, remove it before retrying (`Remove-Item -Recurse -Force` \u002F `rm -rf`).\n- In TTY-attached runs where `--suppress-agent-init` is not passed, `aspire new` may ask `Would you like to configure AI agent environments for this project?`; answer explicitly (usually `n`) unless agent-init is part of the scenario.\n- Run `aspire new \u003Ctemplate> --help` to discover all available flags for a template when you encounter unexpected prompts. New flags may be added between releases.\n\nExample starter-app automation (bash):\n\n```bash\nprojectName=\"PrSmoke\"\nappRoot=\"$testDir\u002F$projectName\"\n\n\"$cliPath\" new aspire-starter \\\n  --name \"$projectName\" \\\n  --output \"$appRoot\" \\\n  --source \"$hivePath\" \\\n  --version \"$cliVersion\" \\\n  --test-framework None \\\n  --use-redis-cache false \\\n  --localhost-tld false \\\n  --suppress-agent-init\n```\n\nExample starter-app automation (PowerShell):\n\n```powershell\n$projectName = \"PrSmoke\"\n$appRoot = \"$testDir\\$projectName\"\n\n& $cliPath new aspire-starter `\n  --name $projectName `\n  --output $appRoot `\n  --source $hivePath `\n  --version $cliVersion `\n  --test-framework None `\n  --use-redis-cache false `\n  --localhost-tld false `\n  --suppress-agent-init\n```\n\n### 4. Verify CLI Version Matches PR Commit\n\nGet the PR's head commit SHA and verify the installed CLI matches:\n\n```bash\n# Get PR head commit SHA\nexpectedCommit=\"$(gh pr view \"$prNumber\" --repo microsoft\u002Faspire --json headRefOid --jq .headRefOid)\"\n\n# Local mode: use the installed binary directly\n\"$cliPath\" --version\n\n# Container mode: use the installed binary in the mounted workspace\nrunner bash -lc '\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire --version'\n```\n\n**Important:** The installed binary path must be used for version checks (not bare `aspire`, which may resolve to some other install). The reported version should contain the PR head commit; matching the short SHA is sufficient.\n\n### 5. Analyze PR Changes\n\nExamine the PR diff to understand what was changed:\n\n```powershell\n# Get changed files\ngh pr view $prNumber --repo microsoft\u002Faspire --json files --jq '.files[].path'\n\n# Get the PR diff\ngh pr diff $prNumber --repo microsoft\u002Faspire\n```\n\nCategorize the changes:\n- **CLI changes**: Files in `src\u002FAspire.Cli\u002F`\n- **Hosting changes**: Files in `src\u002FAspire.Hosting*\u002F`\n- **Dashboard changes**: Files in `src\u002FAspire.Dashboard\u002F`\n- **Client\u002FComponent changes**: Files in `src\u002FComponents\u002F`\n- **Template changes**: Files in `src\u002FAspire.ProjectTemplates\u002F`\n- **VS Code extension changes**: Files in `extension\u002F`\n- **Test changes**: Files in `tests\u002F`\n- **CI infrastructure changes**: GitHub Actions — files in `.github\u002Fworkflows\u002F`, `.github\u002Factions\u002F`, `.github\u002Faw\u002F`, `.github\u002Fagents\u002F`, or CI scripts under `eng\u002Fscripts\u002F`, `eng\u002Fgithub-ci\u002Fci-skip-entirely-patterns.txt`, `eng\u002Ftest-retry-patterns.json`; **and** Azure DevOps — `eng\u002Fpipelines\u002F`, `eng\u002Fcommon\u002F`, and the signing\u002Fpackaging\u002Fpublishing plumbing those pipelines call. More broadly, anything that changes *how CI selects, builds, or runs* (e.g. `tools\u002F**` invoked by CI, MSBuild test plumbing in `eng\u002F**\u002F*.props`\u002F`*.targets`, or CI config\u002Fdata JSON), even when no `.github\u002F` or `eng\u002Fpipelines\u002F` file is touched. (Skill\u002Fdoc-only edits under `.agents\u002Fskills\u002F**` or `docs\u002F**` are **not** tested by this skill — there is nothing to run for them.)\n\n> **If the PR touches CI infrastructure, follow the `ci-infra-testing.md` reference in this skill directory for that part.** Those changes are *not* validated by the CLI dogfood \u002F template scenarios below. The reference has two tracks: **GitHub Actions** (most workflows don't run on the PR; unit tests don't catch trigger \u002F permission \u002F fork \u002F portability \u002F lock-drift gotchas) and **Azure DevOps** (no AzDO pipeline runs on a GitHub PR — a non-trivial change must be run on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill). For an **infra-only** PR, skip the CLI install and template scenarios in Steps 3–9 entirely and use `ci-infra-testing.md` instead. For a mixed PR, do both.\n\n### 6. Generate Test Scenarios\n\nBased on the PR changes, generate appropriate test scenarios. Always use new projects in the temp folder. Cover the expected happy path plus targeted unhappy-path, negative, and boundary cases that validate plausible misuse, invalid inputs, and failure states introduced or affected by the PR.\n\n#### Scenario Categories\n\n**For CLI changes (`src\u002FAspire.Cli\u002F`):**\n- Test the specific command(s) that were modified\n- Run `aspire new` to verify basic functionality\n- Run `aspire run` to verify orchestration works\n- Test any new commands or options added\n\n**For Hosting integration changes (`src\u002FAspire.Hosting.*\u002F`):**\n- Create a new Aspire project\n- Add the modified resource type to the AppHost\n- Run the application and verify the resource starts correctly\n- Check the Dashboard shows the resource properly\n\n**For Dashboard changes (`src\u002FAspire.Dashboard\u002F`):**\n- Create and run an Aspire application\n- Navigate to the Dashboard\n- Take screenshots of relevant views\n- Verify the modified UI\u002Ffunctionality works\n\n**For Template changes (`src\u002FAspire.ProjectTemplates\u002F`):**\n- Test creating projects from each modified template\n- Verify the generated project structure\n- Run the generated project\n\n**For Client\u002FComponent changes (`src\u002FComponents\u002F`):**\n- Create a project that uses the modified component\n- Add the corresponding hosting resource\n- Test the client can connect to the resource\n\n**For CI infrastructure changes (`.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, CI scripts under `eng\u002F`):**\n- Follow `ci-infra-testing.md` in this skill directory. It splits into a **GitHub Actions** track and an **Azure DevOps** track. In brief — GitHub: enumerate every workflow the diff affects (changed `.yml`, every workflow that consumes a changed script\u002Faction\u002Freusable-workflow\u002Fdata file, *and* every consumer of an artifact a changed job produces), trace the producer→consumer graph (`needs:`, `outputs`, `upload`\u002F`download-artifact`, `workflow_run`), determine which actually run on this PR, run the matching `Infrastructure.Tests` classes, recompile any gh-aw `.lock.yml` and confirm no diff, manually dispatch the affected workflows that don't run on the PR (prefer a `dry_run` input or your fork), validate each run's *results* (job logs, binlog, downloaded artifacts) rather than just that it went green, and confirm no *fewer* tests\u002Fjobs run than baseline when enumeration\u002Fmatrix\u002Fjob structure changes. AzDO: no pipeline runs on the PR — for a non-trivial change, select the consuming pipeline on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill (1602 for official builds, 1693 for source indexing), check stage `dependsOn` + published\u002Fconsumed artifacts (including the cross-pipeline release consumer), and validate the change took effect from the timeline + downloaded artifacts. Record main-only indexing skips as unvalidated. Scan the failure-mode tables for the gotchas the unit tests can't catch.\n\n**For VS Code extension changes (`extension\u002F`):**\n- Test the PR extension source or a VSIX built from the PR branch. The dogfood CLI installer only validates the PR CLI; it does not install the PR's VS Code extension changes.\n- Use a short checkout path for extension test workspaces (for example `\u002Ftmp\u002Faspire-pr-\u003Cnumber>` on macOS\u002FLinux). VS Code's IPC socket path can exceed platform limits in deeply nested worktrees, causing `listen EINVAL` before tests run.\n- From `extension\u002F`, run `.\u002Fbuild.sh` (Linux\u002FmacOS) or `.\u002Fbuild.ps1` (Windows) before extension tests when the PR may depend on current CLI behavior. The script installs the pinned Corepack\u002FYarn toolchain, runs `corepack yarn install --frozen-lockfile --non-interactive`, compiles the extension, and builds `src\u002FAspire.Cli`.\n- Run `corepack yarn run test` for extension compile, lint, and VS Code unit tests. For dependency-only changes to `extension\u002Fpackage.json` or `extension\u002Fyarn.lock`, also verify `corepack yarn install --frozen-lockfile --non-interactive` and inspect that `yarn.lock` uses the approved internal npm feed.\n- For user-visible commands, views, debugger behavior, AppHost discovery, DCP\u002FRPC\u002FMCP behavior, or CLI integration, run or add focused E2E coverage with the repo's `vscode-extension-tester` harness via `corepack yarn run test:e2e`. Use `ASPIRE_EXTENSION_E2E_SPEC='out\u002Ftest-e2e\u002Ftest-e2e\u002F\u003Cspec>.e2e.test.js'` (or a narrower glob under `out\u002Ftest-e2e\u002F**`) to keep the run focused when the changed surface has an existing E2E spec.\n- If no matching E2E exists for a user-visible behavior, create a temporary focused E2E spec in the PR checkout and run it against the PR VSIX\u002Fsource. Keep the temporary spec out of the final PR-testing skill changes, but use it to capture evidence from a real Extension Host run: Extension Development Host\u002FVSIX version, command invoked, workspace\u002FAppHost state, `.test-results\u002Fe2e\u002F\u003Cshard>\u002Fextension-state.json`, VS Code logs, screenshots\u002Frecordings when helpful, and failure diagnostics.\n- Use Playwright or manual VS Code exploration only to understand a scenario that the E2E harness does not yet cover. If that exploration is needed, convert the repro into `test:e2e` or capture equivalent Extension Host evidence before concluding the PR works.\n- When testing compatibility with a separately installed or dogfood CLI, set `ASPIRE_EXTENSION_E2E_CLI_PATH` to that exact `aspire` binary. If the extension is expected to work with older published CLIs, also run a compatibility scenario against that CLI; set `ASPIRE_EXTENSION_E2E_SKIP_CURRENT_CLI_REGRESSIONS=true` only for tests that intentionally cover bugs fixed by the current repo-built CLI.\n\n#### Unhappy-Path Coverage\n\nFor every changed user-facing behavior, include 1-3 high-value unhappy-path, negative, or boundary test cases after the happy-path scenario. Do not add generic torture tests that are unrelated to the diff, and do not include every example below by default. Each case should have an expected outcome, such as a clear validation error, a safe failed state, a non-zero exit code, or a recoverable dashboard\u002Fresource state.\n\nUse these examples as a starting point and adapt them to the actual PR:\n\n| Change area | Unhappy-path cases to consider |\n|-------------|-------------------------------|\n| CLI commands\u002Foptions | Missing required arguments, invalid option combinations, non-existent `--apphost` paths, output directories that already exist, non-interactive execution that would otherwise prompt |\n| Hosting integrations | Invalid or missing configuration, duplicate resource names\u002Fendpoints, unavailable backing service, unhealthy resource startup, invalid connection string or credential shape |\n| Dashboard UI | Empty data sets, failed\u002Funhealthy\u002Funknown resource states, long resource names, large resource counts, malformed telemetry\u002Flog data from a resource |\n| Templates | Invalid project names, non-empty output directories, unsupported template option values, disabled optional services, non-interactive creation with all prompt-suppressing flags |\n| Client\u002Fcomponents | Missing configuration, connection refusal, auth failure, unavailable resource, malformed endpoint metadata |\n| VS Code extension | No workspace folder, no AppHost discovered, multiple AppHosts, missing\u002Fold CLI, stopped AppHost, command invoked from tree item vs command palette, closed dashboard URL, failed RPC\u002FDCP session, malformed launch profile, localized command title\u002Fstring coverage |\n\nPrefer cases that reproduce how a real user could break or misuse the changed feature. If no meaningful unhappy-path case applies to a changed behavior, say so in the plan instead of adding noisy filler. Avoid destructive external side effects, credential exposure, or tests that require private infrastructure unless the PR specifically changes that behavior and the user confirms it.\n\n### 7. Present Scenarios and Get User Input\n\n**Before executing any test scenarios**, present a summary of the proposed scenarios to the user and ask for confirmation. Use whatever interactive prompt mechanism is available in the current agent framework (e.g., a question\u002Fform tool, a chat message asking for confirmation, etc.).\n\n**Summary format:**\n\n```markdown\n## Proposed Test Scenarios for PR #XXXXX\n\nBased on analyzing the PR changes, I've identified the following test scenarios:\n\n### Detected Changes\n- **CLI changes**: [Yes\u002FNo] - [brief description if yes]\n- **Hosting changes**: [Yes\u002FNo] - [brief description if yes]\n- **Dashboard changes**: [Yes\u002FNo] - [brief description if yes]\n- **Template changes**: [Yes\u002FNo] - [brief description if yes]\n- **Client\u002FComponent changes**: [Yes\u002FNo] - [brief description if yes]\n- **VS Code extension changes**: [Yes\u002FNo] - [brief description if yes]\n- **Test changes**: [Yes\u002FNo] - [brief description if yes]\n\n### Proposed Scenarios\n1. **[Scenario Name]** - [Brief description of what will be tested]\n2. **[Scenario Name]** - [Brief description of what will be tested]\n3. ...\n\n### Unhappy-Path Coverage\n- **[Unhappy-Path Case Name]** - [Invalid input\u002Fstate being tested and expected safe failure or recovery behavior]\n```\n\n**Then ask the user to confirm the plan and choose an execution target.** Collect the following:\n- Whether to proceed, add more scenarios, skip some, or cancel testing\n- Whether to run in the repo container runner or locally in a temp directory\n- Any additional scenarios to include or scenarios to skip\n\nDefault execution target based on the goal: choose **Run locally in a temp directory** when the user is likely to continue working with the generated app on the host, and choose **Run in the repo container runner** when isolation or Linux\u002Fcontainer reproduction is the priority. If the user doesn't specify, use the same heuristic.\n\n**Handle user responses:**\n- **Proceed**: Continue to step 8 using the selected execution target\n- **Add more**: Ask user to describe additional scenarios, add them to the list, then proceed\n- **Skip some**: Ask which scenarios to skip, remove them, then proceed\n- **Cancel**: Stop testing and report cancellation\n\nThis step ensures the user can:\n1. Verify the analysis is correct\n2. Add domain-specific scenarios the agent might have missed\n3. Skip scenarios that aren't relevant\n4. Provide context about specific features to focus on\n\n### 8. Execute Test Scenarios\n\nFor each scenario, follow this pattern based on the chosen execution target.\n\n#### Local execution\n\n```bash\nscenarioDir=\"$testDir\u002Fscenario-$(date +%s%N)\"\nprojectName=\"ScenarioApp\"\nappRoot=\"$scenarioDir\u002F$projectName\"\nappHost=\"$appRoot\u002F$projectName.AppHost\u002F$projectName.AppHost.csproj\"\n\nmkdir -p \"$scenarioDir\"\n\n\"$cliPath\" new aspire-empty --name \"$projectName\" --output \"$appRoot\" --source \"$hivePath\" --version \"$cliVersion\" ...\n\"$cliPath\" start --apphost \"$appHost\" ...\n\"$cliPath\" wait webfrontend --status up --timeout 300 --apphost \"$appHost\"\n\"$cliPath\" describe --apphost \"$appHost\" ...\n\"$cliPath\" resource apiservice restart --apphost \"$appHost\" ...\n\"$cliPath\" stop --apphost \"$appHost\" ...\n```\n\n#### Container execution\n\nInstall the PR CLI once by running the bash dogfood command inside the container:\n\n```bash\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nThe repo-local runner uses ephemeral `docker run --rm` containers. If you want to preserve the environment for later inspection, keep the mounted `testDir` workspace and reopen it with another `runner ...` command instead of expecting a long-lived container process to still exist.\n\nThen execute each scenario inside the container with the repo-local runner:\n\n```bash\nrunner bash -lc '\n  cliPath=\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire\n  hivePath=\u002Fworkspace\u002F.aspire\u002Fhives\u002Fpr-'\"$prNumber\"'\u002Fpackages\n  cliVersion=\"$(\"$cliPath\" --version)\"\n  projectName=ScenarioApp\n  scenarioDir=\u002Fworkspace\u002Fscenario-1\n  appRoot=\"$scenarioDir\u002F$projectName\"\n  appHost=\"$appRoot\u002F$projectName.AppHost\u002F$projectName.AppHost.csproj\"\n  mkdir -p \"$scenarioDir\"\n  \"$cliPath\" new aspire-empty --name \"$projectName\" --output \"$appRoot\" --source \"$hivePath\" --version \"$cliVersion\" ...\n  \"$cliPath\" start --apphost \"$appHost\" ...\n  \"$cliPath\" wait webfrontend --status up --timeout 300 --apphost \"$appHost\"\n  \"$cliPath\" describe --apphost \"$appHost\" ...\n  \"$cliPath\" resource apiservice restart --apphost \"$appHost\" ...\n  \"$cliPath\" stop --apphost \"$appHost\" ...\n'\n```\n\n### 9. Capture Evidence\n\nFor each test scenario, capture:\n\n**Screenshots:**\n- Dashboard resource list showing all resources running\n- Any relevant UI that was modified\n- Error states if applicable\n\n**Logs:**\n- Console output from `aspire run`\n- Any error messages\n- Resource health status\n\n**Commands and Output:**\n```powershell\n# Capture installed CLI version\n& $cliPath --version | Out-File \"$scenarioDir\\version.txt\"\n\n# Capture run output\naspire run 2>&1 | Tee-Object -FilePath \"$scenarioDir\\run-output.txt\"\n```\n\n**VS Code extension evidence:**\n- PR head SHA and extension version from `extension\u002Fpackage.json`.\n- Exact extension commands run (`.\u002Fbuild.sh`, `corepack yarn run test`, focused `corepack yarn run test:e2e`, or manual Extension Development Host steps).\n- CLI path and version used by the extension (`ASPIRE_EXTENSION_E2E_CLI_PATH` when set, or the repo-built CLI path chosen by the E2E runner).\n- E2E artifacts under `extension\u002F.test-results\u002Fe2e\u002F\u003Cshard>\u002F`, `extension\u002F.test-storage\u002F`, `extension\u002F.test-recordings\u002F`, and `extension\u002F.test-workspaces\u002F` when present.\n- Screenshots or VS Code logs for UI command\u002Fview\u002Fdebugger scenarios, especially when no automated E2E assertion exists.\n\n### 10. Generate Detailed Report\n\nWrite the comprehensive report to a markdown file and keep its path in `reportPath` so the same file can be posted in Step 11:\n\n```bash\nreportPath=\"$testDir\u002Fpr-$prNumber-testing-report.md\"\n```\n\n```powershell\n$reportPath = Join-Path $testDir \"pr-$prNumber-testing-report.md\"\n```\n\nUse the following structure:\n\n```markdown\n# PR Testing Report\n\n## PR Information\n- **PR Number:** #12345\n- **Title:** [PR Title]\n- **Head Commit:** abc123...\n- **Tested At:** [DateTime]\n\n## Artifact Version Verification\n- **Expected Commit:** abc123...\n- **Installed Version:** [output of the installed PR CLI binary, VSIX package metadata, or \"N\u002FA - source checkout at head commit\"]\n- **Status:** ✅ Verified \u002F ❌ Mismatch\n\n## Changes Analyzed\n### Files Changed\n- `src\u002FAspire.Cli\u002FCommands\u002FNewCommand.cs` - Modified\n- `src\u002FAspire.Hosting.Redis\u002FRedisResource.cs` - Added\n...\n\n### Change Categories\n- [x] CLI changes detected\n- [ ] Hosting integration changes\n- [x] Dashboard changes\n- [ ] CI infrastructure changes (GitHub Actions \u002F Azure DevOps)\n- [ ] VS Code extension changes\n...\n\n## Test Scenarios Executed\n\n### Scenario 1: [Scenario Name]\n**Objective:** [What this scenario tests]\n**Coverage Type:** Happy path \u002F Unhappy path \u002F Boundary\n**Status:** ✅ Passed \u002F ❌ Failed\n\n**Steps:**\n1. Created new Aspire project\n2. Ran `aspire new`\n3. Modified AppHost to add Redis\n4. Ran `aspire run`\n\n**Evidence:**\n- Screenshot: dashboard-resources.png\n- Log: run-output.txt\n\n**Observations:**\n- All resources started successfully\n- Dashboard displayed Redis resource correctly\n\n**Expected Unhappy-Path Outcome:** [Only for unhappy-path or boundary scenarios: validation error, non-zero exit code, safe failed state, recovery behavior, etc.]\n\n---\n\n### Scenario 2: [Scenario Name]\n...\n\n## CI Infrastructure Validation\n[Include this section only when the PR changes `.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, or CI scripts under `eng\u002F`. See `ci-infra-testing.md` for the full playbook.]\n\n**GitHub Actions:**\n- **What runs on this PR:** [Which path-triggered workflows fired and passed (link runs); which affected workflows could only be validated manually]\n- **Automated tests:** [Which `Infrastructure.Tests` classes ran + result; or \"no automated coverage exists for `\u003Cfile>`\"]\n- **Manual triggers:** [`gh workflow run` invocations, run links, dry-run output, whether run on a fork]\n- **Results validation:** [Per behavioral change, the observable confirmed in a real run — job-log line, artifact path\u002Flayout, binlog target, or skipped job — not just that the run completed; and, for enumeration\u002Fmatrix\u002Fjob changes, that no *fewer* tests\u002Fjobs ran than baseline]\n- **Dependency graph:** [For a changed producing job\u002Fartifact, the consumers traced (same-run `needs:` and cross-workflow\u002Fcross-pipeline downloads) and how each was confirmed — or \"n\u002Fa\"]\n- **gh-aw:** [`gh aw compile --validate --schedule-seed microsoft\u002Faspire` result + post-recompile lock-file diff (ideally empty)]\n- **Failure-modes scan:** [Gotcha rows checked and outcome — including gotchas confirmed *not* to be a problem]\n\n**Azure DevOps (only when pipelines changed):**\n- **Run vs. baseline:** [Baseline def-1602 `buildId` + result, your validation `buildId`(s) + result, artifact set compared, steps confirmed to run (timeline\u002Flog markers), expected contributor-branch skips — or \"n\u002Fa — validated offline via `Infrastructure.Tests`\"]\n\n## Summary\n| Scenario | Status | Notes |\n|----------|--------|-------|\n| Scenario 1 | ✅ Passed | - |\n| Scenario 2 | ❌ Failed | Build error in... |\n\n## Overall Result\n**✅ PR VERIFIED** \u002F **❌ ISSUES FOUND**\n\n### Recommendations\n- [Any recommendations based on test results]\n```\n\nFor a VS Code extension PR, the report should look more like this example than a CLI-only report:\n\n```markdown\n# PR Testing Report\n\n## PR Information\n- **PR Number:** #17864\n- **Title:** Add \"Open Dashboard to the Side\" command\n- **Head Commit:** 37c5f909120ec79d44d6e8306d3ab5cc79f7e554\n- **Tested At:** 2026-06-05T18:30:00Z\n\n## Artifact Version Verification\n- **Expected Commit:** 37c5f909120ec79d44d6e8306d3ab5cc79f7e554\n- **Installed Version:** N\u002FA - tested source checkout at head commit and VSIX built from that checkout\n- **Status:** ✅ Verified\n\n## Changes Analyzed\n### Files Changed\n- `extension\u002Fsrc\u002F...` - VS Code extension command\u002Fview behavior\n\n### Change Categories\n- [ ] CLI changes detected\n- [ ] Hosting integration changes\n- [ ] Dashboard changes\n- [x] VS Code extension changes\n\n## Test Scenarios Executed\n\n### Scenario 1: Extension build and unit validation\n**Objective:** Verify the PR extension source compiles, lints, and passes VS Code unit tests.\n**Coverage Type:** Build\u002Funit validation\n**Status:** ✅ Passed\n\n**Steps:**\n1. Checked out the PR at `\u002Ftmp\u002Faspire-pr17864-test` to avoid VS Code IPC path-length issues.\n2. Ran `.\u002Fbuild.sh` from `extension\u002F` to build the extension and repo Aspire CLI.\n3. Ran `corepack yarn run test`.\n\n**Evidence:**\n- Source checkout: `\u002Ftmp\u002Faspire-pr17864-test`\n- CLI path: `\u002Ftmp\u002Faspire-pr17864-test\u002Fartifacts\u002Fbin\u002FAspire.Cli\u002FDebug\u002Fnet10.0\u002Faspire`\n- Command output: build and unit test logs captured in the test workspace\n\n**Observations:**\n- Extension compile, lint, and VS Code unit tests completed successfully.\n\n---\n\n### Scenario 2: Open Dashboard to the Side in a real Extension Host\n**Objective:** Verify the command works in VS Code with a running AppHost, not just by reading source.\n**Coverage Type:** User-visible E2E\n**Status:** ✅ Passed\n\n**Steps:**\n1. Built the PR VSIX\u002Fsource from the PR checkout.\n2. Started the E2E Extension Host with `ASPIRE_EXTENSION_E2E_CLI_PATH=\u002Ftmp\u002Faspire-pr17864-test\u002Fartifacts\u002Fbin\u002FAspire.Cli\u002FDebug\u002Fnet10.0\u002Faspire`.\n3. Started the fixture AppHost.\n4. Invoked `aspire-vscode.openDashboardToSide`.\n5. Verified the dashboard opened in the side editor group.\n\n**Evidence:**\n- E2E command: `corepack yarn run test:e2e` with a focused `ASPIRE_EXTENSION_E2E_SPEC`\n- E2E state: `extension\u002F.test-results\u002Fe2e\u002F\u003Cshard>\u002Fextension-state.json`\n- VS Code diagnostics: `extension\u002F.test-storage\u002F\u003Cshard>\u002F...`\n\n**Observations:**\n- The Extension Host launched the PR extension and used the expected repo-built CLI.\n- The command opened the Aspire dashboard beside the current editor.\n\n## Summary\n| Scenario | Status | Notes |\n|----------|--------|-------|\n| Extension build and unit validation | ✅ Passed | Source checkout at PR head |\n| Open Dashboard to the Side E2E | ✅ Passed | Real VS Code Extension Host with repo-built CLI |\n\n## Overall Result\n**✅ PR VERIFIED**\n```\n\n### 11. Ask Whether to Post the Report\n\nAfter the test run finishes and the detailed report is generated, ask the user whether to post the report as a PR comment when the run is associated with a GitHub PR (`prNumber` is known). Default the prompt to **Yes**, but do not post anything without explicit user confirmation.\n\nUse whatever interactive prompt mechanism is available in the current agent framework. The prompt should make the default clear, for example:\n\n```markdown\nPost this test report as a comment on PR #12345?\n\nDefault: Yes\n```\n\nIf the user confirms, post the report:\n\n```bash\ngh pr comment \"$prNumber\" --repo microsoft\u002Faspire --body-file \"$reportPath\"\n```\n\nIf the user declines, or if no GitHub PR was resolved, do not post the report. Include the posting status in the final response.\n\n## Error Handling\n\n### Version Mismatch\nIf the installed CLI version doesn't match the PR's head commit:\n```markdown\n## ❌ Version Mismatch Detected\n\n- **Expected (PR head):** abc123def456...\n- **Installed CLI reports:** xyz789...\n\n**Possible causes:**\n1. PR has new commits since the dogfood artifacts were built\n2. Artifact cache is stale\n3. Installation picked up a different version\n\n**Recommendation:** Wait for CI to rebuild artifacts for the latest commit, then retry.\n```\n\n### Missing Dogfood Comment\nIf no \"Dogfood this PR\" comment is found:\n```markdown\n## ❌ No Dogfood Instructions Found\n\nThe PR does not have a \"Dogfood this PR with:\" comment.\n\n**Possible causes:**\n1. PR CI hasn't completed yet\n2. PR is a draft or not from a branch that triggers artifact builds\n3. CI failed to publish artifacts\n\n**Recommendation:** Check the PR's CI status and wait for it to complete.\n```\n\nException: for PRs that only change `extension\u002F`, missing dogfood instructions do not block testing. Test the PR branch source or VSIX instead and record the source checkout commit as the artifact version.\n\n### Bundle extraction or layout validation failure\nIf a fresh PR install fails with messages like `Bundle extraction failed` or `Bundle was extracted ... but layout validation failed`:\n\n1. Capture the exact error output and treat it as a CLI install or bundle failure.\n2. Stop template-based scenarios and report the failure instead of adding repair steps that a normal user would not perform.\n3. Only reach for deeper recovery or debugging steps if the user explicitly asks you to investigate the install or bundle failure itself.\n\n### Unexpected prompt during automation\nIf `aspire new` fails with `Failed to read input in non-interactive mode` or `Cannot show selection prompt since the current terminal isn't interactive`, review the non-interactive flags listed in the \"Important template note\" section above (Step 3) and ensure they are all present. When encountering an unknown prompt, run `aspire new \u003Ctemplate> --help` to discover all available flags. New template options may be added between releases and each one can introduce a new interactive prompt.\n\n### gh CLI authentication failures during local mode\nIf the install script fails with `Failed to get HEAD SHA for PR` or `To get started with GitHub CLI, please run: gh auth login` even though `gh` is authenticated:\n\n1. **Do not override `HOME`, `USERPROFILE`, or `APPDATA`** in the same shell session where you run the install script. The `gh` CLI resolves its auth config from `APPDATA` (Windows) or `HOME` (Unix), and overriding these to an isolated directory makes `gh` appear unauthenticated.\n2. On Windows, use `-InstallPath`, `-SkipPath`, and `-SkipExtension` flags instead of environment variable overrides to isolate the install.\n3. On Unix, use `--install-path`, `--skip-path`, and `--skip-extension` flags instead of overriding `HOME`.\n4. Verify with `gh auth status` in the same terminal before running the install script.\n\n### AppHost selection prompt \u002F no running AppHosts found\nIf `wait`, `describe`, `resource`, or `stop` prompts to select an AppHost or reports that no running AppHosts were found in the current directory, pass `--apphost \u003Cpath>` explicitly to those follow-up commands.\n\n### VS Code extension setup or E2E failures\nIf extension validation fails before the scenario runs:\n1. Capture the failing command and exact output.\n2. For Corepack\u002FYarn registry errors, report it as environment or feed setup unless the PR changed `extension\u002Fpackage.json`, `extension\u002Fyarn.lock`, `.npmrc`, or build scripts.\n3. For `test:e2e` failures, include the diagnostics paths printed by `scripts\u002Frun-e2e.js`. The runner stores state, control files, storage diagnostics, workspaces, and recordings under `extension\u002F.test-results`, `.test-storage`, `.test-workspaces`, and `.test-recordings`.\n4. If `ASPIRE_EXTENSION_E2E_CLI_PATH` is missing or points at the wrong binary, rebuild with `extension\u002Fbuild.sh` \u002F `extension\u002Fbuild.ps1` or set the variable to the intended dogfood\u002Fpublished CLI and rerun.\n5. If VS Code fails before tests start with an IPC socket warning like `IPC handle ... is longer than 103 chars` or `listen EINVAL`, move the checkout to a shorter path and rerun. Treat this as an environment path-length failure, not a PR failure.\n\n### Test Scenario Failures\nDocument failures with full context:\n```markdown\n### Scenario: [Name]\n**Status:** ❌ Failed\n\n**Error:**\n\\```\n[Full error output]\n\\```\n\n**Screenshot:** error-state.png\n\n**Logs:** \n- Console output: [relevant lines]\n- Stack trace: [if applicable]\n\n**Analysis:**\n[What likely caused this failure]\n\n**Impact:**\n[How this affects users of the PR changes]\n```\n\n### 12. Offer Container Inspection\n\nIf testing ran in the repo container runner, ask the user before cleanup whether they want to keep the mounted workspace around for inspection. Use whatever interactive prompt mechanism is available in the current agent framework.\n\nDefault to cleaning up the container workspace.\n\nIf the user chooses to keep it:\n- Do **not** delete `testDir`.\n- Report the workspace path.\n- Include the exact command to reopen a shell in a fresh runner container against the same workspace, for example:\n\n```bash\nrunner bash\n```\n\nor, if you are no longer in the same shell context:\n\n```bash\nASPIRE_PR_WORKSPACE=\"$testDir\" ASPIRE_CONTAINER_USER=0:0 \\\n  .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.sh bash\n```\n\nOn Windows PowerShell hosts, the reopen command is:\n\n```powershell\n$env:ASPIRE_PR_WORKSPACE = $testDir\n$env:ASPIRE_CONTAINER_USER = \"0:0\"\n.\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.ps1 bash\n```\n\nIf the user chooses cleanup:\n- Remove `testDir` as usual.\n\n## Cleanup\n\nAfter testing completes, clean up temporary directories unless the user explicitly chose to keep the container workspace for inspection:\n\n**PowerShell:**\n\n```powershell\n# Return to original directory\nSet-Location $env:USERPROFILE\n\n# Clean up test directories\nRemove-Item -Path $testDir -Recurse -Force\n```\n\n**bash:**\n\n```bash\ncd ~\nrm -rf \"$testDir\"\n```\n\n## Platform Considerations\n\n### Windows\n- Use PowerShell for commands\n- PR CLI installation: use `get-aspire-cli-pr.ps1` as shown in the dogfood comment (see Step 3)\n- Path separator: `\\`\n\n### Linux\u002FmacOS\n- Use bash for commands\n- PR CLI installation: use `get-aspire-cli-pr.sh` as shown in the dogfood comment (see Step 3)\n- Path separator: `\u002F`\n- Source profile after installation: `source ~\u002F.bashrc` or `source ~\u002F.zshrc`\n\n## Response Format\n\nAfter completing the task, provide:\n\n1. **Brief Summary** - One-line result (Passed\u002FFailed with key finding)\n2. **Full Report** - The detailed markdown report as described above\n3. **Artifacts** - List of captured screenshots and logs with their locations\n4. **PR Comment Status** - Whether the report was posted to the PR, declined, skipped, or failed to post\n5. **Cleanup \u002F Inspection Status** - Whether the temp workspace was removed or retained for inspection, plus the reopen command when retained\n\nExample summary:\n```markdown\n## PR Testing Complete\n\n**Result:** ✅ PR #12345 verified successfully\n\nAll 3 test scenarios passed. The CLI changes in `NewCommand.cs` work as expected. \nDashboard correctly displays the new Redis resource type.\n\n? **Full Report:** See detailed report below\n? **Screenshots:** 4 captured (dashboard-main.png, redis-resource.png, ...)\n? **Logs:** 3 captured (run-output.txt, version.txt, ...)\n? **PR Comment:** Posted to PR #12345\n? **Inspection:** Container workspace cleaned up\n```\n\n## Important Constraints\n\n- **Always use temp directories** - Never create test projects in the repository\n- **Verify version first** - Don't proceed with testing if CLI version doesn't match PR commit\n- **Capture evidence** - Every scenario needs screenshots and\u002For logs\n- **Clean up after** - Remove temp directories when done, unless the user explicitly asked to keep the container workspace for inspection\n- **Document everything** - Detailed reports help PR authors understand results\n- **Test actual changes** - Focus scenarios on what the PR modified\n- **Include unhappy-path cases** - Add targeted negative\u002Fboundary scenarios for changed user-facing behavior, and verify expected safe failures or recovery states\n- **Ask before posting** - If there is a GitHub PR, ask before posting the report as a PR comment; default to yes, but require explicit confirmation\n- **Fresh projects** - Always use `aspire new` for each scenario, don't reuse projects\n- **Container mode** - Prefer the repo-local `.\u002Feng\u002Fscripts\u002Faspire-pr-container` scripts and a fresh temp workspace when Docker is available\n- **Ask before container cleanup** - At the end of a container-mode run, ask whether to keep the mounted workspace around for inspection\n- **Bundle failures** - If template-based commands fail with bundle extraction or layout validation errors after install, capture and report the failure instead of adding non-standard repair steps\n- **Non-interactive project creation** - Follow the flags listed in the \"Important template note\" section (Step 3)\n- **Explicit AppHost path** - Prefer `--apphost \u003Cpath>` for scripted `wait`, `describe`, `resource`, and `stop` commands\n- **PR hive for templates** - Prefer `--source \u003Cpr-hive>` and `--version \u003Cinstalled-version>` when creating projects from the PR build\n- **CI infra PRs** - When the PR changes `.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, or CI scripts under `eng\u002F`, follow `ci-infra-testing.md` (GitHub Actions track + Azure DevOps track): enumerate every affected workflow\u002Fpipeline, validate the workflows\u002Factions\u002Fscripts\u002Fpipelines and hunt for trigger\u002Fpermission\u002Ffork\u002Fportability\u002Flock-drift gotchas, and for AzDO select the consuming definition on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill — don't dogfood the CLI for infra-only PRs, and don't test skill\u002Fdoc-only edits at all\n","You are a specialized PR testing agent for the microsoft\u002Faspire repository. Your primary function is to test the artifacts or source that actually contain a PR's changes, verify they match the PR's latest commit, analyze the PR changes, and run appropriate test scenarios. Most product PRs use the Aspire CLI from a PR's \"Dogfood this PR\" comment; VS Code extension PRs require testing the PR extension source or a VSIX built from that source.\n\n## Understanding User Requests\n\nParse user requests to extract:\n1. **PR identifier** - either a PR number (e.g., `12345`) or full URL (e.g., `https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345`)\n\n### Example Requests\n\n**By PR number:**\n> Test PR 12345\n\n**By URL:**\n> Test https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345\n\n**Implicit:**\n> Test this PR (when working in a branch with an open PR)\n\n## Task Execution Steps\n\n### 1. Parse and Validate the PR\n\nExtract the PR number from the user's input:\n\n```powershell\n# If URL provided, extract PR number\n$prUrl = \"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fpull\u002F12345\"\n$prNumber = ($prUrl -split '\u002F')[-1]\n\n# Verify PR exists and get details\ngh pr view $prNumber --repo microsoft\u002Faspire --json number,title,headRefOid,body,files\n```\n\n### 2. Get the \"Dogfood this PR\" Download Link\n\nFetch the PR comments and find the \"Dogfood this PR with:\" comment that contains the CLI download instructions:\n\n```powershell\n# Get PR comments to find dogfood instructions\ngh pr view $prNumber --repo microsoft\u002Faspire --json comments --jq '.comments[] | select(.body | contains(\"Dogfood this PR\")) | .body'\n```\n\nThe comment typically contains instructions like:\n```\nDogfood this PR with:\n\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- 16093\n\nOr in PowerShell:\niex \"& { $(irm https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.ps1) } 16093\"\n```\n\nIf the PR only changes `extension\u002F` and no dogfood comment is available, do not stop here. Continue by checking out the PR branch in an isolated workspace and testing the extension source or a VSIX built from that branch. Still use the dogfood CLI when the extension change must be validated against a PR CLI artifact or a specific CLI version.\n\n### 3. Choose Execution Mode and Install the CLI\n\nBefore installing the CLI, decide whether the testing should run **locally** or in the repo-local **container runner**. Use the container runner when you need an isolated CLI install or to reproduce Linux\u002Fcontainer-specific behavior. Prefer local mode when the user is likely to keep the generated app for manual follow-up on the host machine.\n\nIn either mode, use the dogfood command from the PR comment as the install step. Do not add extra installer flags unless the user explicitly asks to debug the install flow. For extension-only PRs with no dogfood CLI, skip this CLI install step and build the extension\u002FCLI from the PR branch with `extension\u002Fbuild.sh` or `extension\u002Fbuild.ps1`.\n\nThe container runner lives at:\n\n```text\n.\u002Feng\u002Fscripts\u002Faspire-pr-container\u002F\n```\n\nUse the shell that matches the host:\n\n- **macOS\u002FLinux\u002FWSL:** `run-aspire-pr-container.sh`\n- **Windows PowerShell:** `run-aspire-pr-container.ps1`\n\n#### Local mode\n\n##### macOS\u002FLinux\u002FWSL\n\nCreate a temporary working directory and use `--install-path` and `--skip-path` to keep the install isolated. **Do not** override `HOME` to isolate the install — the install script uses `gh` internally, and `gh` resolves its auth config from `HOME`. Overriding `HOME` to an empty directory makes `gh` appear unauthenticated:\n\n```bash\ntestDir=\"$(mktemp -d -t aspire-pr-test-XXXXXX)\"\n\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- \"$prNumber\" --install-path \"$testDir\" --skip-path --skip-extension\n\ncliPath=\"$testDir\u002Fbin\u002Faspire\"\nhivePath=\"$testDir\u002Fhives\u002Fpr-$prNumber\u002Fpackages\"\ncliVersion=\"$(\"$cliPath\" --version)\"\n```\n\n##### Windows PowerShell\n\nOn Windows, **do not** override `HOME`, `USERPROFILE`, or `APPDATA` to isolate the install. Doing so breaks `gh` authentication because `gh` resolves its config from `APPDATA`, and overriding it to an empty directory makes `gh` appear unauthenticated even if the user has already run `gh auth login`. Instead, use the `-InstallPath`, `-SkipPath`, and `-SkipExtension` flags to keep the install isolated without touching environment variables that other tools depend on:\n\n```powershell\n$testDir = Join-Path $env:TEMP \"aspire-pr-test-$([guid]::NewGuid().ToString('N'))\"\nNew-Item -ItemType Directory -Path $testDir -Force | Out-Null\n\niex \"& { $(irm https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.ps1) } $prNumber -InstallPath $testDir -SkipExtension -SkipPath\"\n\n$cliPath = \"$testDir\\dogfood\\pr-$prNumber\\bin\\aspire.exe\"\n$hivePath = \"$testDir\\hives\\pr-$prNumber\\packages\"\n$cliVersion = & $cliPath --version\n```\n\n#### Container mode\n\nRun from the repository root so the repo-local scripts are available. Use a fresh host temp directory as the mounted workspace. The runner only opens the isolated container; the PR install still happens by running the dogfood command inside it. Choose this mode when you want isolation or need to validate behavior inside the repo-local Linux container.\n\n```bash\ntestDir=\"$(mktemp -d -t aspire-pr-test-XXXXXX)\"\nrunner() {\n  ASPIRE_PR_WORKSPACE=\"$testDir\" ASPIRE_CONTAINER_USER=0:0 \\\n    .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.sh \"$@\"\n}\n\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nOn Windows PowerShell hosts, use the PowerShell runner instead:\n\n```powershell\n$testDir = Join-Path $env:TEMP \"aspire-pr-test-$([guid]::NewGuid().ToString('N'))\"\nNew-Item -ItemType Directory -Path $testDir -Force | Out-Null\n\nfunction runner {\n  & .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.ps1 @args\n}\n\n$env:ASPIRE_PR_WORKSPACE = $testDir\n$env:ASPIRE_CONTAINER_USER = \"0:0\"\n\nrunner bash -lc \"curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- $prNumber\"\n```\n\nFor follow-up commands in the same mounted workspace, run:\n\n```bash\nrunner bash -lc '\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire --version'\n```\n\nBecause the container `HOME` is `\u002Fworkspace`, the standard dogfood install still lands under `\u002Fworkspace\u002F.aspire`. The repo-local runner now backs `\u002Fworkspace\u002F.aspire` with a deterministic Docker-managed volume instead of the host bind mount, so follow-up commands can keep using `\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire` and `\u002Fworkspace\u002F.aspire\u002Fhives\u002Fpr-\u003CPR_NUMBER>\u002Fpackages` without putting the AppHost RPC socket on the Docker Desktop workspace filesystem.\n\nTo record the full host-side container session with asciinema, enable recording before invoking the runner. Recording is handled by the host-side runner script (not inside the container), so `asciinema` must be installed on the host.\n\nmacOS\u002FLinux\u002FWSL example:\n\n```bash\nexport ASPIRE_PR_RECORD=1\nexport ASPIRE_PR_RECORDING_PATH=\"$testDir\u002Fpr-test.cast\"   # optional\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nWindows PowerShell example:\n\n```powershell\n$env:ASPIRE_PR_RECORD = \"1\"\n$env:ASPIRE_PR_RECORDING_PATH = Join-Path $testDir \"pr-test.cast\"   # optional\nrunner bash -lc \"curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- $prNumber\"\n```\n\n#### Important template note\n\nWhen creating new projects from the PR build:\n\n- Prefer the downloaded PR hive explicitly instead of relying on channel resolution alone.\n- In non-interactive runs, pass both `--name` and `--output`.\n- For `aspire-starter`, also pass `--test-framework None --use-redis-cache false` unless the scenario explicitly needs those prompts.\n- Always pass `--localhost-tld false` to suppress the `Use *.dev.localhost URLs [y\u002FN]:` prompt that causes `Failed to read input in non-interactive mode` errors.\n- Always pass `--suppress-agent-init` to suppress the post-create `Would you like to configure AI agent environments for this project?` prompt.\n- The `--output` directory must not already exist. `aspire new` refuses to write into a non-empty directory. If a previous attempt failed and left a partial directory behind, remove it before retrying (`Remove-Item -Recurse -Force` \u002F `rm -rf`).\n- In TTY-attached runs where `--suppress-agent-init` is not passed, `aspire new` may ask `Would you like to configure AI agent environments for this project?`; answer explicitly (usually `n`) unless agent-init is part of the scenario.\n- Run `aspire new \u003Ctemplate> --help` to discover all available flags for a template when you encounter unexpected prompts. New flags may be added between releases.\n\nExample starter-app automation (bash):\n\n```bash\nprojectName=\"PrSmoke\"\nappRoot=\"$testDir\u002F$projectName\"\n\n\"$cliPath\" new aspire-starter \\\n  --name \"$projectName\" \\\n  --output \"$appRoot\" \\\n  --source \"$hivePath\" \\\n  --version \"$cliVersion\" \\\n  --test-framework None \\\n  --use-redis-cache false \\\n  --localhost-tld false \\\n  --suppress-agent-init\n```\n\nExample starter-app automation (PowerShell):\n\n```powershell\n$projectName = \"PrSmoke\"\n$appRoot = \"$testDir\\$projectName\"\n\n& $cliPath new aspire-starter `\n  --name $projectName `\n  --output $appRoot `\n  --source $hivePath `\n  --version $cliVersion `\n  --test-framework None `\n  --use-redis-cache false `\n  --localhost-tld false `\n  --suppress-agent-init\n```\n\n### 4. Verify CLI Version Matches PR Commit\n\nGet the PR's head commit SHA and verify the installed CLI matches:\n\n```bash\n# Get PR head commit SHA\nexpectedCommit=\"$(gh pr view \"$prNumber\" --repo microsoft\u002Faspire --json headRefOid --jq .headRefOid)\"\n\n# Local mode: use the installed binary directly\n\"$cliPath\" --version\n\n# Container mode: use the installed binary in the mounted workspace\nrunner bash -lc '\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire --version'\n```\n\n**Important:** The installed binary path must be used for version checks (not bare `aspire`, which may resolve to some other install). The reported version should contain the PR head commit; matching the short SHA is sufficient.\n\n### 5. Analyze PR Changes\n\nExamine the PR diff to understand what was changed:\n\n```powershell\n# Get changed files\ngh pr view $prNumber --repo microsoft\u002Faspire --json files --jq '.files[].path'\n\n# Get the PR diff\ngh pr diff $prNumber --repo microsoft\u002Faspire\n```\n\nCategorize the changes:\n- **CLI changes**: Files in `src\u002FAspire.Cli\u002F`\n- **Hosting changes**: Files in `src\u002FAspire.Hosting*\u002F`\n- **Dashboard changes**: Files in `src\u002FAspire.Dashboard\u002F`\n- **Client\u002FComponent changes**: Files in `src\u002FComponents\u002F`\n- **Template changes**: Files in `src\u002FAspire.ProjectTemplates\u002F`\n- **VS Code extension changes**: Files in `extension\u002F`\n- **Test changes**: Files in `tests\u002F`\n- **CI infrastructure changes**: GitHub Actions — files in `.github\u002Fworkflows\u002F`, `.github\u002Factions\u002F`, `.github\u002Faw\u002F`, `.github\u002Fagents\u002F`, or CI scripts under `eng\u002Fscripts\u002F`, `eng\u002Fgithub-ci\u002Fci-skip-entirely-patterns.txt`, `eng\u002Ftest-retry-patterns.json`; **and** Azure DevOps — `eng\u002Fpipelines\u002F`, `eng\u002Fcommon\u002F`, and the signing\u002Fpackaging\u002Fpublishing plumbing those pipelines call. More broadly, anything that changes *how CI selects, builds, or runs* (e.g. `tools\u002F**` invoked by CI, MSBuild test plumbing in `eng\u002F**\u002F*.props`\u002F`*.targets`, or CI config\u002Fdata JSON), even when no `.github\u002F` or `eng\u002Fpipelines\u002F` file is touched. (Skill\u002Fdoc-only edits under `.agents\u002Fskills\u002F**` or `docs\u002F**` are **not** tested by this skill — there is nothing to run for them.)\n\n> **If the PR touches CI infrastructure, follow the `ci-infra-testing.md` reference in this skill directory for that part.** Those changes are *not* validated by the CLI dogfood \u002F template scenarios below. The reference has two tracks: **GitHub Actions** (most workflows don't run on the PR; unit tests don't catch trigger \u002F permission \u002F fork \u002F portability \u002F lock-drift gotchas) and **Azure DevOps** (no AzDO pipeline runs on a GitHub PR — a non-trivial change must be run on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill). For an **infra-only** PR, skip the CLI install and template scenarios in Steps 3–9 entirely and use `ci-infra-testing.md` instead. For a mixed PR, do both.\n\n### 6. Generate Test Scenarios\n\nBased on the PR changes, generate appropriate test scenarios. Always use new projects in the temp folder. Cover the expected happy path plus targeted unhappy-path, negative, and boundary cases that validate plausible misuse, invalid inputs, and failure states introduced or affected by the PR.\n\n#### Scenario Categories\n\n**For CLI changes (`src\u002FAspire.Cli\u002F`):**\n- Test the specific command(s) that were modified\n- Run `aspire new` to verify basic functionality\n- Run `aspire run` to verify orchestration works\n- Test any new commands or options added\n\n**For Hosting integration changes (`src\u002FAspire.Hosting.*\u002F`):**\n- Create a new Aspire project\n- Add the modified resource type to the AppHost\n- Run the application and verify the resource starts correctly\n- Check the Dashboard shows the resource properly\n\n**For Dashboard changes (`src\u002FAspire.Dashboard\u002F`):**\n- Create and run an Aspire application\n- Navigate to the Dashboard\n- Take screenshots of relevant views\n- Verify the modified UI\u002Ffunctionality works\n\n**For Template changes (`src\u002FAspire.ProjectTemplates\u002F`):**\n- Test creating projects from each modified template\n- Verify the generated project structure\n- Run the generated project\n\n**For Client\u002FComponent changes (`src\u002FComponents\u002F`):**\n- Create a project that uses the modified component\n- Add the corresponding hosting resource\n- Test the client can connect to the resource\n\n**For CI infrastructure changes (`.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, CI scripts under `eng\u002F`):**\n- Follow `ci-infra-testing.md` in this skill directory. It splits into a **GitHub Actions** track and an **Azure DevOps** track. In brief — GitHub: enumerate every workflow the diff affects (changed `.yml`, every workflow that consumes a changed script\u002Faction\u002Freusable-workflow\u002Fdata file, *and* every consumer of an artifact a changed job produces), trace the producer→consumer graph (`needs:`, `outputs`, `upload`\u002F`download-artifact`, `workflow_run`), determine which actually run on this PR, run the matching `Infrastructure.Tests` classes, recompile any gh-aw `.lock.yml` and confirm no diff, manually dispatch the affected workflows that don't run on the PR (prefer a `dry_run` input or your fork), validate each run's *results* (job logs, binlog, downloaded artifacts) rather than just that it went green, and confirm no *fewer* tests\u002Fjobs run than baseline when enumeration\u002Fmatrix\u002Fjob structure changes. AzDO: no pipeline runs on the PR — for a non-trivial change, select the consuming pipeline on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill (1602 for official builds, 1693 for source indexing), check stage `dependsOn` + published\u002Fconsumed artifacts (including the cross-pipeline release consumer), and validate the change took effect from the timeline + downloaded artifacts. Record main-only indexing skips as unvalidated. Scan the failure-mode tables for the gotchas the unit tests can't catch.\n\n**For VS Code extension changes (`extension\u002F`):**\n- Test the PR extension source or a VSIX built from the PR branch. The dogfood CLI installer only validates the PR CLI; it does not install the PR's VS Code extension changes.\n- Use a short checkout path for extension test workspaces (for example `\u002Ftmp\u002Faspire-pr-\u003Cnumber>` on macOS\u002FLinux). VS Code's IPC socket path can exceed platform limits in deeply nested worktrees, causing `listen EINVAL` before tests run.\n- From `extension\u002F`, run `.\u002Fbuild.sh` (Linux\u002FmacOS) or `.\u002Fbuild.ps1` (Windows) before extension tests when the PR may depend on current CLI behavior. The script installs the pinned Corepack\u002FYarn toolchain, runs `corepack yarn install --frozen-lockfile --non-interactive`, compiles the extension, and builds `src\u002FAspire.Cli`.\n- Run `corepack yarn run test` for extension compile, lint, and VS Code unit tests. For dependency-only changes to `extension\u002Fpackage.json` or `extension\u002Fyarn.lock`, also verify `corepack yarn install --frozen-lockfile --non-interactive` and inspect that `yarn.lock` uses the approved internal npm feed.\n- For user-visible commands, views, debugger behavior, AppHost discovery, DCP\u002FRPC\u002FMCP behavior, or CLI integration, run or add focused E2E coverage with the repo's `vscode-extension-tester` harness via `corepack yarn run test:e2e`. Use `ASPIRE_EXTENSION_E2E_SPEC='out\u002Ftest-e2e\u002Ftest-e2e\u002F\u003Cspec>.e2e.test.js'` (or a narrower glob under `out\u002Ftest-e2e\u002F**`) to keep the run focused when the changed surface has an existing E2E spec.\n- If no matching E2E exists for a user-visible behavior, create a temporary focused E2E spec in the PR checkout and run it against the PR VSIX\u002Fsource. Keep the temporary spec out of the final PR-testing skill changes, but use it to capture evidence from a real Extension Host run: Extension Development Host\u002FVSIX version, command invoked, workspace\u002FAppHost state, `.test-results\u002Fe2e\u002F\u003Cshard>\u002Fextension-state.json`, VS Code logs, screenshots\u002Frecordings when helpful, and failure diagnostics.\n- Use Playwright or manual VS Code exploration only to understand a scenario that the E2E harness does not yet cover. If that exploration is needed, convert the repro into `test:e2e` or capture equivalent Extension Host evidence before concluding the PR works.\n- When testing compatibility with a separately installed or dogfood CLI, set `ASPIRE_EXTENSION_E2E_CLI_PATH` to that exact `aspire` binary. If the extension is expected to work with older published CLIs, also run a compatibility scenario against that CLI; set `ASPIRE_EXTENSION_E2E_SKIP_CURRENT_CLI_REGRESSIONS=true` only for tests that intentionally cover bugs fixed by the current repo-built CLI.\n\n#### Unhappy-Path Coverage\n\nFor every changed user-facing behavior, include 1-3 high-value unhappy-path, negative, or boundary test cases after the happy-path scenario. Do not add generic torture tests that are unrelated to the diff, and do not include every example below by default. Each case should have an expected outcome, such as a clear validation error, a safe failed state, a non-zero exit code, or a recoverable dashboard\u002Fresource state.\n\nUse these examples as a starting point and adapt them to the actual PR:\n\n| Change area | Unhappy-path cases to consider |\n|-------------|-------------------------------|\n| CLI commands\u002Foptions | Missing required arguments, invalid option combinations, non-existent `--apphost` paths, output directories that already exist, non-interactive execution that would otherwise prompt |\n| Hosting integrations | Invalid or missing configuration, duplicate resource names\u002Fendpoints, unavailable backing service, unhealthy resource startup, invalid connection string or credential shape |\n| Dashboard UI | Empty data sets, failed\u002Funhealthy\u002Funknown resource states, long resource names, large resource counts, malformed telemetry\u002Flog data from a resource |\n| Templates | Invalid project names, non-empty output directories, unsupported template option values, disabled optional services, non-interactive creation with all prompt-suppressing flags |\n| Client\u002Fcomponents | Missing configuration, connection refusal, auth failure, unavailable resource, malformed endpoint metadata |\n| VS Code extension | No workspace folder, no AppHost discovered, multiple AppHosts, missing\u002Fold CLI, stopped AppHost, command invoked from tree item vs command palette, closed dashboard URL, failed RPC\u002FDCP session, malformed launch profile, localized command title\u002Fstring coverage |\n\nPrefer cases that reproduce how a real user could break or misuse the changed feature. If no meaningful unhappy-path case applies to a changed behavior, say so in the plan instead of adding noisy filler. Avoid destructive external side effects, credential exposure, or tests that require private infrastructure unless the PR specifically changes that behavior and the user confirms it.\n\n### 7. Present Scenarios and Get User Input\n\n**Before executing any test scenarios**, present a summary of the proposed scenarios to the user and ask for confirmation. Use whatever interactive prompt mechanism is available in the current agent framework (e.g., a question\u002Fform tool, a chat message asking for confirmation, etc.).\n\n**Summary format:**\n\n```markdown\n## Proposed Test Scenarios for PR #XXXXX\n\nBased on analyzing the PR changes, I've identified the following test scenarios:\n\n### Detected Changes\n- **CLI changes**: [Yes\u002FNo] - [brief description if yes]\n- **Hosting changes**: [Yes\u002FNo] - [brief description if yes]\n- **Dashboard changes**: [Yes\u002FNo] - [brief description if yes]\n- **Template changes**: [Yes\u002FNo] - [brief description if yes]\n- **Client\u002FComponent changes**: [Yes\u002FNo] - [brief description if yes]\n- **VS Code extension changes**: [Yes\u002FNo] - [brief description if yes]\n- **Test changes**: [Yes\u002FNo] - [brief description if yes]\n\n### Proposed Scenarios\n1. **[Scenario Name]** - [Brief description of what will be tested]\n2. **[Scenario Name]** - [Brief description of what will be tested]\n3. ...\n\n### Unhappy-Path Coverage\n- **[Unhappy-Path Case Name]** - [Invalid input\u002Fstate being tested and expected safe failure or recovery behavior]\n```\n\n**Then ask the user to confirm the plan and choose an execution target.** Collect the following:\n- Whether to proceed, add more scenarios, skip some, or cancel testing\n- Whether to run in the repo container runner or locally in a temp directory\n- Any additional scenarios to include or scenarios to skip\n\nDefault execution target based on the goal: choose **Run locally in a temp directory** when the user is likely to continue working with the generated app on the host, and choose **Run in the repo container runner** when isolation or Linux\u002Fcontainer reproduction is the priority. If the user doesn't specify, use the same heuristic.\n\n**Handle user responses:**\n- **Proceed**: Continue to step 8 using the selected execution target\n- **Add more**: Ask user to describe additional scenarios, add them to the list, then proceed\n- **Skip some**: Ask which scenarios to skip, remove them, then proceed\n- **Cancel**: Stop testing and report cancellation\n\nThis step ensures the user can:\n1. Verify the analysis is correct\n2. Add domain-specific scenarios the agent might have missed\n3. Skip scenarios that aren't relevant\n4. Provide context about specific features to focus on\n\n### 8. Execute Test Scenarios\n\nFor each scenario, follow this pattern based on the chosen execution target.\n\n#### Local execution\n\n```bash\nscenarioDir=\"$testDir\u002Fscenario-$(date +%s%N)\"\nprojectName=\"ScenarioApp\"\nappRoot=\"$scenarioDir\u002F$projectName\"\nappHost=\"$appRoot\u002F$projectName.AppHost\u002F$projectName.AppHost.csproj\"\n\nmkdir -p \"$scenarioDir\"\n\n\"$cliPath\" new aspire-empty --name \"$projectName\" --output \"$appRoot\" --source \"$hivePath\" --version \"$cliVersion\" ...\n\"$cliPath\" start --apphost \"$appHost\" ...\n\"$cliPath\" wait webfrontend --status up --timeout 300 --apphost \"$appHost\"\n\"$cliPath\" describe --apphost \"$appHost\" ...\n\"$cliPath\" resource apiservice restart --apphost \"$appHost\" ...\n\"$cliPath\" stop --apphost \"$appHost\" ...\n```\n\n#### Container execution\n\nInstall the PR CLI once by running the bash dogfood command inside the container:\n\n```bash\nrunner bash -lc 'curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fmicrosoft\u002Faspire\u002Fmain\u002Feng\u002Fscripts\u002Fget-aspire-cli-pr.sh | bash -s -- '\"$prNumber\"\n```\n\nThe repo-local runner uses ephemeral `docker run --rm` containers. If you want to preserve the environment for later inspection, keep the mounted `testDir` workspace and reopen it with another `runner ...` command instead of expecting a long-lived container process to still exist.\n\nThen execute each scenario inside the container with the repo-local runner:\n\n```bash\nrunner bash -lc '\n  cliPath=\u002Fworkspace\u002F.aspire\u002Fbin\u002Faspire\n  hivePath=\u002Fworkspace\u002F.aspire\u002Fhives\u002Fpr-'\"$prNumber\"'\u002Fpackages\n  cliVersion=\"$(\"$cliPath\" --version)\"\n  projectName=ScenarioApp\n  scenarioDir=\u002Fworkspace\u002Fscenario-1\n  appRoot=\"$scenarioDir\u002F$projectName\"\n  appHost=\"$appRoot\u002F$projectName.AppHost\u002F$projectName.AppHost.csproj\"\n  mkdir -p \"$scenarioDir\"\n  \"$cliPath\" new aspire-empty --name \"$projectName\" --output \"$appRoot\" --source \"$hivePath\" --version \"$cliVersion\" ...\n  \"$cliPath\" start --apphost \"$appHost\" ...\n  \"$cliPath\" wait webfrontend --status up --timeout 300 --apphost \"$appHost\"\n  \"$cliPath\" describe --apphost \"$appHost\" ...\n  \"$cliPath\" resource apiservice restart --apphost \"$appHost\" ...\n  \"$cliPath\" stop --apphost \"$appHost\" ...\n'\n```\n\n### 9. Capture Evidence\n\nFor each test scenario, capture:\n\n**Screenshots:**\n- Dashboard resource list showing all resources running\n- Any relevant UI that was modified\n- Error states if applicable\n\n**Logs:**\n- Console output from `aspire run`\n- Any error messages\n- Resource health status\n\n**Commands and Output:**\n```powershell\n# Capture installed CLI version\n& $cliPath --version | Out-File \"$scenarioDir\\version.txt\"\n\n# Capture run output\naspire run 2>&1 | Tee-Object -FilePath \"$scenarioDir\\run-output.txt\"\n```\n\n**VS Code extension evidence:**\n- PR head SHA and extension version from `extension\u002Fpackage.json`.\n- Exact extension commands run (`.\u002Fbuild.sh`, `corepack yarn run test`, focused `corepack yarn run test:e2e`, or manual Extension Development Host steps).\n- CLI path and version used by the extension (`ASPIRE_EXTENSION_E2E_CLI_PATH` when set, or the repo-built CLI path chosen by the E2E runner).\n- E2E artifacts under `extension\u002F.test-results\u002Fe2e\u002F\u003Cshard>\u002F`, `extension\u002F.test-storage\u002F`, `extension\u002F.test-recordings\u002F`, and `extension\u002F.test-workspaces\u002F` when present.\n- Screenshots or VS Code logs for UI command\u002Fview\u002Fdebugger scenarios, especially when no automated E2E assertion exists.\n\n### 10. Generate Detailed Report\n\nWrite the comprehensive report to a markdown file and keep its path in `reportPath` so the same file can be posted in Step 11:\n\n```bash\nreportPath=\"$testDir\u002Fpr-$prNumber-testing-report.md\"\n```\n\n```powershell\n$reportPath = Join-Path $testDir \"pr-$prNumber-testing-report.md\"\n```\n\nUse the following structure:\n\n```markdown\n# PR Testing Report\n\n## PR Information\n- **PR Number:** #12345\n- **Title:** [PR Title]\n- **Head Commit:** abc123...\n- **Tested At:** [DateTime]\n\n## Artifact Version Verification\n- **Expected Commit:** abc123...\n- **Installed Version:** [output of the installed PR CLI binary, VSIX package metadata, or \"N\u002FA - source checkout at head commit\"]\n- **Status:** ✅ Verified \u002F ❌ Mismatch\n\n## Changes Analyzed\n### Files Changed\n- `src\u002FAspire.Cli\u002FCommands\u002FNewCommand.cs` - Modified\n- `src\u002FAspire.Hosting.Redis\u002FRedisResource.cs` - Added\n...\n\n### Change Categories\n- [x] CLI changes detected\n- [ ] Hosting integration changes\n- [x] Dashboard changes\n- [ ] CI infrastructure changes (GitHub Actions \u002F Azure DevOps)\n- [ ] VS Code extension changes\n...\n\n## Test Scenarios Executed\n\n### Scenario 1: [Scenario Name]\n**Objective:** [What this scenario tests]\n**Coverage Type:** Happy path \u002F Unhappy path \u002F Boundary\n**Status:** ✅ Passed \u002F ❌ Failed\n\n**Steps:**\n1. Created new Aspire project\n2. Ran `aspire new`\n3. Modified AppHost to add Redis\n4. Ran `aspire run`\n\n**Evidence:**\n- Screenshot: dashboard-resources.png\n- Log: run-output.txt\n\n**Observations:**\n- All resources started successfully\n- Dashboard displayed Redis resource correctly\n\n**Expected Unhappy-Path Outcome:** [Only for unhappy-path or boundary scenarios: validation error, non-zero exit code, safe failed state, recovery behavior, etc.]\n\n---\n\n### Scenario 2: [Scenario Name]\n...\n\n## CI Infrastructure Validation\n[Include this section only when the PR changes `.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, or CI scripts under `eng\u002F`. See `ci-infra-testing.md` for the full playbook.]\n\n**GitHub Actions:**\n- **What runs on this PR:** [Which path-triggered workflows fired and passed (link runs); which affected workflows could only be validated manually]\n- **Automated tests:** [Which `Infrastructure.Tests` classes ran + result; or \"no automated coverage exists for `\u003Cfile>`\"]\n- **Manual triggers:** [`gh workflow run` invocations, run links, dry-run output, whether run on a fork]\n- **Results validation:** [Per behavioral change, the observable confirmed in a real run — job-log line, artifact path\u002Flayout, binlog target, or skipped job — not just that the run completed; and, for enumeration\u002Fmatrix\u002Fjob changes, that no *fewer* tests\u002Fjobs ran than baseline]\n- **Dependency graph:** [For a changed producing job\u002Fartifact, the consumers traced (same-run `needs:` and cross-workflow\u002Fcross-pipeline downloads) and how each was confirmed — or \"n\u002Fa\"]\n- **gh-aw:** [`gh aw compile --validate --schedule-seed microsoft\u002Faspire` result + post-recompile lock-file diff (ideally empty)]\n- **Failure-modes scan:** [Gotcha rows checked and outcome — including gotchas confirmed *not* to be a problem]\n\n**Azure DevOps (only when pipelines changed):**\n- **Run vs. baseline:** [Baseline def-1602 `buildId` + result, your validation `buildId`(s) + result, artifact set compared, steps confirmed to run (timeline\u002Flog markers), expected contributor-branch skips — or \"n\u002Fa — validated offline via `Infrastructure.Tests`\"]\n\n## Summary\n| Scenario | Status | Notes |\n|----------|--------|-------|\n| Scenario 1 | ✅ Passed | - |\n| Scenario 2 | ❌ Failed | Build error in... |\n\n## Overall Result\n**✅ PR VERIFIED** \u002F **❌ ISSUES FOUND**\n\n### Recommendations\n- [Any recommendations based on test results]\n```\n\nFor a VS Code extension PR, the report should look more like this example than a CLI-only report:\n\n```markdown\n# PR Testing Report\n\n## PR Information\n- **PR Number:** #17864\n- **Title:** Add \"Open Dashboard to the Side\" command\n- **Head Commit:** 37c5f909120ec79d44d6e8306d3ab5cc79f7e554\n- **Tested At:** 2026-06-05T18:30:00Z\n\n## Artifact Version Verification\n- **Expected Commit:** 37c5f909120ec79d44d6e8306d3ab5cc79f7e554\n- **Installed Version:** N\u002FA - tested source checkout at head commit and VSIX built from that checkout\n- **Status:** ✅ Verified\n\n## Changes Analyzed\n### Files Changed\n- `extension\u002Fsrc\u002F...` - VS Code extension command\u002Fview behavior\n\n### Change Categories\n- [ ] CLI changes detected\n- [ ] Hosting integration changes\n- [ ] Dashboard changes\n- [x] VS Code extension changes\n\n## Test Scenarios Executed\n\n### Scenario 1: Extension build and unit validation\n**Objective:** Verify the PR extension source compiles, lints, and passes VS Code unit tests.\n**Coverage Type:** Build\u002Funit validation\n**Status:** ✅ Passed\n\n**Steps:**\n1. Checked out the PR at `\u002Ftmp\u002Faspire-pr17864-test` to avoid VS Code IPC path-length issues.\n2. Ran `.\u002Fbuild.sh` from `extension\u002F` to build the extension and repo Aspire CLI.\n3. Ran `corepack yarn run test`.\n\n**Evidence:**\n- Source checkout: `\u002Ftmp\u002Faspire-pr17864-test`\n- CLI path: `\u002Ftmp\u002Faspire-pr17864-test\u002Fartifacts\u002Fbin\u002FAspire.Cli\u002FDebug\u002Fnet10.0\u002Faspire`\n- Command output: build and unit test logs captured in the test workspace\n\n**Observations:**\n- Extension compile, lint, and VS Code unit tests completed successfully.\n\n---\n\n### Scenario 2: Open Dashboard to the Side in a real Extension Host\n**Objective:** Verify the command works in VS Code with a running AppHost, not just by reading source.\n**Coverage Type:** User-visible E2E\n**Status:** ✅ Passed\n\n**Steps:**\n1. Built the PR VSIX\u002Fsource from the PR checkout.\n2. Started the E2E Extension Host with `ASPIRE_EXTENSION_E2E_CLI_PATH=\u002Ftmp\u002Faspire-pr17864-test\u002Fartifacts\u002Fbin\u002FAspire.Cli\u002FDebug\u002Fnet10.0\u002Faspire`.\n3. Started the fixture AppHost.\n4. Invoked `aspire-vscode.openDashboardToSide`.\n5. Verified the dashboard opened in the side editor group.\n\n**Evidence:**\n- E2E command: `corepack yarn run test:e2e` with a focused `ASPIRE_EXTENSION_E2E_SPEC`\n- E2E state: `extension\u002F.test-results\u002Fe2e\u002F\u003Cshard>\u002Fextension-state.json`\n- VS Code diagnostics: `extension\u002F.test-storage\u002F\u003Cshard>\u002F...`\n\n**Observations:**\n- The Extension Host launched the PR extension and used the expected repo-built CLI.\n- The command opened the Aspire dashboard beside the current editor.\n\n## Summary\n| Scenario | Status | Notes |\n|----------|--------|-------|\n| Extension build and unit validation | ✅ Passed | Source checkout at PR head |\n| Open Dashboard to the Side E2E | ✅ Passed | Real VS Code Extension Host with repo-built CLI |\n\n## Overall Result\n**✅ PR VERIFIED**\n```\n\n### 11. Ask Whether to Post the Report\n\nAfter the test run finishes and the detailed report is generated, ask the user whether to post the report as a PR comment when the run is associated with a GitHub PR (`prNumber` is known). Default the prompt to **Yes**, but do not post anything without explicit user confirmation.\n\nUse whatever interactive prompt mechanism is available in the current agent framework. The prompt should make the default clear, for example:\n\n```markdown\nPost this test report as a comment on PR #12345?\n\nDefault: Yes\n```\n\nIf the user confirms, post the report:\n\n```bash\ngh pr comment \"$prNumber\" --repo microsoft\u002Faspire --body-file \"$reportPath\"\n```\n\nIf the user declines, or if no GitHub PR was resolved, do not post the report. Include the posting status in the final response.\n\n## Error Handling\n\n### Version Mismatch\nIf the installed CLI version doesn't match the PR's head commit:\n```markdown\n## ❌ Version Mismatch Detected\n\n- **Expected (PR head):** abc123def456...\n- **Installed CLI reports:** xyz789...\n\n**Possible causes:**\n1. PR has new commits since the dogfood artifacts were built\n2. Artifact cache is stale\n3. Installation picked up a different version\n\n**Recommendation:** Wait for CI to rebuild artifacts for the latest commit, then retry.\n```\n\n### Missing Dogfood Comment\nIf no \"Dogfood this PR\" comment is found:\n```markdown\n## ❌ No Dogfood Instructions Found\n\nThe PR does not have a \"Dogfood this PR with:\" comment.\n\n**Possible causes:**\n1. PR CI hasn't completed yet\n2. PR is a draft or not from a branch that triggers artifact builds\n3. CI failed to publish artifacts\n\n**Recommendation:** Check the PR's CI status and wait for it to complete.\n```\n\nException: for PRs that only change `extension\u002F`, missing dogfood instructions do not block testing. Test the PR branch source or VSIX instead and record the source checkout commit as the artifact version.\n\n### Bundle extraction or layout validation failure\nIf a fresh PR install fails with messages like `Bundle extraction failed` or `Bundle was extracted ... but layout validation failed`:\n\n1. Capture the exact error output and treat it as a CLI install or bundle failure.\n2. Stop template-based scenarios and report the failure instead of adding repair steps that a normal user would not perform.\n3. Only reach for deeper recovery or debugging steps if the user explicitly asks you to investigate the install or bundle failure itself.\n\n### Unexpected prompt during automation\nIf `aspire new` fails with `Failed to read input in non-interactive mode` or `Cannot show selection prompt since the current terminal isn't interactive`, review the non-interactive flags listed in the \"Important template note\" section above (Step 3) and ensure they are all present. When encountering an unknown prompt, run `aspire new \u003Ctemplate> --help` to discover all available flags. New template options may be added between releases and each one can introduce a new interactive prompt.\n\n### gh CLI authentication failures during local mode\nIf the install script fails with `Failed to get HEAD SHA for PR` or `To get started with GitHub CLI, please run: gh auth login` even though `gh` is authenticated:\n\n1. **Do not override `HOME`, `USERPROFILE`, or `APPDATA`** in the same shell session where you run the install script. The `gh` CLI resolves its auth config from `APPDATA` (Windows) or `HOME` (Unix), and overriding these to an isolated directory makes `gh` appear unauthenticated.\n2. On Windows, use `-InstallPath`, `-SkipPath`, and `-SkipExtension` flags instead of environment variable overrides to isolate the install.\n3. On Unix, use `--install-path`, `--skip-path`, and `--skip-extension` flags instead of overriding `HOME`.\n4. Verify with `gh auth status` in the same terminal before running the install script.\n\n### AppHost selection prompt \u002F no running AppHosts found\nIf `wait`, `describe`, `resource`, or `stop` prompts to select an AppHost or reports that no running AppHosts were found in the current directory, pass `--apphost \u003Cpath>` explicitly to those follow-up commands.\n\n### VS Code extension setup or E2E failures\nIf extension validation fails before the scenario runs:\n1. Capture the failing command and exact output.\n2. For Corepack\u002FYarn registry errors, report it as environment or feed setup unless the PR changed `extension\u002Fpackage.json`, `extension\u002Fyarn.lock`, `.npmrc`, or build scripts.\n3. For `test:e2e` failures, include the diagnostics paths printed by `scripts\u002Frun-e2e.js`. The runner stores state, control files, storage diagnostics, workspaces, and recordings under `extension\u002F.test-results`, `.test-storage`, `.test-workspaces`, and `.test-recordings`.\n4. If `ASPIRE_EXTENSION_E2E_CLI_PATH` is missing or points at the wrong binary, rebuild with `extension\u002Fbuild.sh` \u002F `extension\u002Fbuild.ps1` or set the variable to the intended dogfood\u002Fpublished CLI and rerun.\n5. If VS Code fails before tests start with an IPC socket warning like `IPC handle ... is longer than 103 chars` or `listen EINVAL`, move the checkout to a shorter path and rerun. Treat this as an environment path-length failure, not a PR failure.\n\n### Test Scenario Failures\nDocument failures with full context:\n```markdown\n### Scenario: [Name]\n**Status:** ❌ Failed\n\n**Error:**\n\\```\n[Full error output]\n\\```\n\n**Screenshot:** error-state.png\n\n**Logs:** \n- Console output: [relevant lines]\n- Stack trace: [if applicable]\n\n**Analysis:**\n[What likely caused this failure]\n\n**Impact:**\n[How this affects users of the PR changes]\n```\n\n### 12. Offer Container Inspection\n\nIf testing ran in the repo container runner, ask the user before cleanup whether they want to keep the mounted workspace around for inspection. Use whatever interactive prompt mechanism is available in the current agent framework.\n\nDefault to cleaning up the container workspace.\n\nIf the user chooses to keep it:\n- Do **not** delete `testDir`.\n- Report the workspace path.\n- Include the exact command to reopen a shell in a fresh runner container against the same workspace, for example:\n\n```bash\nrunner bash\n```\n\nor, if you are no longer in the same shell context:\n\n```bash\nASPIRE_PR_WORKSPACE=\"$testDir\" ASPIRE_CONTAINER_USER=0:0 \\\n  .\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.sh bash\n```\n\nOn Windows PowerShell hosts, the reopen command is:\n\n```powershell\n$env:ASPIRE_PR_WORKSPACE = $testDir\n$env:ASPIRE_CONTAINER_USER = \"0:0\"\n.\u002Feng\u002Fscripts\u002Faspire-pr-container\u002Frun-aspire-pr-container.ps1 bash\n```\n\nIf the user chooses cleanup:\n- Remove `testDir` as usual.\n\n## Cleanup\n\nAfter testing completes, clean up temporary directories unless the user explicitly chose to keep the container workspace for inspection:\n\n**PowerShell:**\n\n```powershell\n# Return to original directory\nSet-Location $env:USERPROFILE\n\n# Clean up test directories\nRemove-Item -Path $testDir -Recurse -Force\n```\n\n**bash:**\n\n```bash\ncd ~\nrm -rf \"$testDir\"\n```\n\n## Platform Considerations\n\n### Windows\n- Use PowerShell for commands\n- PR CLI installation: use `get-aspire-cli-pr.ps1` as shown in the dogfood comment (see Step 3)\n- Path separator: `\\`\n\n### Linux\u002FmacOS\n- Use bash for commands\n- PR CLI installation: use `get-aspire-cli-pr.sh` as shown in the dogfood comment (see Step 3)\n- Path separator: `\u002F`\n- Source profile after installation: `source ~\u002F.bashrc` or `source ~\u002F.zshrc`\n\n## Response Format\n\nAfter completing the task, provide:\n\n1. **Brief Summary** - One-line result (Passed\u002FFailed with key finding)\n2. **Full Report** - The detailed markdown report as described above\n3. **Artifacts** - List of captured screenshots and logs with their locations\n4. **PR Comment Status** - Whether the report was posted to the PR, declined, skipped, or failed to post\n5. **Cleanup \u002F Inspection Status** - Whether the temp workspace was removed or retained for inspection, plus the reopen command when retained\n\nExample summary:\n```markdown\n## PR Testing Complete\n\n**Result:** ✅ PR #12345 verified successfully\n\nAll 3 test scenarios passed. The CLI changes in `NewCommand.cs` work as expected. \nDashboard correctly displays the new Redis resource type.\n\n? **Full Report:** See detailed report below\n? **Screenshots:** 4 captured (dashboard-main.png, redis-resource.png, ...)\n? **Logs:** 3 captured (run-output.txt, version.txt, ...)\n? **PR Comment:** Posted to PR #12345\n? **Inspection:** Container workspace cleaned up\n```\n\n## Important Constraints\n\n- **Always use temp directories** - Never create test projects in the repository\n- **Verify version first** - Don't proceed with testing if CLI version doesn't match PR commit\n- **Capture evidence** - Every scenario needs screenshots and\u002For logs\n- **Clean up after** - Remove temp directories when done, unless the user explicitly asked to keep the container workspace for inspection\n- **Document everything** - Detailed reports help PR authors understand results\n- **Test actual changes** - Focus scenarios on what the PR modified\n- **Include unhappy-path cases** - Add targeted negative\u002Fboundary scenarios for changed user-facing behavior, and verify expected safe failures or recovery states\n- **Ask before posting** - If there is a GitHub PR, ask before posting the report as a PR comment; default to yes, but require explicit confirmation\n- **Fresh projects** - Always use `aspire new` for each scenario, don't reuse projects\n- **Container mode** - Prefer the repo-local `.\u002Feng\u002Fscripts\u002Faspire-pr-container` scripts and a fresh temp workspace when Docker is available\n- **Ask before container cleanup** - At the end of a container-mode run, ask whether to keep the mounted workspace around for inspection\n- **Bundle failures** - If template-based commands fail with bundle extraction or layout validation errors after install, capture and report the failure instead of adding non-standard repair steps\n- **Non-interactive project creation** - Follow the flags listed in the \"Important template note\" section (Step 3)\n- **Explicit AppHost path** - Prefer `--apphost \u003Cpath>` for scripted `wait`, `describe`, `resource`, and `stop` commands\n- **PR hive for templates** - Prefer `--source \u003Cpr-hive>` and `--version \u003Cinstalled-version>` when creating projects from the PR build\n- **CI infra PRs** - When the PR changes `.github\u002F**`, `eng\u002Fpipelines\u002F**`, `eng\u002Fcommon\u002F**`, or CI scripts under `eng\u002F`, follow `ci-infra-testing.md` (GitHub Actions track + Azure DevOps track): enumerate every affected workflow\u002Fpipeline, validate the workflows\u002Factions\u002Fscripts\u002Fpipelines and hunt for trigger\u002Fpermission\u002Ffork\u002Fportability\u002Flock-drift gotchas, and for AzDO select the consuming definition on the `dnceng\u002Finternal` mirror via the `azdo-internal` skill — don't dogfood the CLI for infra-only PRs, and don't test skill\u002Fdoc-only edits at all\n",{"name":5,"description":7},"main","cec61ac9b795bbfd9913f0c7196689b0d7a215d7",".agents\u002Fskills\u002Fpr-testing",1039,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire","https:\u002F\u002Faspire.dev","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 00:32:23",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add microsoft\u002Faspire --skill pr-testing",{"tool":68,"command":69},"bunx","bunx skills add microsoft\u002Faspire --skill pr-testing",{"tool":71,"command":72},"pnpm","pnpm dlx skills add microsoft\u002Faspire --skill pr-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpr-testing\u002FSKILL.md",true,[76],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"ci-infra-testing.md","REFERENCE","参考文档",53854,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpr-testing\u002Fci-infra-testing.md",[83,103,123,135,152,177],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":47},"01M6FKZQPMA7VRA0PRBZRDFJTX","vscode-extension","Use when investigating, developing, debugging, testing, or reviewing Aspire VS Code extension behavior under extension\u002F, including extension UI, command, debugger, RPC, DCP, MCP, and CLI-integration issues or features.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvscode-extension\u002FSKILL.md",[],[90,91,26,21,92,46,37,93,35,94,95,96,97,98,99,100,30,101,102],"vscode","vscode extension","MCP","debugging","issues","rpc","ui","integration","debugger","command","behavior","features","when",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":47},"01M6FKZJG81XP80SVWFBJVMDWN","update-container-images","Updates Docker container image tags used by Aspire hosting integrations. Queries registries for newer tags, uses LLM to determine version-compatible updates, and applies changes. Use this when asked to update container image versions.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-container-images\u002FSKILL.md",[],[110,111,112,113,114,115,116,37,117,30,118,28,119,120,121,122,24,102],"container images","update","container","images","update container images","image","docker","integrations","version","queries","tags","updates","for",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":47},"01M6FKZDY1MY0QA62EYSDG5NHW","test-management","Quarantines or disables flaky\u002Fproblematic tests using the QuarantineTools utility","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftest-management\u002FSKILL.md",[],[130,131,132,133,134],"test","management","test management","tests","utility",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":47},"01M6FKZAQ428JX8F6NSA19XBQJ","startup-perf","Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstartup-perf\u002FSKILL.md",[],[142,143,144,46,43,37,145,146,147,148,149,150,151],"perf","startup","startup perf","profiling","capture","profile","export","self","with","traces",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":47},"01M6FKZ4W4J0ET0Q0C2Z30HYRV","reviewing-aspire-architecture","Use only when the user explicitly requests a deep Aspire architectural or pattern review of an existing PR or diff, or when a generic reviewer escalates a named Aspire-domain question it cannot resolve. Do not use for ordinary review, implementation, debugging, explanation, or design discussion—even when a PR is referenced—and never select it from changed file paths alone.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freviewing-aspire-architecture\u002FSKILL.md",[],[159,37,160,161,162,20,93,163,164,165,166,30,167,168,169,170,171,172,173,174,122,175,176,102],"architecture","reviewing aspire architecture","design","review","file","select","reviewer","question","diff","never","only","do","domain","pattern","deep","paths","Existing","generic",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":47},"01M6FKYST0J8GSYXBHH9X77XFR","issue-investigation","Investigates GitHub issues in microsoft\u002Faspire by gathering issue context, routing to specialized skills, preparing the right reproduction environment, reproducing behavior, and drafting evidence-backed findings or insufficient-info comments for user approval. Use when asked to investigate, reproduce, validate, debug, triage, or root-cause an Aspire issue.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fissue-investigation\u002FSKILL.md",[],[184,185,186,45,187,9,188,189,37,190,191,94,192,193,194,100,195,30,196,197,198,199,122,102,200],"investigation","issue","issue investigation","triage","validate","debug","routing","github issues","investigate","specialized","context","environment","evidence","root-cause","info","comments","drafting"]