Skip to content

Create CI fix PRs directly without scan issues - #39711

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-ci-scan-prs-only
Oct 28, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-ci-scan-prs-only

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 27, 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

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-net11 issues, 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 only ci-status-main.lock.yml and ci-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:

  • PowerShell Script Tests: 2,217 passed / 3 failed. The failures are unchanged model-pin assertions in CopilotPipeline.Tests.ps1, Review-PR.Tests.ps1, and Review-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 selects gpt-6-astra in the local test reviewer and gpt-6.1-sol in the hosted test reviewer. These unrelated assertions were not changed.
  • Skill Validation: static validation passed; the hermeticity harness stopped during worktree creation with missing Git blob objects and 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.
  • CI-fix Azure DevOps validation dispatcher: passed. This maintenance PR is not an eligible bot-authored fix PR, so this is not evidence that native validation pipelines ran.

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.

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
Copilot AI balanced review requested due to automatic review settings October 27, 2026 18:19
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 27, 2026 18:19 — with GitHub Actions Inactive
@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 -- 39711

Or

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

@azure-pipelines

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

@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

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

Overall Needs attention Static Passed LLM Needs attention Skills 28 Agents 7

⚠️ Skill Validation Results — e19d022 · Create CI fix PRs directly without scan issues · 2026-10-27T18:25:18Z

✅ Static Checks Passed

Skills: 28 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
npm warn deprecated @opentelemetry/sdk-trace-node@2.12.0: Use @opentelemetry/sdk-trace package
npm warn deprecated @opentelemetry/sdk-trace-base@2.12.0: Use @opentelemetry/sdk-trace package
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/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.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: ci-fix.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 27, 2026 18:25 — with GitHub Actions Inactive

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.

🟡 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);
Comment on lines +160 to +161
if (expected.length !== captured.length) {
throw new Error(`Transport registration mismatch for ${type}.`);
@kubaflo

This comment has been minimized.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.

@kubaflo

kubaflo commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit 1f43b50 into main Oct 28, 2026
23 of 29 checks passed
@kubaflo
kubaflo deleted the kubaflo-ci-scan-prs-only branch October 28, 2026 13:29
@github-actions github-actions Bot added this to the .NET 10 SR13 milestone Oct 28, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
copilot-pat-pool — e19d0225 Deployed Oct 27, 2026 by kubaflo via conclusion #2543
skill-evaluation-pat-pool — e19d0225 Deployed Oct 27, 2026 by kubaflo via evaluate (ci-fix) #30973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants