Repository navigation
[main] Update dependencies from dotnet/xharness - #35488
dotnet-maestro[bot] wants to merge 9 commits into
Conversation
…60514.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26264.1
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35488Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35488" |
|
/review -b feature/refactor-copilot-yml |
|
/review -b feature/refactor-copilot-yml |
|
/review -b feature/refactor-copilot-yml -p ios |
This comment has been minimized.
This comment has been minimized.
…60612.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26312.1
|
/review rerun |
…60619.2 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26319.2
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 1 findings
See inline comments for details.
| <MicrosoftDotNetXHarnessTestRunnersXunitVersion>11.0.0-prerelease.26230.4</MicrosoftDotNetXHarnessTestRunnersXunitVersion> | ||
| <MicrosoftDotNetXHarnessCLIVersion>11.0.0-prerelease.26230.4</MicrosoftDotNetXHarnessCLIVersion> | ||
| <MicrosoftDotNetXHarnessTestRunnersCommonVersion>11.0.0-prerelease.26319.2</MicrosoftDotNetXHarnessTestRunnersCommonVersion> | ||
| <MicrosoftDotNetXHarnessTestRunnersXunitVersion>11.0.0-prerelease.26319.2</MicrosoftDotNetXHarnessTestRunnersXunitVersion> |
There was a problem hiding this comment.
[major] Build & MSBuild — This updates MicrosoftDotNetXHarnessTestRunnersXunitVersion, but the actual device-test projects still reference Microsoft.DotNet.XHarness.TestRunners.Xunit with the hard-coded 1.0.0-prerelease.21558.2 package version (src/TestUtils/src/DeviceTests*/ and src/Core/tests/DeviceTests.Shared). As a result the dependency-flow metadata says XHarness.TestRunners.Xunit was updated while Android device tests continue restoring the old runner, so the fix is ineffective. Please wire those consumers to this property and coordinate the required xUnit package versions so restore succeeds.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@dotnet-maestro[bot] — new AI review results are available based on this last commit:
134701b.
Update dependencies from https://github.com/dotnet/xharness build 20260619.2 To request a fresh review after new comments or commits, comment/review rerun.
Review Sessions — click to expand
Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
Pre-Flight — Context & Validation
Issue: N/A - Automated dependency update from dotnet/xharness
PR: #35488 - [main] Update dependencies from dotnet/xharness
Platforms Affected: android device-test infrastructure (also all device-test platforms by shared project graph)
Files Changed: 3 implementation/config, 0 test
Key Findings
- PR updates XHarness CLI/test-runner dependency metadata from
11.0.0-prerelease.26230.4to11.0.0-prerelease.26319.2. - The actual device-test projects still hard-code
Microsoft.DotNet.XHarness.TestRunners.Xunitversion1.0.0-prerelease.21558.2, so the runner update is not consumed. - Gate was skipped before this phase because no tests were detected in the PR.
Code Review Summary
Verdict: NEEDS_CHANGES
Confidence: medium
Errors: 1 | Warnings: 0 | Suggestions: 0
Key code review findings:
- ❌
MicrosoftDotNetXHarnessTestRunnersXunitVersionis updated ineng/Versions.props, but three device-test.csprojfiles hard-codeMicrosoft.DotNet.XHarness.TestRunners.Xunitversion1.0.0-prerelease.21558.2.
Fix Candidates
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| PR | PR #35488 | Update XHarness metadata in .config/dotnet-tools.json, eng/Version.Details.xml, and eng/Versions.props. |
.config/dotnet-tools.json, eng/Version.Details.xml, eng/Versions.props |
Original PR; incomplete because runner consumers remain hard-coded. |
Code Review — Deep Analysis
Code Review — PR #35488
Independent Assessment
What this changes: Three configuration/metadata files are updated in lockstep to bump the XHarness dependency from 11.0.0-prerelease.26230.4 / SHA 92962e5c46 to 11.0.0-prerelease.26319.2 / SHA a0534aec8f: .config/dotnet-tools.json, eng/Version.Details.xml, and eng/Versions.props. The three files are internally consistent. No MAUI runtime code changed.
Inferred motivation: Routine Maestro automated dependency flow from dotnet/xharness main, consuming xharness build 20260619.2.
Reconciliation with PR Narrative
Author claims: Automated Maestro PR updating Microsoft.DotNet.XHarness.CLI, Microsoft.DotNet.XHarness.TestRunners.Common, and Microsoft.DotNet.XHarness.TestRunners.Xunit from 11.0.0-prerelease.26230.4 to 11.0.0-prerelease.26319.2.
Agreement/disagreement: The diff matches the claim exactly for dependency metadata, but the device-test project consumers still hard-code Microsoft.DotNet.XHarness.TestRunners.Xunit version 1.0.0-prerelease.21558.2, so the runner package update is not actually consumed by those projects.
Prior Review Reconciliation
| Prior ❌ Error Finding | Source | Status | Evidence |
|---|---|---|---|
MicrosoftDotNetXHarnessTestRunnersXunitVersion is updated in Versions.props but device-test projects hard-code PackageReference Version="1.0.0-prerelease.21558.2". |
MauiBot inline review / code-review sub-agent | ❌ Unresolved in PR | Verified in src/TestUtils/src/DeviceTests/TestUtils.DeviceTests.csproj, src/TestUtils/src/DeviceTests.Runners/TestUtils.DeviceTests.Runners.csproj, and src/Core/tests/DeviceTests.Shared/Core.DeviceTests.Shared.csproj. |
Blast Radius Assessment
- Runs for all instances: N/A — tooling/test infrastructure only.
- Startup impact: No MAUI app startup/runtime path.
- Static/shared state: No.
CI Status
- Required-check result: undetermined locally;
ghwas unauthenticated. Public API/check context showed failing Build Analysis on PR head, classified by the code-review sub-agent as unrelated CollectionView UI test infrastructure flakes. - Classification: undetermined/pre-existing flakes; not attributable to these dependency metadata changes.
- Action taken: confidence capped due CI/tooling uncertainty.
Findings
❌ Error — XHarness runner version properties are not consumed by device-test projects
eng/Versions.props updates MicrosoftDotNetXHarnessTestRunnersXunitVersion and MicrosoftDotNetXHarnessTestRunnersCommonVersion, but the device-test projects that compile the test runner still use Version="1.0.0-prerelease.21558.2" for Microsoft.DotNet.XHarness.TestRunners.Xunit.
Failure-Mode Probing
- What happens if Android device tests run with the new CLI but old embedded runner? The CLI and runner can diverge in result protocol/format across the five-year version gap, risking broken or misleading test execution/reporting.
- Is the CLI update effective? Yes,
.config/dotnet-tools.jsonupdates the tool manifest. - Is the runner package update effective? No, not until the
.csprojconsumers use the central property.
Verdict: NEEDS_CHANGES
Confidence: medium
Summary: The metadata update is internally consistent but incomplete: actual device-test runner package consumers remain pinned to a 2021 prerelease. Alternative fix exploration should wire the consumers and account for any dependency graph conflicts exposed by the newer runner.
Fix — Analysis & Comparison
Fix Candidates
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| 1 | try-fix | Wire device-test projects to $(MicrosoftDotNetXHarnessTestRunnersXunitVersion). |
❌ FAIL | 3 files | Exposed NU1107/NU1605 xUnit 2.9.0 vs 2.9.3 dependency conflicts. |
| 2 | try-fix | Wire device-test projects and align central xUnit package properties to 2.9.3. | ✅ PASS | 4 files | Android Core device-test BuildOnly succeeded; fixes actual runner consumption and dependency graph. |
| PR | PR #35488 | Update XHarness dependency metadata only. | 3 files | Original PR leaves actual runner consumers pinned to 1.0.0-prerelease.21558.2. |
Cross-Pollination
| Model | Round | New Ideas? | Details |
|---|---|---|---|
| maui-expert-reviewer | 1 | Yes | Candidate 1: consume the central XHarness runner property in device-test projects. |
| maui-expert-reviewer | 2 | Yes | Candidate 2: incorporate Candidate 1 restore failure by aligning xUnit package properties to 2.9.3. |
Exhausted: No — stopped because Candidate #2 passed the available Android validation and is demonstrably better than the PR's metadata-only fix.
Selected Fix: Candidate #2 — it updates the actual device-test package consumers and resolves the xUnit dependency graph required by XHarness 11.0.0-prerelease.26319.2.
Report — Final Recommendation
Comparative Report — PR #35488
Candidates compared
| Rank | Candidate | Regression / validation result | Assessment |
|---|---|---|---|
| 1 | pr-plus-reviewer |
Inherits the passing Android BuildOnly evidence from equivalent try-fix-2 |
Best candidate. It preserves the PR's XHarness dependency-flow update, applies the expert reviewer's required consumer wiring, and aligns the xUnit graph required by the new runner. |
| 2 | try-fix-2 |
✅ PASS — Android Core device-test BuildOnly | Technically equivalent corrective fix to pr-plus-reviewer, but ranked below because pr-plus-reviewer is the PR fix plus expert feedback applied as the review candidate. |
| 3 | pr |
Incomplete. It updates dependency metadata/properties but leaves actual device-test projects hard-coded to Microsoft.DotNet.XHarness.TestRunners.Xunit 1.0.0-prerelease.21558.2, so the new runner is not consumed. |
|
| 4 | try-fix-1 |
❌ FAIL — restore failed with NU1107/NU1605 | Correctly identified the missing consumer wiring, but failed because it did not align central xUnit package versions with the new XHarness runner's dependency graph. Failed candidates must rank below passing candidates. |
Analysis
The raw PR updates XHarness versions in .config/dotnet-tools.json, eng/Version.Details.xml, and eng/Versions.props, but it stops at metadata. The expert reviewer confirmed the central issue: MicrosoftDotNetXHarnessTestRunnersXunitVersion is updated while the actual device-test projects still restore an old hard-coded runner package.
try-fix-1 demonstrated that replacing the hard-coded runner package references with $(MicrosoftDotNetXHarnessTestRunnersXunitVersion) is necessary but not sufficient; restore fails because the new XHarness runner expects xUnit 2.9.3 while the repository remains centrally pinned to 2.9.0.
try-fix-2 completes the dependency graph by both wiring the consumers and updating the central xUnit package properties to 2.9.3. That candidate passed the available Android BuildOnly validation.
pr-plus-reviewer applies the same corrective shape as try-fix-2 on top of the PR as the expert-review-enhanced candidate. It is therefore the best candidate: it keeps the dependency-flow update from the PR, incorporates the actionable reviewer feedback, and has equivalent validation evidence to the passing try-fix candidate.
Winner
Winner: pr-plus-reviewer
Rationale: It is the PR fix with expert reviewer feedback applied, and it resolves the raw PR's functional gap by ensuring Android device-test projects actually consume the updated XHarness runner. The candidate also includes the xUnit alignment proven necessary by try-fix-1 and validated by try-fix-2's passing Android BuildOnly result.
Future Action — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
…60703.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26353.1
…60710.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26360.1
…60718.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26368.1
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
…60720.1 On relative base path root Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 11.0.0-prerelease.26230.4 -> To Version 11.0.0-prerelease.26370.1
This pull request updates the following dependencies
From https://github.com/dotnet/xharness