Repository navigation
Create CI fix PRs directly without scan issues - #39711
Conversation
Replace issue publication with shared branch-scoped scan-and-fix workflows. Keep frozen CI evidence, bounded safe-output transport, PR ownership and validation dispatch while disabling issue-based schedules and all diagnostic issue creation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6d407bf0-e1aa-49de-b82c-ce735eeeaccc
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39711Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39711" |
|
Azure Pipelines: 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. |
Skill Validation Results
|
There was a problem hiding this comment.
🟡 Changes recommended
Valid completed Helix jobs can block scanning, and failed transport validation does not prevent publication.
2 open issues
What changed in this PR
Moves MAUI’s scheduled CI automation from tracking issues to direct, branch-scoped fix PR creation and maintenance. No native MAUI code changes are included.
Changes:
- Adds a shared scan-and-fix protocol with frozen build evidence, fingerprint-based ownership, bounded retries, and staged dry runs.
- Extends Azure DevOps validation dispatch to scanner-created PRs.
- Makes legacy fixers manual-only, disables issue reporting, and removes retired scanner test infrastructure.
| File | Description |
|---|---|
.github/workflows/shared/ci-scan-fix.md |
Adds shared discovery, validation, and PR-maintenance protocol. |
.github/workflows/ci-status-fix.md |
Makes the main legacy fixer manual-only and disables issue reporting. |
.github/workflows/ci-status-fix.lock.yml |
Regenerates the main legacy fixer workflow. |
.github/workflows/ci-status-fix-net11.md |
Makes the net11 legacy fixer manual-only and disables issue reporting. |
.github/workflows/ci-status-fix-net11.lock.yml |
Regenerates the net11 legacy fixer workflow. |
.github/workflows/ci-fix-azdo-validation.yml |
Triggers validation reconciliation after scanner runs. |
.github/skills/ci-fix/SKILL.md |
Adds issue-free discovery and ownership guidance. |
.github/scripts/Queue-CiFixAzdoValidation.ps1 |
Adds scanner workflows to the trusted allowlist. |
.github/scripts/Get-CiScanBuildEvidence.cjs |
Adds shared frozen build and Helix evidence collection. |
.github/scripts/CiScanTwins.Helpers.ps1 |
Removes legacy publisher test-discovery helpers. |
.github/scripts/CiScanTrustedInventory.Tests.ps1 |
Removes the previous collector regression suite. |
.github/scripts/CiScanReconcile.Core.Tests.ps1 |
Removes retired publisher marker checks. |
.github/scripts/CiScanReconcile.Core.ps1 |
Clarifies the legacy fingerprint contract in documentation. |
.github/scripts/CiScanMutation.Tests.ps1 |
Removes retired scanner mutation tests. |
.github/docs/trigger-azdo-pipeline-setup.md |
Documents scanner-triggered validation reconciliation. |
.github/docs/maui-ci-facts.md |
Documents direct fixes and legacy workflow boundaries. |
Review effort: Balanced
| const counts = details?.WorkItems; | ||
| const initialCount = Number(details?.InitialWorkItemCount); | ||
| const finishedCount = Number(counts?.Finished); | ||
| const pendingCounts = [counts?.Unscheduled, counts?.Waiting, counts?.Running].map(Number); |
| if (expected.length !== captured.length) { | ||
| throw new Error(`Transport registration mismatch for ${type}.`); |
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. |
|
@dalexsoto stamp |

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
Replace the main/net11 CI scanners' issue-publication path with direct, branch-scoped fix PR creation and maintenance. Both workflows use a shared protocol and the existing bounded safe-output transport: real validated source/test fixes only, stable PR fingerprints, one PR operation per run, same-PR follow-ups with a ten-attempt limit, and manual dry runs enforced through staged outputs.
Preserve frozen latest-build evidence, failed-leaf coverage, and hidden Helix device-test failures. Extend the trusted Azure DevOps dispatcher's workflow-run allowlist so scanner-created PR heads receive validation even when GITHUB_TOKEN suppresses PR events. Keep the old issue-driven fixers manual-only, disable every diagnostic/no-op/missing-data/incomplete issue reporter, and retire the removed issue publisher/manifest validator and its coupled tests. No new pipeline tests were added.
Operational cleanup: closed all 12 open bot-generated
ci-scan/ci-scan-net11issues, leaving the human-authored planning issue #35978 untouched. All four existing scanner/fixer workflows are currently disabled to prevent old default-branch code from filing new issues while this PR awaits merge. After merge, re-enable onlyci-status-main.lock.ymlandci-status-net11.lock.yml; keep the legacy issue-driven fixers disabled unless needed for a manual compatibility run.Validation:
gh aw compile ci-status-main ci-status-net11 ci-status-fix ci-status-fix-net11 --strict --no-check-update— passed; all four lock files regenerated, zero compiler warnings.actionlint -oneline -ignore 'unexpected key "queue" for "concurrency"' -ignore 'property "aw" is not defined' -ignore 'SC2129:style:36:1' .github/workflows/ci-status-main.lock.yml .github/workflows/ci-status-net11.lock.yml .github/workflows/ci-status-fix.lock.yml .github/workflows/ci-status-fix-net11.lock.yml .github/workflows/ci-fix-azdo-validation.yml— passed. The three excluded diagnostics were independently reproduced against the unchanged base-branch compiled fixer: compiler-emitted queue/context fields unsupported by the installed linter and an existing shared PAT-pool shell-style warning.node --check .github/scripts/Get-CiScanBuildEvidence.cjs— passed.pwsh -NoLogo -NoProfile -Command 'Import-Module Pester -RequiredVersion 5.9.0; $r = Invoke-Pester -Path .github/scripts/Queue-CiFixAzdoValidation.Tests.ps1,.github/scripts/Query-CiFixPRs.Tests.ps1,.github/scripts/Test-CiFixTransport.Tests.ps1,.github/scripts/Register-CiFixSafeOutputExpectation.Tests.ps1 -Output Normal -PassThru; if ($r.FailedCount -gt 0) { exit 1 }'— passed, 150 existing checks.pwsh -NoLogo -NoProfile -Command 'Import-Module Pester -RequiredVersion 5.9.0; $r = Invoke-Pester -Path .github/scripts/CiScanReconcile.Core.Tests.ps1,.github/scripts/Invoke-CiScanReconcile.Tests.ps1 -Output Normal -PassThru; if ($r.FailedCount -gt 0) { exit 1 }'— passed, 514 retained legacy checks.git diff --check— passed.Live PR CI:
CopilotPipeline.Tests.ps1,Review-PR.Tests.ps1, andReview-Tests.Tests.ps1, all expecting GPT-5.6 Sol.git diff --exit-code b20099cf14ba63d3bea537fa7dc21f2c9474ce53 HEAD -- .github/scripts/CopilotPipeline.Tests.ps1 .github/scripts/Review-PR.Tests.ps1 .github/scripts/Review-Tests.Tests.ps1 .github/scripts/Review-Tests.ps1 .github/workflows/copilot-review-tests.md .github/workflows/copilot-review-tests.lock.yml .github/skills/review-test-failures/tests/eval.vally.yaml— passed, confirming the failing tests and their model-policy inputs are identical to the base. The base already selectsgpt-6-astrain the local test reviewer andgpt-6.1-solin the hosted test reviewer. These unrelated assertions were not changed.fatal: Could not reset index file to revision 'HEAD', before executing the harness. The separate ci-fix evaluation was still running when inspected; no pass is claimed.The new scheduled agent path has not run live: activation is restricted to the trusted main ref, so end-to-end rollout verification must follow merge. No native MAUI code changed.
Issues Fixed
N/A — maintainer-requested automation change; no new tracking issue. All 12 open bot-generated CI-scan findings were closed separately.