Repository navigation
[release/11.0] [wasm] Keep WBT on the pinned SDK - #137024
Closed
pavelsavara wants to merge 2 commits into
Closed
pavelsavara wants to merge 2 commits into
pavelsavara wants to merge 2 commits into
Conversation
Keep workload tests on the SDK pinned in global.json while generating and resolving manifest packages with stable feature-band IDs. This avoids requests for unpublished stable .NET 11 dependencies after RTM manifest transport updates. Co-authored-by: Copilot <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
This was referenced Nov 5, 2026
Restore shared SDK selection and manifest-band computation to the release baseline. Override the provisioned SDK only in Wasm.Build.Tests after shared version evaluation and before workload provisioning targets are imported. Document which SDK-default dependencies remain on the pinned version. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the SDK pinned in
global.jsononly for Wasm.Build.Tests (WBT). The override is inWasm.Build.Tests.csproj, after shared version evaluation and before workload provisioning targets are imported.The flowed RTM SDK requests stable
11.0.0ILLink and ASP.NET packages that the investigated CI feeds cannot restore. The pinned11.0.100-rc.2.26504.105SDK uses publicly restorable prerelease dependencies.This supersedes the first commit's shared-property change. The net PR changes only the WBT project and its README;
eng/Versions.propsis identical to the release base.Impact and coverage tradeoff
Which components are exercised?
Microsoft.NET.ILLink.TasksMicrosoft.NET.Sdk.WebAssembly.Packand tasks supplied by that packThis is deliberately not a claim that installing a local workload makes every dependency in every generated application in-tree. Resolution remains component/test-specific. Latest CoreCLR Blazor restore assets show
Microsoft.NET.Sdk.WebAssembly.Pack/11.0.0-devalongside RC2 ILLink, Internal.Assets, Components.WebAssembly, Components.Gateway and JSInterop.WebAssembly. Prior child-binlog inspection also verified actual CoreCLR selection (UseMonoRuntime=false) in a basic-app case.MSBuild properties and evaluation order
_GlobalJsonSdkVersionis the full SDK version extracted fromglobal.json:11.0.100-rc.2.26504.105.eng/Versions.propsstill computes its original defaults using_DotnetSdkVersion(the Emscripten manifest transport version),SdkMajorVersion,SdkBandVersion, andSdkPreReleaseLabel. None of that shared logic is changed.SdkVersionForWorkloadTesting=$(_GlobalJsonSdkVersion). Provisioning uses this full version for SDK installation and version-dependent stamps indotnet-none/dotnet-latest. A command-line global property still takes precedence.SdkBandVersionForWorkload_FromRuntimeVersionshas already been evaluated as11.0.100from the release branch's RTM inputs. MSBuild does not retroactively recompute it when WBT changes the SDK property.VersionBandForManifestPackagestakes that existing value and resolves IDs such asMicrosoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100. Manifest package producers outside WBT keep their original behavior.SdkBandVersionForWorkload_ComputedFromInstaller, and thenVersionBandForSdkManifestsDir, are computed from the installed SDK. RC2 therefore receives manifests undersdk-manifests/11.0.100-rc.2, while package lookup remains on11.0.100.The package feature band and SDK manifest-directory band intentionally differ. This relies on the existing RTM state of release/11.0; it is not a general redesign of SDK/manifest selection.
Validation
The final WBT-local implementation was validated on Windows/Chrome using the same-commit Debug runtime artifacts from the earlier successful CoreCLR and Mono builds:
11.0.100manifest package band.Build.projevaluation: original RTM SDK selection unchanged.Wasm.Build.Tests.AppSettingsTestsplusWasm.Build.Tests.Blazor.AppsettingsTests, with serial class execution: 9/9 CoreCLR no-workload and 9/9 Mono workload passed; zero failures/skips and zero build warnings/errors.git diff --checkpassed; sharedeng/Versions.propsmatches the release base exactly.Commands below were run separately in the CoreCLR and Mono validation worktrees, substituting
CoreCLR/falseandMono/truefor<Flavor>/<Workloads>, respectively. SDK construction and the test build both passed for each pair.Tests used
NuGetAudit=false,UseSharedCompilation=false,MSBUILDDISABLENODEREUSE=1, and fresh isolated CLI homes. CoreCLR used the shared Emscripten toolchain. The sharedwasm-toolsmanifest also needs the CoreCLR runtime package, so the Mono local feed includes the same-commit CoreCLR package; its 241 uncompressed entries match the final CoreCLR build.No new full runtime build was needed for the WBT-local revision. The earlier full builds passed with existing package-audit warnings. An earlier parallel Mono run of the superseded implementation had a browser-startup timeout; the final local implementation's two runs above had no failures. The full CI, previous-framework, AOT, multithreaded, WASI, and other mobile matrices were not run locally.
Resolves #136326
Note
This change and description were prepared with GitHub Copilot assistance. The reported builds and tests were executed locally.