Skip to content

[browser] Run ReadyToRunTests in its own work item in the CoreCLR no-workload WBT lane - #137389

Merged
lewing merged 2 commits into
mainfrom
lewing-split-wbt-no-workload-lane
Nov 12, 2026
Merged

lewing merged 2 commits into
mainfrom
lewing-split-wbt-no-workload-lane

Conversation

@lewing

@lewing lewing commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Problem

WBT-NoWorkload-CLR-Wasm.Build.Tests runs every no-workload test in a single Helix work item. The limit for BuildWasmApps is 90 minutes. On windows.server2025.amd64.open this item takes 94 min at p50 and up to 116 min (Helix data, last 5 days), and it regularly dead-letters or times out on main. On Linux (azurelinux.4) it takes 75 min at p50 and up to 88 min, which is also close.

Change

The CoreCLR no-workload lane now runs as two work items in the same Helix job instead of one:

Work item HELIX_XUNIT_ARGS
WBT-NoWorkload-CLR-Wasm.Build.Tests -notrait category=r2r
WBT-NoWorkload-CLR-Wasm.Build.Tests.ReadyToRunTests -class Wasm.Build.Tests.ReadyToRunTests
  • ReadyToRunTests gets a class-level [TestCategory("r2r")], which keeps it out of the main work item.
  • The R2R work item selects the class with -class, not -trait category=r2r. The lane already passes -trait category=no-workload, and xunit ORs repeated -trait filters, so -trait category=r2r would add every no-workload test rather than narrowing to R2R. It would also add PublishRunAllPagesCompositeWithWorkload, a wasm-opt test that requires the workload. -class is ANDed with the lane's trait filters.

CoreCLR only. Mono no-workload is well under the limit (Windows p50 19 / max 55 min; Linux p50 10 min). The Mono no-workload, NoWebcil, NoFingerprint, JavascriptBundler and WasmOpt lanes are unchanged.

Balance

Serial test time per class, taken from passing runs' testResults.xml:

Work item Windows (min) Linux (min)
ReadyToRunTests 50.7 48.6
Everything else 35.9 46.8

Of the ReadyToRunTests time, 25 min is PublishCrossgen2ArgumentsReflectWasmDebugInfoProperties, which #137360 makes evaluation-only. That would bring the R2R item down to about 26 min. Linux runs test collections in parallel, so its wall-clock time is lower than this serial sum. Windows runs with -parallel none.

Validation

Run locally on osx-arm64, without a full baseline build:

  • ./dotnet.sh build src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj -p:TargetOS=browser -p:TargetArchitecture=wasm -p:RuntimeFlavor=CoreCLR -c Debug: the test assembly built. The workload-packaging step after it failed because runtime packs aren't built locally, which is unrelated to this change.
  • Checked filter semantics with the built xunit.console.dll (2.9). Filter values below are passed as category=<name>.
    • -class …JsonManifestReaderTests -trait category=no-workload matched 8 tests.
    • The same with -trait category=r2r matched 0, so -class narrows the trait filter rather than adding to it.
    • -class …ReadyToRunTests -trait category=no-workload -notrait category=mono -notrait category=r2r matched 0, so the class-level r2r excludes the whole class from the main work item.
  • ./dotnet.sh msbuild src/libraries/sendtohelixhelp.proj -t:_AddWorkItemsForBuildWasmApps -p:Scenario=BuildWasmApps ... -getItem:HelixWorkItem for each lane. I passed NeedsToRunOnChrome=false;NeedsToRunOnV8=false to skip the local browser provisioning checks.
    • CLR no-workload produced the 2 items above.
    • Mono no-workload, Mono NoWebcil, CLR NoFingerprint, CLR WasmOpt and CLR JavascriptBundler each produced 1 item, as before.
    • CLR Workloads (47 items) and Mono Workloads (53 items) are unchanged.

No Helix run has happened yet. This PR's CI will be the first.

Related: #137360

Note

This PR description was generated with GitHub Copilot.

…est class

WBT-NoWorkload-CLR-Wasm.Build.Tests runs every no-workload test in a
single Helix work item and regularly exceeds the 90 minute timeout on
Windows. Generate a second class list containing only classes with a
runnable no-workload test (new IncludedTestCategories option on
GenerateXunitTestClassList) and use it to fan that lane out per class,
like the workload lane. Mono no-workload and the other single item lanes
are unchanged.

Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

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

…er class

Per review feedback, run the CoreCLR no-workload lane as two work items
rather than one per class: ReadyToRunTests (selected with -class, since
xunit ORs repeated -trait filters) and everything else (-notrait
category=r2r). This drops the generated no-workload class list and the
IncludedTestCategories task option.

Co-authored-by: Copilot App <[email protected]>
@lewing lewing changed the title [browser] Fan out the CoreCLR no-workload Wasm.Build.Tests lane per test class [browser] Run ReadyToRunTests in its own work item in the CoreCLR no-workload WBT lane Nov 12, 2026
@lewing
lewing marked this pull request as ready for review November 12, 2026 18:55
@lewing
lewing enabled auto-merge (squash) November 12, 2026 19:17
@lewing
lewing merged commit 04855d4 into main Nov 12, 2026
47 checks passed
@lewing
lewing deleted the lewing-split-wbt-no-workload-lane branch November 12, 2026 21:41
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 13, 2026
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.

2 participants