Skip to content

Remove legacy /review pipeline and automatic reruns - #39027

Closed
kubaflo wants to merge 1 commit into
mainfrom
kubaflo-remove-legacy-review
Closed

kubaflo wants to merge 1 commit into
mainfrom
kubaflo-remove-legacy-review

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

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 /review system and its automatic rerun machinery from the repository.

  • Remove the comment trigger, missed-command recovery, rerun scanner (source and compiled workflow), and Azure DevOps review pipeline.
  • Remove the dedicated orchestrator, AI Summary/finalization publishers, review-label handling, telemetry, deep-test aggregation/retry helpers, and their obsolete tests and fixtures.
  • Remove legacy agent-label categories from the review queue and the retired pipeline's special squash-commit handling from UI category detection.
  • Update documentation and standalone skills to remove deleted dependencies. Keep applicable credential and untrusted-code safeguards in a general automation-security instruction file.
  • Report dropped local verification tests as requiring separate validation instead of promising a follow-up run from the removed pipeline.

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.

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>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 16:40
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39027

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39027"

@azure-pipelines

Copy link
Copy Markdown
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.

@kubaflo
kubaflo had a problem deploying to skill-evaluation-pat-pool September 30, 2026 16:40 — with GitHub Actions Failure
@kubaflo
kubaflo had a problem deploying to skill-evaluation-pat-pool September 30, 2026 16:40 — with GitHub Actions Failure
@kubaflo
kubaflo had a problem deploying to skill-evaluation-pat-pool September 30, 2026 16:40 — with GitHub Actions Failure
@kubaflo
kubaflo had a problem deploying to skill-evaluation-pat-pool September 30, 2026 16:40 — with GitHub Actions Failure
@kubaflo
kubaflo had a problem deploying to skill-evaluation-pat-pool September 30, 2026 16:40 — with GitHub Actions Failure
@github-actions github-actions Bot added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Sep 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Medium severity · 1 Low severity

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`).
@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: 3845d97.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Needs attention Static Passed LLM Needs attention Skills 25 Agents 6

⚠️ Skill Validation Results — 3845d97 · Remove legacy /review pipeline and automatic reruns · 2026-09-30T17:15:31Z

✅ Static Checks Passed

Skills: 25 | Eval specs linted: 16

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⚠️ LLM Evaluation Incomplete

No valid JUnit suite results were found for: agentic-labeler, analyze-sessions, code-review, verify-tests-fail-without-fix.

🔍 Full results and investigation steps

@kubaflo kubaflo closed this Sep 30, 2026
kubaflo added a commit that referenced this pull request Sep 30, 2026
<!-- 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>
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 3, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
copilot-pat-pool — 3845d977 Deployed Sep 30, 2026 by kubaflo via conclusion #2154
skill-evaluation-pat-pool — 3845d977 Deployed Sep 30, 2026 by kubaflo via evaluate (code-review) #25153
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants