Skip to content

Add pinned Uno bootstrap baseline diagnostic - #894

Open
azchohfi wants to merge 2 commits into
CommunityToolkit:mainfrom
azchohfi:azchohfi-toolkit-ci-baseline
Open

azchohfi wants to merge 2 commits into
CommunityToolkit:mainfrom
azchohfi:azchohfi-toolkit-ci-baseline

Conversation

@azchohfi

@azchohfi azchohfi commented Nov 24, 2026 •

Copy link
Copy Markdown

Fixes

Relates to #892. This remains diagnostic-only. It establishes the pinned baseline and compares one source-grounded bootstrap candidate, without changing the existing build workflow or the Segmented fix.

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes

What is the current behavior?

The WASM WinUI 3 job in #892 fails in Uno Check before component compilation. Its log reports conflicting Mono AOT workload manifests under SDK feature bands 11.0.100 and 10.0.100. Other Uno targets fail during bootstrap too.

Main at a2fa47ad72cb95ed81f3ff0885da627a5fd6c14e and #892 head c8380aa5f6971c98e75c97d89dffcc504c4641f5 have identical workflow, SDK and tool-manifest inputs. Before this diagnostic, that suggested a shared bootstrap problem without establishing a contemporary main failure. The previously known current-base run started on October 27 and was not recently rerun.

What is the new behavior?

One job definition runs a baseline and one candidate on separate isolated runners, both checking out the exact main commit above and targeting only WASM. Both retain windows-2025-large, recursive submodules, actions/setup-dotnet@v4 using global.json, requested SDK 10.0.402 with latestFeature, dotnet tool restore, uno.check 1.34.1, and the original Uno arguments. WinUI selection happens after bootstrap, so no WinUI or platform fanout is needed.

The sole candidate configuration change is an additional dotnet-version input of 10.0.101. That is the SDK explicitly requested by the pinned Uno manifest, not a guessed tool or workload version. Existing SDKs remain installed. Baseline failure cannot cancel the candidate, and neither case uses continue-on-error.

Each case records its identity, source/workflow/trigger commits, runner image, SDK/runtime inventory, restored tool versions and step outcomes. After Uno, it reads the generated temporary global.json files and records their effective SDK selection. A narrowly filtered host trace records SDK/framework choices without publishing the complete trace or environment.

The workflow stops before solution generation, component builds, tests, packaging, signing or deployment. It has only contents read permission, does not persist checkout credentials, and never checks out the diagnostic PR's component code. It runs on upstream PRs changing this file and supports manual dispatch once available on the default branch. Pagefile configuration and crash-dump tooling are omitted because neither is needed here.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

Local validation passed without running Uno Check, installing workloads or changing local SDKs. No component builds or tests were run. The unchecked component/header items do not apply. Focused checks are session-local rather than a new repository test suite.

  • actionlint -config-file actionlint.yaml "$env:GITHUB_WORKSPACE\.github\workflows\bootstrap-baseline.yml" passed with actionlint 1.7.12. The temporary configuration registers the existing windows-2025-large runner label.
  • pwsh -NoProfile -File .\validate-bootstrap-baseline.ps1 -Repository "$env:GITHUB_WORKSPACE" passed. The session-local harness parses every PowerShell block, checks unchanged bootstrap arguments and publication guards, rejects a mismatched source SHA, restricts the matrix to the baseline/candidate pair, and exercises success, failure, skipped and cancelled summaries for both cases with stubbed commands.
  • git diff HEAD^ HEAD --check passed.

Initial baseline

Run 45295397966, attempt 1 started on November 24, 2026 at 00:13:30 UTC. Its only job verified source a2fa47ad72cb95ed81f3ff0885da627a5fd6c14e and failed in Uno Check with exit code 1. The diagnostic head was d30e507cbc220a5dad9de76bd7b4865dbfb9a00b, with workflow merge commit 1f92b00ce761181db8b80f9b7d35a4b3d2df2086.

The conflict names Microsoft.NET.Runtime.MonoAOTCompiler.Task.net10 in sdk-manifests\11.0.100\microsoft.net.workload.mono.toolchain.net10\11.0.100\WorkloadManifest.json and sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.current\10.0.101\WorkloadManifest.json. The failed checkup is dotnetworkloads-10.0.101. The message matches the original #892 WASM log byte-for-byte after removing log prefixes.

Source-grounded mechanism

  1. The stable manifest in uno.check 1.34.1 requests SDK 10.0.101 and WASM rollback 10.0.101/10.0.100. The runner has newer .NET 10 SDKs and 11.0.100, but not that exact SDK.
  2. DotNetCheckup prefers an exact manifest SDK match. When absent, it selects the newest installed SDK without constraining the major version and records DOTNET_SDK_VERSION=11.0.100.
  3. DotNetWorkloadsCheckup checks installed workloads with the manifest SDK but creates its install/repair manager with the SDK selected in step 2. Each manager writes its own temporary global.json, with latestFeature. The repository's global.json does not govern those temporary working directories.
  4. The baseline therefore checks under .NET 10 but attempts the .NET 10 rollback through SDK 11.0.100. The existing .NET 11 net10 manifest and the rolled-back .NET 10 current manifest define the same pack. Installing the exact manifest SDK gives Uno an exact match and keeps its repair context in .NET 10 without removing .NET 11 or suppressing the conflict.

The resolved setup action was 67a3573c9a986a3f9c594539f4ab511d57bb3ce9. It treats the repository's latestFeature as the 10.0 channel and supports installing the additional exact SDK alongside that channel.

Controlled candidate result

Paired run 45301424030, attempt 1 ran on November 24, 2026 from 00:58:22 to 01:02:49 UTC. It used diagnostic head dac0231d6ca52b61a120f22d525d7b896dc37e01 and workflow merge commit 4452f6f612112dab128d41105dcb67114a8d8aad. Both cases verified the same pinned source, image windows-2025-vs2026 version 20261116.315.1, repository SDK 10.0.404, and uno.check 1.34.1.

Case Uno-selected SDK Temporary repair context Actual result
Baseline 11.0.100 Requests and resolves 11.0.100 Same original Mono AOT manifest conflict, exit 1
Candidate 10.0.101 Requests 10.0.101, resolves 10.0.404 through latestFeature All steps passed, wasm-tools installed and Uno recheck reported Has Errors? False

The candidate's three generated Uno SDK contexts all resolved 10.0.404. The baseline had one 10.0.101 check context resolving 10.0.404 and one 11.0.100 repair context resolving 11.0.100. The candidate installed workloads at 01:02:05 UTC and completed the successful Uno recheck at 01:02:42 UTC. The overall workflow remains failed because the baseline failure is deliberately preserved.

Inventory comparison found exactly one added SDK, 10.0.101, and no removed SDKs. Its accompanying Microsoft.NETCore.App, Microsoft.AspNetCore.App and Microsoft.WindowsDesktop.App runtimes 10.0.1 were added. No runtimes were removed. Both host traces recorded the same observed framework-version set, 8.0.34, 10.0.15 and 11.0.0, so this is not evidence that all child processes stopped using .NET 11. The measured change is Uno's repair SDK context. The outer repository SDK remained 10.0.404.

This proves only the additive-SDK candidate's WASM bootstrap on the measured image and source. It does not prove all-platform or component success, and no production repair is included here. The existing build workflow, SDK/tool pins, component code and publication paths are unchanged. Ordinary fork-PR CI can still trigger automatically, with its fork package-push and PR-ref signing/release guards intact. No full-main workflow was manually dispatched or rerun, no local workload bootstrap was performed, and nothing was merged.

azchohfi and others added 2 commits November 23, 2026 16:12
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azchohfi

Copy link
Copy Markdown
Author

The existing production repair is #893. Its CI run passed all 14 build jobs, including all eight Uno jobs, both package jobs and the common checks. Signing and release were skipped.

That uses a different approach from our additive-SDK candidate. Our paired experiment proves only the WASM bootstrap comparison. This PR and its paired evidence are being preserved as diagnostics, not a competing production repair.

This branch has not been deployed

No deployments
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.

1 participant