Skip to content

[main] Update dependencies from dotnet/xharness - #35488

Closed
dotnet-maestro[bot] wants to merge 9 commits into
mainfrom
darc-main-6a1e8005-f556-4791-bfe8-44f81eccde28
Closed

dotnet-maestro[bot] wants to merge 9 commits into
mainfrom
darc-main-6a1e8005-f556-4791-bfe8-44f81eccde28

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the following dependencies

From https://github.com/dotnet/xharness

…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
@github-actions

github-actions Bot commented May 18, 2026 •

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 -- 35488

Or

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

@kubaflo

kubaflo commented May 24, 2026

Copy link
Copy Markdown
Contributor

/review -b feature/refactor-copilot-yml

@MauiBot MauiBot added s/agent-review-incomplete s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels May 24, 2026
kubaflo
kubaflo previously approved these changes May 25, 2026
@kubaflo

kubaflo commented May 28, 2026

Copy link
Copy Markdown
Contributor

/review -b feature/refactor-copilot-yml

@kubaflo

kubaflo commented May 30, 2026

Copy link
Copy Markdown
Contributor

/review -b feature/refactor-copilot-yml -p ios

@MauiBot

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

kubaflo commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

/review rerun

@github-actions github-actions Bot added the s/agent-ready-for-rerun AI review has a new PR-author comment or commit and is ready for rerun label Jun 16, 2026
…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
@github-actions github-actions Bot added s/agent-review-in-progress AI review is currently running for this PR and removed s/agent-ready-for-rerun AI review has a new PR-author comment or commit and is ready for rerun labels Jun 23, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 1 findings

See inline comments for details.

Comment thread eng/Versions.props Outdated
<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>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Gate Skipped Code Review In Review Confidence Medium Platform Android Device

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.4 to 11.0.0-prerelease.26319.2.
  • The actual device-test projects still hard-code Microsoft.DotNet.XHarness.TestRunners.Xunit version 1.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:

  • ❌ MicrosoftDotNetXHarnessTestRunnersXunitVersion is updated in eng/Versions.props, but three device-test .csproj files hard-code Microsoft.DotNet.XHarness.TestRunners.Xunit version 1.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. ⚠️ SKIPPED (Gate: no tests detected) .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; gh was 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.json updates the tool manifest.
  • Is the runner package update effective? No, not until the .csproj consumers 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. ⚠️ SKIPPED (Gate: no tests detected) 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 ⚠️ SKIPPED — gate found no tests 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.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jun 23, 2026
…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
@github-actions github-actions Bot added s/agent-ready-for-rerun AI review has a new PR-author comment or commit and is ready for rerun s/agent-review-in-progress AI review is currently running for this PR and removed s/agent-ready-for-rerun AI review has a new PR-author comment or commit and is ready for rerun s/agent-review-in-progress AI review is currently running for this PR labels Jul 8, 2026
…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
@kubaflo

kubaflo commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
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
@kubaflo kubaflo closed this Jul 30, 2026
@dotnet-maestro
dotnet-maestro Bot deleted the darc-main-6a1e8005-f556-4791-bfe8-44f81eccde28 branch July 30, 2026 18:24
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s/agent-fix-win AI found a better alternative fix than the PR s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants