Skip to content

[wasm64] Run CoreCLR browser-wasm64 library tests in the libraries outerloop - #138437

Open
lewing wants to merge 8 commits into
feature/wasm64-r2rfrom
feature/wasm64-library-ci
Open

lewing wants to merge 8 commits into
feature/wasm64-r2rfrom
feature/wasm64-library-ci

Conversation

@lewing

@lewing lewing commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Runs the CoreCLR browser library tests for browser-wasm64 in the libraries outerloop. This is layer 3 of the stack, on top of #138171 (ReadyToRun) and #138166 (interpreter).

  • outerloop.yml and helix-queues-setup.yml: adds browser_wasm64 to the CoreCLR library test jobs (interpreter and _R2R) and the browser WebAssembly Helix queue.
  • wasm64 outerloop suites get a 6-hour XHarness timeout and 390/420-minute Helix batch bounds.
  • The wasm runner templates forward DOTNET_CI=true, and the new PlatformDetection.IsNotBrowserOnCI skips large-memory tests (Base64 EncodeTooLargeSpan, CreateReadOnlySpanFromNullTerminated_*_ExceedsMaximum, multi-GB Utf8JsonWriter, CanResizeToMaxArraySize, Double.ToString_ValidLargeFormat) on browser CI only.
  • Test fixes: NonBacktracking deep-nesting stress skips on single-threaded wasm, and the PackedSimd nint/nuint tests use Vector128<nint>.Count.

This replaces #138172, which GitHub auto-marked merged after a mistaken push briefly pointed its head at its base.

Note

This PR description was generated with GitHub Copilot.

@azure-pipelines

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

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@lewing
lewing force-pushed the feature/wasm64-r2r branch from 2e8f25d to f1d6bda Compare November 27, 2026 21:17
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from 15c6b28 to ac72224 Compare November 27, 2026 21:17
@lewing
lewing force-pushed the feature/wasm64-r2r branch from f1d6bda to 5def9cd Compare November 27, 2026 22:45
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from ac72224 to d5b0cbc Compare November 27, 2026 22:50
@lewing
lewing force-pushed the feature/wasm64-r2r branch from 5def9cd to 5a11463 Compare December 1, 2026 18:13
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from d5b0cbc to 34b9bc3 Compare December 1, 2026 18:13
@lewing
lewing force-pushed the feature/wasm64-r2r branch from 5a11463 to 4f967ce Compare December 1, 2026 23:07
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from 34b9bc3 to 6e06af4 Compare December 1, 2026 23:07
@lewing
lewing force-pushed the feature/wasm64-r2r branch from 4f967ce to 769f7d7 Compare December 1, 2026 23:51
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from 6e06af4 to bbba44a Compare December 1, 2026 23:51
@lewing
lewing force-pushed the feature/wasm64-r2r branch from 769f7d7 to 350b4d6 Compare December 2, 2026 00:14
lewing and others added 8 commits December 1, 2026 18:14
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
StackHelper.CallOnEmptyStack uses Task.Run and Wait, which single-threaded
browser runtimes don't support. The test is 64-bit-only, so it first ran on
browser with wasm64.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
WritingTooLargeBase64Bytes and WriteTooLargeArguments take hours on the
browser interpreter, timing out the wasm64 outerloop suite.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
System.Memory.Tests takes ~2h54m on wasm32 and exceeds the 4-hour suite
timeout on wasm64, which is slower and also runs the 64-bit-only tests.
Raise the wasm64 suite timeout and Helix batch bounds; the AzDO job
timeout (600 minutes) still covers them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
CanResizeToMaxArraySize and Double.ToString_ValidLargeFormat run on
browser-wasm64 because it is a 64-bit process. They grow wasm linear
memory to 8-10 GB, which never shrinks, so Chrome stalls on Helix machines
and the Common.Tests and System.Runtime.Tests suites hit the work item
timeout.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The load/store and logical-shift tests assumed four 32-bit lanes per
Vector128<nint>, which fails on browser-wasm64 where nint is 64 bits.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Browser test apps don't inherit the host environment, so the wasm runner
scripts now forward DOTNET_CI=true to the app on Helix. That lets
[SkipOnCI] work in the browser and backs the new
PlatformDetection.IsNotBrowserOnCI condition.

The 64-bit-only multi-gigabyte tests that get OOM-killed in Helix
containers on browser-wasm64 (ArrayBuffer.CanResizeToMaxArraySize,
Double.ToString_ValidLargeFormat, the Utf8JsonWriter too-large tests,
Base64/Base64Url EncodeTooLargeSpan and
CreateReadOnlySpanFromNullTerminated_*_ExceedsMaximum) now skip only on
browser CI instead of on every browser run.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lewing
lewing force-pushed the feature/wasm64-library-ci branch from bbba44a to 803855e Compare December 2, 2026 00:14

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

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants