Repository navigation
[browser] Run ReadyToRunTests in its own work item in the CoreCLR no-workload WBT lane - #137389
Merged
Merged
Conversation
…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: 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. |
This was referenced Nov 12, 2026
maraf
reviewed
Nov 12, 2026
…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
marked this pull request as ready for review
November 12, 2026 18:55
lewing
enabled auto-merge (squash)
November 12, 2026 19:17
maraf
approved these changes
Nov 12, 2026
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.
Problem
WBT-NoWorkload-CLR-Wasm.Build.Testsruns every no-workload test in a single Helix work item. The limit forBuildWasmAppsis 90 minutes. Onwindows.server2025.amd64.openthis 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:
HELIX_XUNIT_ARGSWBT-NoWorkload-CLR-Wasm.Build.Tests-notrait category=r2rWBT-NoWorkload-CLR-Wasm.Build.Tests.ReadyToRunTests-class Wasm.Build.Tests.ReadyToRunTestsReadyToRunTestsgets a class-level[TestCategory("r2r")], which keeps it out of the main work item.-class, not-trait category=r2r. The lane already passes-trait category=no-workload, and xunit ORs repeated-traitfilters, so-trait category=r2rwould add every no-workload test rather than narrowing to R2R. It would also addPublishRunAllPagesCompositeWithWorkload, a wasm-opt test that requires the workload.-classis 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: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.xunit.console.dll(2.9). Filter values below are passed ascategory=<name>.-class …JsonManifestReaderTests -trait category=no-workloadmatched 8 tests.-trait category=r2rmatched 0, so-classnarrows the trait filter rather than adding to it.-class …ReadyToRunTests -trait category=no-workload -notrait category=mono -notrait category=r2rmatched 0, so the class-levelr2rexcludes the whole class from the main work item../dotnet.sh msbuild src/libraries/sendtohelixhelp.proj -t:_AddWorkItemsForBuildWasmApps -p:Scenario=BuildWasmApps ... -getItem:HelixWorkItemfor each lane. I passedNeedsToRunOnChrome=false;NeedsToRunOnV8=falseto skip the local browser provisioning checks.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.