Skip to content

[CI] Include Build Insights reports in test-review context - #39735

Merged
kubaflo merged 6 commits into
mainfrom
pureween-maui-build-insights-intake
Nov 3, 2026
Merged

kubaflo merged 6 commits into
mainfrom
pureween-maui-build-insights-intake

Conversation

@PureWeen

@PureWeen PureWeen commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

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

Add the first useful Build Insights migration slice to test-review context: collect supplementary GitHub check reports for the exact captured PR head, while retaining direct Azure/Helix acquisition and existing attribution behavior.

  • Accept only the exact build-insights / Build Insights publisher/name pair, with matching head SHA. No legacy publisher support or compatibility aliases.
  • Reuse the existing deadline-bound gh transport. Bound collection to three pages of 100 check runs, eight reports, and 65,536 combined title/summary/text characters per report. Surface transport, response-shape, pagination, missing-body, and truncation errors explicitly.
  • Request filter=all explicitly so earlier same-named reports are considered within the existing caps, rather than silently accepting the check-runs API's latest-only default.
  • Collect supplementary reports only after primary Azure/Helix evidence, target-branch history, and baseline attribution, using the remaining gather budget. A stalled report request cannot consume time needed by those sources. Both no-results shortcuts avoid report acquisition.
  • Add context.buildInsights through Get-BuildInsightsCheckReports, with report metadata, bounded raw bodies, status, timestamps, and collection limitations. Normalize timestamps materialized by ConvertFrom-Json as DateTime or DateTimeOffset.
  • Teach the consumer to treat reports as untrusted supplementary leads, not instructions, proof of coverage across all pipelines, or grounds to dismiss failures as known issues. Pending or missing content is not negative evidence.
  • Add regression coverage and wire the review-test-failures script directory into the existing PowerShell CI gate. Update its coupled suite-discovery assertion to include this third skill-script directory.

This builds on earlier MAUI evidence and known-issue matcher groundwork; it does not imply that groundwork already migrated to Build Insights. This PR does not replace the full collector, change verdict gates, alter raw Azure/Helix acquisition logic, or change attribution and known-build-error matching.

Current local verification (commit 5c6ef8dda7): Pester 5.9.0 across all three review-script suites plus .github/scripts/NotificationCenterScripts.Tests.ps1: 368 passed, 0 failed, 0 skipped. This includes 61 Build Insights cases. All three new regression cases failed against the pre-fix collector at d02e27d0: earlier same-named report retention, primary-before-supplementary ordering, and a stalled supplementary request exhausting the remaining budget. The orchestration tests execute the collector entrypoint with mocked I/O and verify that primary evidence, history, baseline sampling, and attribution survive. git diff --check passed.

Earlier replay evidence: Offline replay of retained October 27 check responses preserved exact head/check/text/build links for historical dotnet/maui#39242 and dotnet/maui#39348, retaining exactly one Build Insights report from each and ignoring the legacy report. That replay is not a fresh independent service check or deployment acceptance and was not rerun for the follow-up fixes.

Hosted validation limitations: No green hosted-CI claim is made for the new commit. At the preceding head, PowerShell CI failed stale model-pin assertions in files unchanged by this PR. Skill validation produced no evaluation results: model probing reported gpt-6-astra unavailable, and its separate harness-hermeticity job failed during checkout. These failures have not been repaired or bypassed by this change.

Issues Fixed

N/A — incremental CI report-intake integration; no linked issue.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 13:41
@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 28, 2026 13:41 — 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 -- 39735

Or

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

@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

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Skill Validation Results

@PureWeen — new skill validation results are available based on this last commit: 2c83812.
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 — 2c83812 · [CI] Include Build Insights reports in test-review context · 2026-11-03T14:23:17Z

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

🔍 Full results and investigation steps

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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

A stalled supplementary check-runs fetch can exhaust the shared deadline before primary collection, causing all Azure builds to be skipped and available Azure/Helix evidence to go uncollected.

1 open issue
What changed in this PR

Adds Build Insights and Build Analysis reports as supplementary evidence in MAUI’s test-review context, while retaining direct Azure/Helix collection and existing attribution rules.

Changes:

  • Collects bounded reports for the captured PR head from exact publisher/check-name pairs, preserving metadata and collection errors.
  • Documents how consumers should handle untrusted, pending, missing, or truncated reports.
  • Adds regression coverage and includes review-test-failures scripts in the PowerShell CI gate.
File Description
.github/​workflows/​powershell-script-tests.yml Adds review-script triggers and test discovery.
.github/​skills/​review-test-failures/​SKILL.md Defines supplementary-report handling and evidence safeguards.
.github/​skills/​review-test-failures/​scripts/​Gather-TestFailureContext.Tests.ps1 Tests report filtering, bounds, errors, timestamps, and context integration.
.github/​skills/​review-test-failures/​scripts/​Gather-TestFailureContext.ps1 Collects reports and includes them in context output.
.github/​docs/​maui-ci-facts.md Documents report intake and its limitations.

Review effort: Balanced

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.

🟢 Approval recommended

No active review issues block the addition of supplementary Build Insights reports to MAUI’s test-review context.

1 open issue

Review effort: Balanced

Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 28, 2026
@azure-pipelines

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

@MauiBot

MauiBot commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@PureWeen — existing-test verification for commit 33a5f176.

Result SKIPPED Platform Android Commit 33a5f176


🧪 Gate analysis — click to expand

⚠ Skipped. No runnable PR tests were selected. The fix has not been verified by this gate.

No interpretable test-group summary was produced. No additional test execution is inferred.

PR head: 33a5f176.

Without-fix baseline: 3fb39af1.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 28, 2026

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

Expert Review — 0 findings

Reviewed commit 33a5f17.

kubaflo
kubaflo previously approved these changes Oct 28, 2026
@kubaflo

This comment has been minimized.

@azure-pipelines

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

Preserve both review-test-failures script discovery and the upstream CI pipeline test discovery entry.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 14:21
@kubaflo

kubaflo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Resolved and pushed the conflict with the current main tip (5f1f8ca618c) in ordinary merge commit 2c83812177b, on the original pureween-maui-build-insights-intake branch.

The only conflict was adjacent entries in the PowerShell workflow's Pester discovery list. Preserved both this PR's .github/skills/review-test-failures/scripts directory and upstream's eng/pipelines/ci.Tests.ps1 entry, exactly once each. The Build Insights intake implementation, its tests and skill instructions are unchanged from the PR head. Read-only workflow permissions and nonpersisted checkout credentials are preserved.

Validation: workflow YAML parsed, both discovery paths exist, embedded Pester-runner PowerShell passed parser validation, and git diff --check passed for the resolution. No pipeline tests were written, and no Pester suite, build, native/device tests or XCTest was run for this discovery-list conflict. Actual workflow execution remains for CI.

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.

🟢 Approval recommended

No active review issues block the supplementary Build Insights reporting changes.

No open issues 🎉

Review effort: Balanced

@kubaflo
kubaflo merged commit 0346fbc into main Nov 3, 2026
15 of 22 checks passed
@kubaflo
kubaflo deleted the pureween-maui-build-insights-intake branch November 3, 2026 14:41

This branch had an error being deployed

1 failed and 1 inactive (outdated) deployments
skill-evaluation-pat-pool — 2c838121 Deployed Nov 3, 2026 by kubaflo via evaluate (review-test-failures) #32131
copilot-pat-pool — 1affecdb Deployed Oct 28, 2026 by PureWeen via conclusion #2562
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.

6 participants