Skip to content

[wasm][coreclr] Enable ReadyToRun by default for browser publishing - #137495

Open
radekdoulik wants to merge 5 commits into
dotnet:mainfrom
radekdoulik:radekdoulik-wasm-composite-r2r
Open

radekdoulik wants to merge 5 commits into
dotnet:mainfrom
radekdoulik:radekdoulik-wasm-composite-r2r

Conversation

@radekdoulik

@radekdoulik radekdoulik commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

[wasm][coreclr] Enable ReadyToRun by default for browser publishing

Default PublishReadyToRun to true for CoreCLR browser apps. Keep the composite
default and explicit opt-outs. Mono, WASI and native-platform defaults are unchanged.

Normal builds still skip per-app crossgen2: Debug stages prebuilt framework R2R;
Release stays IL-only unless explicitly opted in. Interpreter and R2R library CI
jobs remain separate, with explicit mode selection during build and Helix submission.

Depends on dotnet/sdk#57099.
That fix is merged and included in WBT's new minimum SDK,
12.0.100-alpha.1.26565.104. Newer dependency SDKs and explicit overrides remain
supported; the build/bootstrap SDK pins are unchanged.

Publishing can take longer and increase download size.
Projects with WasmEnableWebcil=false must enable WebCIL or set PublishReadyToRun=false.

Validation

Check Result
Runtime SDK package and WBT assembly builds Passed
Consumer properties and fresh restore controls 13 + 3 passed
Browser build/publish cases, matching SDK 24 passed
Chrome library tests, interpreter / trimmed composite 32 / 32 passed
WBT SDK-selection checks and assembly build 5 checks passed; build passed

Local browser validation used the built SDK 12.0.100-dev with the workload
resolver disabled; library tests used in-tree compiler/tasks. CI results with the
published SDK are pending. Local installed-workload execution and performance
benchmarks were not run.

Related: #132466.

Note

Prepared with GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 6 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@radekdoulik

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr outerloop, runtime-libraries-coreclr outerloop

Note

Requested with GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@radekdoulik

Copy link
Copy Markdown
Member Author

/azp run runtime-coreclr outerloop

Note

Requested with GitHub Copilot.

@radekdoulik

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries-coreclr outerloop

Note

Requested with GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

radekdoulik and others added 3 commits November 16, 2026 15:45
Preserve build selection, explicit opt-outs, and separate interpreter and R2R library CI coverage.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 519ad6c4-3702-45c6-bb99-0e2ad8573d04
Use SDK 12.0.100-alpha.1.26565.104 or newer for workload build tests. Keep newer dependency SDKs, explicit overrides, and the build/bootstrap pins unchanged.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 519ad6c4-3702-45c6-bb99-0e2ad8573d04
Keep native-only nested publishes from requesting publish boot configuration before publish assembly assets are available. Cover ordinary and native-nested preload scheduling.

Prepared with GitHub Copilot.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 519ad6c4-3702-45c6-bb99-0e2ad8573d04
Comment thread eng/Versions.props Outdated
<_DotnetSdkVersion>$(MicrosoftDotNetGenAPITaskPackageVersion)</_DotnetSdkVersion>
<SdkVersionForWorkloadTesting Condition="$([System.String]::Compare('$(_GlobalJsonSdkVersion)', '$(_DotnetSdkVersion)')) &lt;= 0">$(_DotnetSdkVersion)</SdkVersionForWorkloadTesting>
<SdkVersionForWorkloadTesting Condition="'$(SdkVersionForWorkloadTesting)' == ''">$(_GlobalJsonSdkVersion)</SdkVersionForWorkloadTesting>
<!-- Minimum SDK for the CoreCLR browser R2R restore default. -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please explain this ? Why there are also lines 30,31 ?

I see the usage in WorkloadTesting.Core.targets would that survive after Mono is gone ?

@radekdoulik radekdoulik Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Lines 30-31 choose the newer bootstrap/VMR SDK. That still selects 12.0.100-alpha.1.26561.116; we need 12.0.100-alpha.1.26565.104 for the Crossgen2 restore fix. The minimum changes only the test SDK. CoreCLR also uses these provisioning targets, including its no-workload SDK, so they are not Mono-only. Added comments locally in 9ecc5f6.

Drafted with Copilot.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should trigger the darc subscription instead

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that would be cleaner. @akoeplinger @maraf do you have the cmd to do it at hand?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The change is already in VMR so we need backflow to runtime repo.

Assert ReadyToRun defaults and the actual Crossgen2 package request from
app-scoped binlog evaluations instead of injected failures and assets JSON.
Clarify the test SDK floor and independent nested-publish preload hooks.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 519ad6c4-3702-45c6-bb99-0e2ad8573d04
The existing CoreCLR workload publish tests already caught the premature boot generation. Keep the nested-publish guard and remove the synthetic no-workload probe.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 519ad6c4-3702-45c6-bb99-0e2ad8573d04

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants