Skip to content

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

Merged
kubaflo merged 2 commits into
mainfrom
darc-main-bcd0ff13-c13e-45c6-9d6b-0e819f968b33
Sep 14, 2026
Merged

kubaflo merged 2 commits into
mainfrom
darc-main-bcd0ff13-c13e-45c6-9d6b-0e819f968b33

Conversation

@dotnet-maestro

Copy link
Copy Markdown
Contributor

This pull request updates the following dependencies

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

…60911.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.26451.1 -> To Version 11.0.0-prerelease.26461.1
@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 -- 38524

Or

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

@dotnet-policy-service dotnet-policy-service Bot added area/infrastructure 🏗️ area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions labels Sep 14, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@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 Sep 14, 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.

AI Review Summary

@dotnet-maestro[bot] — new AI review results are available based on commit 07c2650.

Gate No Tests Confidence Low Platform Android


🗂️ 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

PR #38524 Pre-Flight

Context

  • Title: [main] Update dependencies from dotnet/xharness
  • Author: dotnet-maestro[bot]
  • Base / head: main (70e7adc57504d3435a0f8cc68e890300546ab96a) / darc-main-bcd0ff13-c13e-45c6-9d6b-0e819f968b33 (07c2650ac0d993ac9cf947ff36ca1fd34025e4d3)
  • Upstream build: dotnet/xharness build 20260911.1, commit cf433ea2eff13305b60c8871a03115b1dbb600f8
  • Requested platform: Android
  • Gate result supplied by the caller: skipped because the PR contains no tests. The gate was not rerun and gate/content.md was not touched.

Existing implementation

The PR is an automated dependency-flow update rather than a fix for a linked product bug. It:

  1. Updates Microsoft.DotNet.XHarness.CLI, Microsoft.DotNet.XHarness.TestRunners.Common, and Microsoft.DotNet.XHarness.TestRunners.Xunit from 11.0.0-prerelease.26451.1 to 11.0.0-prerelease.26461.1.
  2. Updates the XHarness source SHA from 1fc9369e393e63fa8760afb30d2fcc596bb799bf to cf433ea2eff13305b60c8871a03115b1dbb600f8.
  3. Keeps the CLI tool manifest and the two package-version manifests in lockstep.
  4. Removes the obsolete darc-pub-dotnet-dotnet-e17b0d0 NuGet source.
  5. Regenerates global.json, changing the bootstrap SDK from 10.0.111 to 10.0.113-servicing.26454.107.

Changed files:

  • .config/dotnet-tools.json
  • NuGet.config
  • eng/Version.Details.xml
  • eng/Versions.props
  • global.json

Candidate constraints and validation

  • A valid alternative must remain inside the baseline script's RevertedFiles allow-list and must not edit the many pre-existing worktree changes outside the PR diff.
  • Because this is generated dependency metadata with no reported behavioral defect, candidates must not invent unrelated product-code changes or claim a functional regression is fixed.
  • No primary test was detected and the caller supplied no mandatory regression-test command. The narrow available validation is dotnet tool restore --verbosity minimal, which exercises resolution of the changed XHarness CLI tool without running a full suite. If the required SDK/feed/device environment is unavailable, the attempt must report Blocked, not Pass.
  • The existing lockstep pin update is the approach to avoid. An alternative is useful only if it has a materially different dependency-resolution mechanism and still satisfies the stated update; otherwise the honest result is that no safe alternative implementation exists for this mechanical flow.

Working-tree note

The review checkout is pr-review-38524 at synthetic squash commit a45ff1be9d. Numerous pre-existing tracked and untracked changes exist under .github/ and eng/; they are outside the five-file PR diff and must be preserved. Each try-fix attempt must use only EstablishBrokenBaseline.ps1 for baseline restoration.


🔬 Code Review — Deep Analysis

Code Review — PR #38524

Independent Assessment

What this changes: Updates the locally restored XHarness CLI and both XHarness test-runner packages from 11.0.0-prerelease.26451.1 to 11.0.0-prerelease.26461.1, with matching dependency metadata for xharness commit cf433ea2eff13305b60c8871a03115b1dbb600f8. The submitted diff also changes the repository SDK/tool version to 10.0.113-servicing.26454.107 and removes an obsolete dotnet dependency-flow feed while retaining the feed corresponding to dotnet commit 11741c82dbdf7acebca70db556911222226bee52.
Inferred motivation: Consume the newer coherent XHarness build while keeping the repository's generated dependency-flow metadata, package sources, and SDK selection internally consistent.

Reconciliation with PR Narrative

Author claims: The PR updates the three XHarness dependencies from build 26451.1 to 26461.1, sourced from xharness commit cf433ea2eff13305b60c8871a03115b1dbb600f8.
Agreement/disagreement: The XHarness version and commit claims match the submitted files. The description does not mention the additional global.json SDK update or NuGet.config feed removal present in the submitted diff.

Prior Review Reconciliation

No prior ❌ Error findings found across top-level reviews, inline review comments, or PR issue comments.

Blast Radius Assessment

  • Runs for all instances: The package and tool versions affect repository restore and device-test infrastructure globally, not application instances.
  • Startup impact: No application runtime startup path changes; build/test startup can be affected by SDK and tool resolution.
  • Static/shared state: No runtime static state changes.

CI Status

  • Required-check result: Pending/undetermined.
  • Classification: Anonymous check-run evidence showed required maui-pr jobs queued or in progress; authenticated gh pr checks --required was unavailable.
  • Action taken: Confidence is capped at low. The trusted Gate was separately skipped because the PR contains no tests.

Findings

No actionable file:line correctness findings. The synchronized XHarness versions and SHAs, SDK version, and retained dotnet feed are internally coherent.

Failure-Mode Probing

  • Restore with the removed feed: The retained darc-pub-dotnet-dotnet-11741c8 source matches the dotnet SHA represented in eng/Version.Details.xml; no changed dependency still points to the removed e17b0d0 feed.
  • Mixed XHarness components: The CLI manifest, package properties, dependency versions, and three dependency SHAs all advance together, avoiding a mixed-version runner/tool configuration.
  • Android device-test consumption: The shared device-test projects continue to consume the centralized XHarness Xunit property; no package-reference rename or target-framework behavior changes.

External Output Contract

Not applicable.

Verdict: NEEDS_DISCUSSION

Confidence: low
Summary: The submitted dependency update is internally coherent and the expert reviewer found no blocking code defect. Approval cannot be recommended while required CI remains pending or otherwise undetermined, especially with the trusted Gate skipped for lack of tests.


🛠️ Try-Fix — Analysis & Comparison

PR #38524 Alternative Fix Candidates

Candidate 1 — Resolution-path alternative (gpt-5.3-codex)

Approach: Attempt a source/restore-resolution alternative instead of reproducing the PR's literal lockstep metadata rewrites.

Mechanism-level difference: The candidate would validate and rely on the dependency resolution path rather than directly replacing every version/SHA pin and accepting the generated NuGet-source and SDK changes as the implementation mechanism.

Files changed: None.

Diff: Empty.

Test: dotnet tool restore --verbosity minimal

Test result: Exit code 0. The restore resolved microsoft.dotnet.xharness.cli version 11.0.0-prerelease.26461.1.

Result: Blocked

Failure analysis: EstablishBrokenBaseline.ps1 refused to establish the broken baseline because the checkout already contained unrelated tracked changes. Consequently .github/.baseline-state.json was absent and there was no safe RevertedFiles modification allow-list. The candidate correctly made no tracked edits rather than risk overwriting the pre-existing worktree. The successful tool restore validates the current PR state only; it is not evidence for an unimplemented alternative.

Inline expert self-review: 0 findings (reviewer-findings.json contains []).

Restoration: pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore reported No baseline state found / Restored=False, which is the expected no-state restoration path after the pre-edit baseline block.

Candidate 2 — Generation-time single-source coherency (gpt-5.6-sol)

Approach: Represent the three XHarness dependency versions through one canonical build value and generate the JSON tool manifest, Darc dependency XML, and MSBuild version outputs from it.

Mechanism-level difference: Unlike the PR's repeated literal pins, this would make coherency a generation-time invariant. Unlike candidate 1, it would not rely on restore/source resolution to select the desired version.

Files changed: None.

Diff: Empty.

Test: dotnet tool restore --verbosity minimal

Test result: Not run because the baseline safety gate prohibited an implementation; running restore again against the unchanged PR would only duplicate candidate 1 and would not validate this mechanism.

Result: Blocked

Failure analysis: EstablishBrokenBaseline.ps1 again rejected the pre-existing dirty worktree and created no .github/.baseline-state.json, so candidate 2 had no RevertedFiles modification allow-list. In addition, a genuine cross-format single-source solution would require generator automation outside the five-file PR boundary; manually adding indirection only inside generated outputs would not survive dependency flow and would not be a safe alternative.

Inline expert self-review: 0 findings (reviewer-findings.json contains []).

Restoration: pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore exited successfully and reported that no baseline state existed.

Aggregate outcome

Two candidates were attempted, matching the configured maximum. Both are Blocked, and neither produced a candidate patch. The first established that the current PR's XHarness CLI pin restores successfully; the second identified a distinct generation-time design but could not safely implement it within the baseline and file-boundary contracts. No candidate should be forwarded as a tested replacement for the PR.


📝 PR Finalize — Recommended Title & Description

Assessment: ✏️ Recommend updating — the current XHarness details are accurate, but the title and description omit the submitted bootstrap SDK/tool update and obsolete dotnet feed removal.

Recommended title

[Build] XHarness: Update to 11.0.0-prerelease.26461.1 and align SDK metadata

Recommended description

This pull request updates the following dependencies and keeps the generated dependency-flow configuration coherent.

In addition to the XHarness update below, the submitted change:

- Updates the repository bootstrap .NET SDK/tool version in `global.json` from `10.0.111` to `10.0.113-servicing.26454.107`.
- Removes the obsolete `darc-pub-dotnet-dotnet-e17b0d0` package source from `NuGet.config` while retaining the source associated with the current dotnet dependency metadata.

[marker]: <> (Begin:a71c12d9-5aa4-4b46-e2d6-08da0cf8cd95)
## From https://github.com/dotnet/xharness
- **Subscription**: [a71c12d9-5aa4-4b46-e2d6-08da0cf8cd95](https://maestro.dot.net/subscriptions?search=a71c12d9-5aa4-4b46-e2d6-08da0cf8cd95)
- **Build**: [20260911.1](https://dev.azure.com/dnceng/internal/_build/results?buildId=3072980) ([331573](https://maestro.dot.net/channel/2/github:dotnet:xharness/build/331573))
- **Date Produced**: September 11, 2026 11:35:21 AM UTC
- **Commit**: [cf433ea2eff13305b60c8871a03115b1dbb600f8](https://github.com/dotnet/xharness/commit/cf433ea2eff13305b60c8871a03115b1dbb600f8)
- **Branch**: [main](https://github.com/dotnet/xharness/tree/main)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [11.0.0-prerelease.26451.1 to 11.0.0-prerelease.26461.1][1]
     - Microsoft.DotNet.XHarness.CLI
     - Microsoft.DotNet.XHarness.TestRunners.Common
     - Microsoft.DotNet.XHarness.TestRunners.Xunit

[1]: https://github.com/dotnet/xharness/compare/1fc9369e39...cf433ea2ef

[DependencyUpdate]: <> (End)


[marker]: <> (End:a71c12d9-5aa4-4b46-e2d6-08da0cf8cd95)

🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner: pr

The raw submitted PR is the single winning candidate. It is the only candidate with a real implementation, its XHarness versions and SHAs are coherent across the tool manifest and dependency metadata, and the focused dotnet tool restore --verbosity minimal run recorded during try-fix-1 succeeded against that unchanged PR state. The expert reviewer found no actionable line-level defect.

Approval is not recommended yet: the trusted Gate was skipped because no tests were detected, and required CI remained pending/undetermined during expert review. Under the review contract, APPROVE is available only when the raw PR wins and the Gate permits approval with no blocking expert discussion; those conditions are not met.

Candidate comparison

Rank Candidate Implementation Validation Review assessment Outcome
1 pr Submitted five-file dependency-flow update Focused XHarness CLI restore passed; Gate skipped; required CI pending/undetermined No actionable expert findings; versions, SHAs, SDK, and retained feed are coherent Winner, but hold for required CI / validation evidence
2 pr-plus-reviewer Identical to pr; reviewer.patch is empty No duplicate command run because there was no reviewer-derived change The expert supplied no actionable patch to apply Equivalent, with no improvement over pr
3 try-fix-1 No implementation; empty diff Restore exited 0, but only validated the unchanged PR Baseline safety gate blocked edits; proposed resolution-path mechanism was never implemented Blocked
4 try-fix-2 No implementation; empty diff Not run because there was no candidate implementation Baseline safety gate blocked edits; proposed generator mechanism also exceeded the allowed file boundary Blocked

Regression and risk assessment

No candidate failed a regression test; no regression-test command was supplied or detected. The two try-fix candidates rank below the implemented candidates because they are blocked and have empty diffs, not because of a test failure. The Gate's absence of tests leaves coverage undetermined, while the expert review's pending-CI result prevents an approval recommendation.

The dependency update itself is low-complexity and internally synchronized:

  • Microsoft.DotNet.XHarness.CLI, Microsoft.DotNet.XHarness.TestRunners.Common, and Microsoft.DotNet.XHarness.TestRunners.Xunit all move to 11.0.0-prerelease.26461.1.
  • All three Darc entries point to xharness commit cf433ea2eff13305b60c8871a03115b1dbb600f8.
  • global.json selects 10.0.113-servicing.26454.107, consistent with the existing dotnet dependency metadata.
  • NuGet.config retains the source corresponding to dotnet commit 11741c82dbdf7acebca70db556911222226bee52 and removes the obsolete source.

Required disposition

Keep the submitted implementation rather than applying either speculative alternative. Do not merge until required CI reaches a determinate acceptable state; the missing Gate coverage should remain explicit rather than being treated as a pass.


📱 UI Tests — Button,Label,Layout

Detected UI test categories: Button,Label,Layout

✅ Deep UI tests — 422 passed, 0 failed, 7 skipped across 3 categories on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Button 104/106 (2 skipped) ✓ —
Label 123/125 (2 skipped) ✓ —
Layout 195/198 (3 skipped) ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues 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) and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 14, 2026
@kubaflo
kubaflo merged commit 464d937 into main Sep 14, 2026
217 of 233 checks passed
@kubaflo
kubaflo deleted the darc-main-bcd0ff13-c13e-45c6-9d6b-0e819f968b33 branch September 14, 2026 12:18
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/infrastructure 🏗️ area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions s/agent-changes-requested AI agent recommends changes - found a better alternative or issues 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants