Skip to content

Fix test-failure review baseline, discovery, and reporting - #38689

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-test-review-fixes
Sep 19, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-test-review-fixes

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 19, 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!

Summary

  • Compare the latest five completed runs of the exact PR target branch for each of maui-pr, maui-pr-devicetests, and maui-pr-uitests, without a PR-ref baseline, current-run time cutoff, or success-only filter. Fix ordered-dictionary deduplication that dropped main/UI checks.
  • Distinguish omitted, inaccessible, and unverified evidence from genuinely absent results; retain build failures and restrict fast skips and /azp run guidance to genuinely absent results. Add scoped read-only artifact access to the local runner, save its final model response, and reject false aggregate skips.
  • Preserve the styled Scope/Commit header, CI Analysis and Follow-up accordions, and three pipeline sections without an overall verdict/summary. Require direct failure links and red related, green unrelated, and yellow Needs human investigation labels. Use gpt-6-astra for the workflow, local runner, eval, and judge; update documentation, tests, eval specifications, and the generated workflow lock.

This focused change contains only 11 .github files based on main, excluding unrelated DevFlow changes.

Validation

  • All 261 focused Pester tests passed in the clean-base worktree, with no failures or skipped tests.
  • gh aw compile copilot-review-tests --strict passed with gh-aw v0.86.2 and zero warnings; regenerated lockfile unchanged.
  • Ruby static eval-spec validation passed with --validate-only --allow-missing-trusted-control-ref; git diff --check passed. Full model-based Vally evaluation was not run because its executable was unavailable.
  • Live validation on [Android] Enable native edge-to-edge and fix dynamic system bar icon colors #36226 replayed all 140 frozen checks and recovered builds 1602706, 1602707, and 1602708. The main-pipeline failed-result endpoint returned zero results without truncation; UI failed outcomes and five comparable net11.0 historical runs were verified. The existing report was corrected and read back exactly. Unresolved snapshot/setup cases remain yellow; not all UI failures were attributed.
  • An additional GPT-6 Astra dry-run on [Android] Fix stale bottom safe area after Shell tab navigation with TabBarIsVisible=False #36474 found all three pipelines and five completed main runs per pipeline. No report was posted. Its output remained verbose at 423 words and 23 bullets, so report conciseness is not yet fully resolved.

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>
Copilot AI lite review requested due to automatic review settings September 19, 2026 22: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 -- 38689

Or

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

@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.

@kubaflo

kubaflo commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: 2bb5260.
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 — 2bb5260 · Fix test-failure review baseline, discovery, and reporting · 2026-09-19T22:42:54Z

✅ Static Checks Passed

Skills: 25 | Eval specs linted: 17

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/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: review-test-failures.

🔍 Full results and investigation steps

@kubaflo
kubaflo merged commit 151e160 into main Sep 19, 2026
20 of 27 checks passed
@kubaflo
kubaflo deleted the kubaflo-test-review-fixes branch September 19, 2026 22:44
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 19, 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

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

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>&#x1F9ED; Follow-up</strong> &#x2014; actions and refresh</summary>', '<br/>', '',
'**Next action:** Comment `/azp run` to run CI (wait if it is already running).',
kubaflo added a commit that referenced this pull request Sep 20, 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!

### 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>
kubaflo added a commit that referenced this pull request Sep 24, 2026
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>
github-actions Bot pushed a commit that referenced this pull request Sep 25, 2026
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>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 20, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
copilot-pat-pool — 2bb52600 Deployed Sep 19, 2026 by kubaflo via conclusion #1975
skill-evaluation-pat-pool — 2bb52600 Deployed Sep 19, 2026 by kubaflo via Harness hermeticity gate #23797
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants