Repository navigation
Add trusted fast path for extension release PRs - #19608
Adam Ratzman (adamint) merged 11 commits into
Conversation
Adds a dedicated fast path for the bot-authored VS Code extension release PR so it no longer goes through full Copilot review and CI. - .github/actions/is-trusted-extension-release-pr: shared predicate (base=main, same-repo head, aspire-repo-bot[bot] author, extension-release/* head branch) - .github/workflows/copilot-review-dispatch.yml: pull_request_target workflow that requests Copilot review for every PR except the trusted release PR - .github/workflows/extension-unit-tests-reusable.yml: extracted Windows extension unit-test steps, shared by normal CI and the fast path - .github/workflows/ci.yml: classifies the trusted release PR once in prepare_for_ci, adds extension_release_unit_tests fast-path job, skips tests/stabilization_check on that path, updates Final Results - .github/workflows/tests.yml: extension_tests_win now calls the shared reusable workflow Requires a follow-up manual step: remove copilot_code_review from ruleset 3659502 on microsoft/aspire (repo admin only). Addresses microsoft#19581
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19608Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19608" |
There was a problem hiding this comment.
Pull request overview
Adds a trusted fast path for bot-authored VS Code extension release PRs.
Changes:
- Adds shared release-PR classification and Copilot review dispatch.
- Routes trusted releases to extension unit tests only.
- Extracts extension tests into a reusable workflow.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
.github/actions/is-trusted-extension-release-pr/action.yml |
Defines the trust predicate. |
.github/workflows/copilot-review-dispatch.yml |
Dispatches Copilot reviews for ordinary PRs. |
.github/workflows/ci.yml |
Adds fast-path CI routing and result aggregation. |
.github/workflows/extension-unit-tests-reusable.yml |
Provides reusable Windows extension tests. |
.github/workflows/tests.yml |
Calls reusable extension tests and changes CLI validation jobs. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
There was a problem hiding this comment.
The PR follows the design proposed in #19581, but I don't think that a narrow extension-release exception should not replace native Copilot review with a pull_request_target dispatcher for every PR. That creates a repository-wide write-capable failure point, requires an out-of-band ruleset change, and the new pull_request_target workflow does not run from this PR branch, so the behavior being used to replace the native rule is not exercised by this PR's checks.
I would scope this PR to the CI fast path and leave the native Copilot rule in place. If suppressing Copilot review remains mandatory, we should solve that separately at the policy/identity layer rather than reimplementing automatic review in Actions.
The trusted predicate also needs hardening. PR author is fixed when the PR is created and does not identify who pushes later commits. The predicate does not validate the patch, so any later commit that reaches a bot-created release branch continues to match regardless of who pushed it or what it contains. Before allowing the fast path, we need restrictions on who can update these branches plus validation of the expected content—not only filenames, since package.json can change scripts and dependencies.
Please also:
- Remove the unrelated
cli_starter_validation_*rewrite; it references a workflow that is not included and changes normal PR routing. - Prefer a release-only mode in the existing
tests.yml/extension_tests_winpath, with packaging disabled, rather than adding another workflow. - Preserve or update the existing Infrastructure.Tests contracts for extension packaging and selective CI.
- Add behavior tests for trusted and untrusted cases, fallback behavior, patch validation, and
Final Results. - Make
Final Resultsenforce mutually exclusive graphs: the trusted path must skip normal tests/stabilization, while the normal path must skip the fast-path job.
This is blocking for me in its current form.
Adam Ratzman (adamint)
left a comment
There was a problem hiding this comment.
the copilot 'rule' to avoid commenting on placeholder extension release notes should be added to the code review skill that ghcp uses instead of a hard ci change
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Grant the release-only reusable workflow caller the same permissions as the normal test graph, including permissions requested by statically skipped jobs. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Allow bot-authored release PRs to retain the fast path after maintainer finalization, and skip test result aggregation in release-only workflow calls. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0526e1a0-923b-49e5-aee1-354f44d5580f
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Ella Hathaway (ellahathaway)
left a comment
There was a problem hiding this comment.
I rereviewed the updated fast path, including the existing review threads. The earlier CI and trust-boundary issues are addressed: classification runs from the base revision, validates the semantic patch, fails closed to normal CI, and the release-only graph runs the Windows extension unit tests without packaging or the broader build/test graph.
I have two remaining scope and traceability questions. First, the API/ATS exclusions in .agents/skills/code-review/SKILL.md go beyond the release-placeholder exception discussed here. Since api-review is separately invoked against generated API diffs rather than automatically composed into generic source reviews, I would prefer to keep only the placeholder exception in this PR and consider the broader review-policy change separately.
Second, Fixes #19581 will close the issue even though the “do not request Copilot review” requirement was intentionally deferred and native review-on-push remains. It may be better to change the closing keyword or track that remaining requirement separately. It is also worth confirming that .agents/skills/** is consumed by the native review bot; otherwise the placeholder exception may need to live on a native instruction surface.
Neither point changes my assessment of the CI fast-path implementation itself, which otherwise looks sound.
44c3f9f
into
microsoft:main
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s): Suggested actions:
You can re-run the failed jobs from the workflow run page. |
Description
Adds a fail-closed fast path for trusted VS Code extension release PRs.
aspire-repo-bot[bot]PRs targetingmainfromextension-release/v*branches.extension/package.jsonandextension/CHANGELOG.md, a version-only package update, and one matching changelog entry that preserves prior notes.Final Resultscontext still gates the PR.api-reviewskill continues to cover C# API design and compatibility.Normal PR and push behavior is unchanged.
Fixes #19581
Checklist
<remarks />and<code />elements on your triple slash comments?