Repository navigation
[CI] Include Build Insights reports in test-review context - #39735
Conversation
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 -- 39735Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39735" |
|
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
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 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
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. |
PR Test Gate |
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 33a5f17.
This comment has been minimized.
This comment has been minimized.
|
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>
|
Resolved and pushed the conflict with the current The only conflict was adjacent entries in the PowerShell workflow's Pester discovery list. Preserved both this PR's Validation: workflow YAML parsed, both discovery paths exist, embedded Pester-runner PowerShell passed parser validation, and |

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.
build-insights/Build Insightspublisher/name pair, with matching head SHA. No legacy publisher support or compatibility aliases.ghtransport. 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.filter=allexplicitly so earlier same-named reports are considered within the existing caps, rather than silently accepting the check-runs API's latest-only default.context.buildInsightsthroughGet-BuildInsightsCheckReports, with report metadata, bounded raw bodies, status, timestamps, and collection limitations. Normalize timestamps materialized byConvertFrom-JsonasDateTimeorDateTimeOffset.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 atd02e27d0: 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 --checkpassed.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-astraunavailable, 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.