Reduce Helix work items with platform-aware partitioning#54502
Merged
Conversation
…re base method limit Move all partitioning configuration into UnitTests.proj: - Introduce BaseMethodLimit property (32 default, 64 FullFramework, 128 osx-arm64) - Task now consumes BaseMethodLimit instead of hardcoding values - Base raised from 16 to 32 for all platforms to target ~5 min per work item - osx-arm64 gets 128 (4x) since it runs ~4x faster than Windows Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR centralizes Helix xUnit work-item partition sizing in test/UnitTests.proj and makes partitioning platform-aware to reduce short-running Helix shards.
Changes:
- Adds
BaseMethodLimitconfiguration with larger defaults for FullFramework and osx-arm64 legs. - Passes
BaseMethodLimitinto the custom xUnit Helix work-item task. - Updates the task to consume the configured base limit and apply per-project multipliers.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
test/UnitTests.proj |
Defines platform-aware base method limits for Helix test partitioning. |
test/xunit-runner/XUnitRunner.targets |
Passes the configured base method limit into the Helix work-item creation task. |
test/HelixTasks/SDKCustomCreateXUnitWorkItemsWithTestExclusion.cs |
Uses BaseMethodLimit instead of hardcoded task-local defaults when scheduling test shards. |
Member
Author
Compliments of the github copilot app! |
Member
Author
This was referenced May 29, 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.

Summary
Consolidate Helix work item partitions to target ~5 minutes per work item, reducing overall work item count by ~58%.
Problem
The current base method limit of 16 methods per shard was producing far too many short-running work items, especially on faster platforms like mac-arm64 where the average work item took only 42 seconds.
Changes
All partitioning configuration now lives in
test/UnitTests.proj:SDKCustomCreateXUnitWorkItemsWithTestExclusion) is now a consumer ofBaseMethodLimitrather than hardcoding valueseffective limit = BaseMethodLimit × MethodLimitMultiplierProjected Impact
Configuration at a glance (
test/UnitTests.proj)