Skip to content

Tune Helix partitioning/payload - #54512

Merged
MichaelSimons merged 2 commits into
mainfrom
michaelsimons/musical-lamp
Jun 3, 2026
Merged

MichaelSimons merged 2 commits into
mainfrom
michaelsimons/musical-lamp

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented May 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #54502. Tuning changes for Helix work item partitioning and payload optimization:

1. Replace TargetRid.StartsWith('osx-arm64') with TargetOS/TargetArchitecture

Clearer, more explicit platform detection using properties that are already available in the evaluation context.

2. Bump NetAnalyzers MethodLimitMultiplier from 5 to 10

NetAnalyzers was over-partitioned (41 work items on Windows with total time of ~104 min). Doubling the multiplier targets ~21 parts at ~5 min/item, saving ~20 work items on Windows alone.

3. Exclude installer archives from shared Helix correlation payload

Large installer archives in ArtifactsShippingPackages were included in the d/.nuget correlation payload downloaded by every Helix machine. These archives are only needed by EndToEnd.Tests.

Changes:

  • NuGet packages are staged to a filtered directory (HelixNuGetPayload) excluding archives, and used as the d/.nuget correlation payload
  • Archives are staged separately (HelixInstallerArchives) and included only in EndToEnd.Tests work items via a generic AdditionalPayloadDir metadata mechanism on SDKCustomXUnitProject items
  • At runtime, a pre-command copies archives from the work item payload to the correlation payload's d/.nuget directory so test path resolution is unchanged

Total correlation payload per Helix machine (wire size, before vs after):

All sizes below are wire cost (compressed zip/tar.gz as transmitted over the network). The correlation payload is downloaded once per machine and shared across all work items on that machine.

Platform d (SDK) d/.nuget before d/.nuget after t (tests) other Total Before Total After Reduction
Windows x64 ~508 MB 760.3 MB 67.8 MB ~100 MB ~4 MB ~1,372 MB ~680 MB ~692 MB (50%)
Mac arm64 ~437 MB 408.9 MB 67.8 MB ~100 MB ~4 MB ~950 MB ~609 MB ~341 MB (36%)
Linux x64 453.8 MB 246.2 MB 67.9 MB 99.9 MB ~4 MB 804 MB 626 MB 178 MB (22%)

Linux x64 sizes are exact (from Helix telemetry). Windows/Mac d (SDK) sizes estimated from download component ratios (~1.08x sum of runtime archives). The d/.nuget before/after sizes are exact (measured from actual payload zips).

Installer files excluded from shared payload per platform:

Platform Files excluded (now only in EndToEnd.Tests)
Windows .zip (280.5 MB), .tar.gz (214.8 MB), .exe (196.6 MB), .wixpdb (0.5 MB)
Linux x64 .tar.gz (178.4 MB)
Mac arm64 .tar.gz (170.4 MB), .pkg (170.6 MB)

The remaining ~67.8 MB across all platforms is the actual NuGet packages needed by tests.

…Analyzers multiplier

- Replace TargetRid.StartsWith('osx-arm64') with TargetOS/TargetArchitecture
  condition for clearer, more explicit platform detection
- Increase NetAnalyzers MethodLimitMultiplier from 5 to 10, reducing its
  Windows partitions from ~41 to ~21 work items (targeting 5min/item)

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings May 29, 2026 19:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tunes Helix unit-test work item partitioning by making macOS arm64 detection more explicit and reducing over-partitioning for NetAnalyzers tests.

Changes:

  • Uses TargetOS and TargetArchitecture instead of parsing TargetRid for macOS arm64 partition sizing.
  • Increases NetAnalyzers MethodLimitMultiplier from 5 to 10 to create fewer, larger Helix work items.

@MichaelSimons
MichaelSimons force-pushed the michaelsimons/musical-lamp branch from 2d6ba49 to 807b836 Compare June 2, 2026 15:16
@MichaelSimons MichaelSimons changed the title Tune Helix partitioning: TargetOS/TargetArchitecture and NetAnalyzers multiplier Tune Helix partitioning/payload Jun 2, 2026
@MichaelSimons
MichaelSimons force-pushed the michaelsimons/musical-lamp branch from 807b836 to da7bf60 Compare June 2, 2026 18:57
Comment thread test/UnitTests.proj Resolved
Comment thread test/UnitTests.proj Resolved
@MichaelSimons
MichaelSimons force-pushed the michaelsimons/musical-lamp branch from da7bf60 to c337950 Compare June 2, 2026 19:42
Separate large installer archives (.zip, .tar.gz, .rpm, .deb) from the
shared correlation payload that all Helix work items download. Instead:

- NuGet packages are staged to a filtered directory (HelixNuGetPayload)
  and used as the d/.nuget correlation payload
- Installer archives are staged to HelixInstallerArchives and included
  only in EndToEnd.Tests work items via the generic AdditionalPayloadDir
  metadata mechanism
- At runtime, a pre-command copies the archives from the work item
  payload into the correlation payload's d/.nuget directory so test
  path resolution remains unchanged

This reduces the shared payload by ~500MB (SDK .zip + .tar.gz), saving
download and unpack time for all work items except the 2 that actually
need the archives.

Co-authored-by: Copilot <[email protected]>
@MichaelSimons
MichaelSimons requested a review from mmitche June 2, 2026 19:43
@MichaelSimons
MichaelSimons merged commit 0ec809a into main Jun 3, 2026
25 checks passed
@MichaelSimons
MichaelSimons deleted the michaelsimons/musical-lamp branch June 3, 2026 18:58
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants