Repository navigation
Fix browser HotReload test trimming - #136651
Merged
radekdoulik merged 1 commit intoNov 2, 2026
Merged
Conversation
Root the EnC helper by assembly name and preserve only its baseline after shared trimming configuration. Keep mutable-method calls intact with identical NoInlining flags in the baseline and both delta snapshots. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
lewing
approved these changes
Oct 30, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of the HotReload trimming and method-inlining changes.
No open issues 🎉
What changed in this PR
Fixes trimming configuration in the browser HotReload test so Edit-and-Continue updates retain the metadata they require while other assemblies remain linked.
Changes:
- Passes an extensionless assembly name to
TrimmerRootAssemblyinstead of a DLL path. - Sets only the EnC helper assembly to
TrimMode="copy"afterConfigureTrimming. - Adds
NoInliningto the updated method in all three source snapshots to prevent constant folding of calls.
| File | Description |
|---|---|
src/tests/FunctionalTests/WebAssembly/Browser/HotReload/WebAssembly.Browser.HotReload.Test.csproj |
Corrects assembly rooting and preserves the EnC helper after trimming configuration. |
src/tests/FunctionalTests/WebAssembly/Browser/HotReload/ApplyUpdateReferencedAssembly/MethodBody1.cs |
Adds NoInlining to the baseline method. |
src/tests/FunctionalTests/WebAssembly/Browser/HotReload/ApplyUpdateReferencedAssembly/MethodBody1_v2.cs |
Adds matching NoInlining to the second update snapshot. |
src/tests/FunctionalTests/WebAssembly/Browser/HotReload/ApplyUpdateReferencedAssembly/MethodBody1_v1.cs |
Adds matching NoInlining to the first update snapshot. |
Review effort: Balanced
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.
Fix IL1032 in the browser HotReload test by passing an extensionless assembly name to
TrimmerRootAssembly, not a DLL path.Copy only the EnC helper after
ConfigureTrimmingto preserve its metadata and debug attributes. AddNoInliningto the updated method in all three source snapshots so the linker cannot replace calls with the original return value. Other assemblies remain linked.Validated in Chromium on macOS/arm64: CoreCLR trimmed R2R from the generated ZIP, plus trimmed and untrimmed CoreCLR and Mono without R2R. All five runs applied both deltas. Mono used a local helper-reference import; its CI quarantine is unchanged. Linux and the full library suite were not run.
Note
Generated with GitHub Copilot.