Repository navigation
Fix test-failure review baseline, discovery, and reporting - #38689
Conversation
Compare the latest five completed target-branch runs, retain all required pipelines, and distinguish collection gaps from absent results. Use GPT-6 Astra for concise, linked failure attribution with per-failure status emojis. 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 -- 38689Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38689" |
|
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. |
|
@dalexsoto stamp |
Skill Validation Results
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Seven unresolved findings remain, including a critical default shell-access issue and evidence/reporting defects.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Updates /review tests to use target-branch CI history, preserve incomplete evidence, and improve reporting.
Changes:
- Reworks baseline selection and no-results handling.
- Adds direct failure links and scoped runner access.
- Updates models, tests, evaluations, documentation, and workflow lock data.
| File | Summary | Review notes |
|---|---|---|
.github/workflows/copilot-review-tests.md |
Updates workflow instructions and model. | No final comments. |
.github/workflows/copilot-review-tests.lock.yml |
Regenerated workflow lock. | No final comments. |
.github/skills/review-test-failures/tests/eval.vally.yaml |
Updates evaluation scenarios and models. | Moderate, 1 vote: add a word-count assertion. |
.github/skills/review-test-failures/SKILL.md |
Defines evidence handling and report format. | No final comments. |
.github/skills/review-test-failures/scripts/Gather-TestFailureContext.Tests.ps1 |
Adds focused gatherer tests. | No final comments. |
.github/skills/review-test-failures/scripts/Gather-TestFailureContext.ps1 |
Implements evaluation, evidence handling, target history, and links. | Four moderate findings: preserve inaccessible build evidence, pending states, correct follow-up actions, and unverified results. |
.github/skills/azdo-build-investigator/SKILL.md |
Aligns investigator guidance. | No final comments. |
.github/scripts/Review-Tests.Tests.ps1 |
Tests reporting and runner behavior. | No final comments. |
.github/scripts/Review-Tests.ps1 |
Adds scoped model execution and final-response handling. | Critical, 1 vote: remove default bash access. Moderate, 1 vote: prevent legacy compact reports with overall verdicts from publication. |
.github/docs/pr-review-workflow.md |
Documents workflow changes. | No final comments. |
.github/docs/maui-ci-facts.md |
Updates CI investigation guidance. | No final comments. |
| $copilotArgs += "--allow-all" | ||
| } | ||
| else { | ||
| $copilotArgs += @("--available-tools", "view", "rg", "glob", "skill", "bash", "--allow-tool", "shell(jq:*)") |
| '</details>', '', '---', '', | ||
| '<details>', | ||
| '<summary><strong>🧭 Follow-up</strong> — actions and refresh</summary>', '<br/>', '', | ||
| '**Next action:** Comment `/azp run` to run CI (wait if it is already running).', |
) <!-- 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! ### Description of Change Restore the hosted `/review tests` workflow to the known-working GPT model `gpt-5.6-sol` and make failures visible without relying on model execution. After #38689 changed the hosted model to `gpt-6-astra`, seven requests failed in the gh-aw offline/BYOK provider-proxy route with `400 model "gpt-6-astra" is not accessible via the /chat/completions endpoint`. Safe outputs then found zero messages. This is hosted endpoint incompatibility, not a universal GPT-6 outage or evidence of an authentication failure. Local runner/evaluation models and the evidence collection, latest-five target-branch comparison, and report-format improvements remain unchanged. - Add a separate trusted notification job after the agent and safe-output publisher. On analysis/publication failure before a report is posted, it posts fixed text and a run link. No raw logs, agent artifacts, PR checkout, or model-based fallback are involved. - Preserve exact-command and authorization gates, recheck collaborator permissions, validate the target PR, and suppress notices for skipped, irrelevant, unauthorized, canceled, or dry-run runs. - Avoid duplicates using publication outputs and trusted same-run report/notice markers, including reruns. Notification API errors fail the job rather than silently discarding the notice. - Enforce the normal safe-output PR target from trigger/dispatch data and stage publication for `suppress_output=true`. Agent permissions stay read-only. - Regenerate the lock with gh-aw v0.86.2 and add focused compiled-script fixtures and operational documentation. ### Evidence and validation Representative failure: https://github.com/dotnet/maui/actions/runs/35474684145/job/105982598316. Earlier successful `gpt-5.6-sol` run: https://github.com/dotnet/maui/actions/runs/35458573808, which published #36226 (comment). - `gh aw compile copilot-review-tests --strict` passed. - **109 Pester tests passed**, none failed: `Review-Tests.Tests.ps1` and `Review-TestsFailureNotification.Tests.ps1`. - Fixtures execute the compiled notifier against isolated GitHub API mocks: failure, success/already-published, rerun deduplication, dry-run, rejected/irrelevant commands, target validation, and surfaced API errors. - `git diff --check` passed. No live review was dispatched and no comments were posted to the seven affected PRs. Compilation/fixtures do not prove current hosted model availability; the rollback relies on the known-good live run above. ### Issues Fixed Fixes missing follow-up `/review tests` comments after #38689; no separate issue filed. Earlier full AI Summary reviews are unaffected. This automation change is independent of SwipeView PR #38193. ### Maintenance note Do not rely on an agent prompt to report model-startup failure. The notification is deterministic trusted workflow code. With gh-aw v0.86.2, its dependencies explicitly include both `activation` and `pre_activation` to avoid a compiler-generated dependency cycle. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The full script gate exposed two stale expectations left after #38689 switched Review-Tests.ps1 to GPT-6 Astra. Keep the existing model and no-environment-override guards; update only the test expectations. All 2309 workflow Pester checks pass. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The full script gate exposed two stale expectations left after #38689 switched Review-Tests.ps1 to GPT-6 Astra. Keep the existing model and no-environment-override guards; update only the test expectations. All 2309 workflow Pester checks pass. 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!
Summary
maui-pr,maui-pr-devicetests, andmaui-pr-uitests, without a PR-ref baseline, current-run time cutoff, or success-only filter. Fix ordered-dictionary deduplication that dropped main/UI checks./azp runguidance to genuinely absent results. Add scoped read-only artifact access to the local runner, save its final model response, and reject false aggregate skips.gpt-6-astrafor the workflow, local runner, eval, and judge; update documentation, tests, eval specifications, and the generated workflow lock.This focused change contains only 11
.githubfiles based onmain, excluding unrelated DevFlow changes.Validation
gh aw compile copilot-review-tests --strictpassed with gh-aw v0.86.2 and zero warnings; regenerated lockfile unchanged.--validate-only --allow-missing-trusted-control-ref;git diff --checkpassed. Full model-based Vally evaluation was not run because its executable was unavailable.net11.0historical runs were verified. The existing report was corrected and read back exactly. Unresolved snapshot/setup cases remain yellow; not all UI failures were attributed.mainruns per pipeline. No report was posted. Its output remained verbose at 423 words and 23 bullets, so report conciseness is not yet fully resolved.