Repository navigation
Conversation
Retire the full-review triggers, recovery and rerun queue, AzDO pipeline, and dedicated helpers. Preserve test-failure reviews and standalone skills, removing obsolete integrations and documentation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39027Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39027" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The security guidance misses Azure pipeline scope, references a deleted helper, and removes regression tests for retained automation.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Retires the legacy /review pipeline while preserving standalone review skills, /review tests, and inline-review tooling. The title and description accurately reflect the implementation.
Changes:
- Removes legacy triggers, reruns, orchestration, publishing, telemetry, labels, and deep-UI helpers.
- Updates retained review/test skills for standalone operation.
- Consolidates automation security guidance and recompiles
/review tests.
| File | Description |
|---|---|
eng/scripts/detect-ui-test-categories.ps1 |
Removes prepared-review worktree handling. |
eng/pipelines/common/provision.yml |
Removes legacy gate references. |
.github/workflows/review-trigger-recovery.yml |
Deletes missed-command recovery. |
.github/workflows/powershell-script-tests.yml |
Removes retired pipeline trigger. |
.github/workflows/copilot-review-tests.md |
Updates deduplication documentation. |
.github/workflows/copilot-review-tests.lock.yml |
Regenerates the retained workflow. |
.github/workflows/ci-scan-reconcile.yml |
Points to generalized security guidance. |
.github/skills/verify-tests-fail-without-fix/SKILL.md |
Clarifies local-only reporting. |
.github/skills/verify-tests-fail-without-fix/scripts/Verify-TestsFail.Tests.ps1 |
Updates coverage-limit expectations. |
.github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 |
Removes legacy rerun/deep-stage assumptions. |
.github/skills/pr-review/tests/fixtures/pr-preflight-auth.md |
Deletes pipeline-specific fixture. |
.github/skills/pr-review/tests/eval.gh-auth.vally.yaml |
Deletes obsolete CI-auth evaluation. |
.github/skills/pr-review/SKILL.md |
Makes orchestration caller-controlled. |
.github/skills/pr-finalize/SKILL.md |
Makes publication user-controlled. |
.github/skills/find-reviewable-pr/SKILL.md |
Removes agent-reviewed category. |
.github/skills/find-reviewable-pr/scripts/query-reviewable-prs.ps1 |
Removes agent-label querying and output. |
.github/skills/find-regression-risk/SKILL.md |
Documents standalone execution. |
.github/skills/code-review/tests/eval.inline-findings.vally.yaml |
Generalizes inline-findings evaluation. |
.github/skills/code-review/SKILL.md |
Supports caller-owned publication. |
.github/skills/analyze-sessions/tests/eval.vally.yaml |
Removes legacy provenance reference. |
.github/skills/analyze-sessions/references/design-rationale.md |
Updates evaluation rationale. |
.github/skills/agentic-labeler/tests/eval.vally.yaml |
Retargets fixture to /review tests. |
.github/scripts/shared/Start-Emulator.ps1 |
Removes deep-stage-specific commentary. |
.github/scripts/shared/Reset-DeviceState.ps1 |
Deletes deep-UI reset helper. |
.github/scripts/shared/Prepare-UITestFailureAnalysis.Tests.ps1 |
Deletes retired analysis tests. |
.github/scripts/shared/Prepare-UITestFailureAnalysis.ps1 |
Deletes UI-failure preparation. |
.github/scripts/shared/Invoke-GhCommandWithRetry.Tests.ps1 |
Deletes retired retry tests. |
.github/scripts/shared/Invoke-GhCommandWithRetry.ps1 |
Deletes retired GitHub retry helper. |
.github/scripts/shared/Import-ExpectedPRAgentArtifact.Tests.ps1 |
Deletes import tests. |
.github/scripts/shared/Import-ExpectedPRAgentArtifact.ps1 |
Deletes review-artifact importer. |
.github/scripts/shared/Get-EnvErrorPatterns.ps1 |
Deletes deep-test retry patterns. |
.github/scripts/shared/Get-CategoryFromArtifactName.ps1 |
Deletes artifact category helper. |
.github/scripts/shared/Get-AggregatedTrxFromDirectory.ps1 |
Deletes TRX aggregation helper. |
.github/scripts/shared/Export-ExpectedPRAgentArtifact.Tests.ps1 |
Deletes export tests. |
.github/scripts/shared/Escape-Html.ps1 |
Deletes obsolete escaping helper. |
.github/scripts/shared/Analyze-UITestFailures.Tests.ps1 |
Deletes AI failure-analysis tests. |
.github/scripts/shared/Aggregate-UITestArtifacts.ps1 |
Deletes deep-UI artifact aggregation. |
.github/scripts/Review-Tests.ps1 |
Updates security commentary. |
.github/scripts/Remove-StaleMauiBotComments.Tests.ps1 |
Deletes legacy summary cleanup tests. |
.github/scripts/Query-RerunReadyPRs.ps1 |
Deletes rerun scanner query. |
.github/scripts/Query-CiFixPRs.ps1 |
Removes retired publisher reference. |
.github/scripts/post-pr-finalize-comment.ps1 |
Deletes finalize publisher. |
.github/scripts/Invoke-RerunReviewTrigger.ps1 |
Deletes rerun dispatcher. |
.github/scripts/Find-RegressionRisks.ps1 |
Generalizes downstream result wording. |
.github/scripts/DetectUITestCategories.Tests.ps1 |
Removes squash-worktree tests. |
.github/scripts/CopilotPipeline.Tests.ps1 |
Deletes pipeline regression suite. |
.github/scripts/BuildAndRunHostApp.ps1 |
Removes deep-stage-specific wording. |
.github/scripts/Aggregate-CopilotTokenUsage.Tests.ps1 |
Deletes telemetry tests. |
.github/pr-review/pr-report.md |
Uses pre-flight review output; removes labels. |
.github/pr-review/pr-preflight.md |
Generalizes authentication guidance. |
.github/pr-review/pr-gate.md |
Documents standalone gate execution. |
.github/instructions/ci-copilot-pipeline-security.instructions.md |
Deletes pipeline-specific security rules. |
.github/instructions/automation-security.instructions.md |
Adds generalized automation safeguards. |
.github/docs/trigger-azdo-pipeline-setup.md |
Deletes legacy trigger setup guide. |
.github/docs/maui-ci-facts.md |
Removes retired gate-label reference. |
.github/docs/agent-labels.md |
Deletes legacy label documentation. |
.github/copilot-instructions.md |
Documents standalone PR review operation. |
| @@ -0,0 +1,40 @@ | |||
| --- | |||
| description: "Security rules for automation that analyzes or executes untrusted PR content." | |||
| applyTo: "eng/scripts/detect-ui-test-categories.ps1,.github/scripts/**,.github/pr-review/**,.github/skills/pr-review/**,.github/skills/verify-tests-fail-without-fix/**,.github/skills/try-fix/**,.github/skills/run-device-tests/**,.github/workflows/**" | |||
| 7. **Keep agentic workflows read-only.** Route writes through validated safe | ||
| outputs. Pin the gh-aw compiler version and regenerate the matching `.lock.yml` | ||
| whenever a workflow source changes. Dispatch workflows must restore trusted | ||
| `.github/` content before using it (see `Checkout-GhAwPr.ps1`). |
Skill Validation Results
|
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Scope Remove **only** the old `/review rerun` machinery: the hourly scanner and its compiled workflow, rerun eligibility/query/dispatch scripts, obsolete rerun tests, and rerun queue label handling/documentation. The command was already rejected by the manual trigger; keep those rejection guards so it cannot accidentally start a normal review. **Preserved:** manual `/review` with platform/branch options and `workflow_dispatch`, missed-command recovery, `eng/pipelines/ci-copilot.yml`, the full review orchestrator and reporting/label helpers, `/review tests`, standalone review skills, and the unrelated daily `pr-review-queue.yml` report. Recovery previously imported parsing/date/permission helpers from the rerun eligibility script. Move only its seven required functions into `shared/ReviewCommandHelpers.ps1`, without changing their executable implementations, and relocate their existing tests into the recovery suite. The only change to `Review-PR.ps1` replaces obsolete `/review rerun` retry advice with `/review`. This is a fresh branch from `main`, not a reuse of the broad removal in closed, unmerged #39027. ## Validation - 258 existing local checks passed across manual trigger, recovery (including relocated helper checks), labels, `/review tests`, and AI Summary reporting. - Including the broader local `Review-PR.Tests.ps1` suite: 344 passed, one pre-existing model assertion failed. - Actual [PowerShell Script Tests CI run](https://github.com/dotnet/maui/actions/runs/36753179656): **2,201 passed, 2 failed**. Both failures expect `$model = "gpt-5.6-sol"`, while `Review-Tests.ps1` already uses `gpt-6-astra` on the base commit. They are `CopilotPipeline.Tests.ps1:70` and `Review-PR.Tests.ps1:328`; both test files and `Review-Tests.ps1` are byte-for-byte unchanged from `main` at this branch's base. These unrelated baseline failures are deliberately not fixed here. - PowerShell parsing passed; token comparison confirmed all seven extracted function implementations match `main`. - `actionlint` reports only the existing empty platform-choice warning, reproduced on `main`; with that warning excluded, the manual trigger, recovery, and daily report validate. - `git diff --check` passed; no remaining rerun machinery/queue references, apart from intentional command rejection and negative assertions. No new pipeline/YAML tests were added. The scanner source and generated lock are deleted together; no surviving gh-aw workflow needs recompilation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>


Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Retire the legacy full
/reviewsystem and its automatic rerun machinery from the repository.Preserved:
/review tests, its local runner, standalone code-review/PR-review/PR-finalize and test-verification skills, inline-review publishing, and the normal MAUI build/device/UI-test pipelines. The retained test-review workflow is recompiled; its execution behavior is unchanged.This is a repository cleanup. Existing GitHub comments/labels and externally configured Azure DevOps resources are not deleted.
Issues Fixed
N/A - retirement of legacy review automation.