Build just once when tfms run in parallel by nohwnd · Pull Request #15465 · microsoft/vstest (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Merged
merged 2 commits into
Mar 10, 2026
Conversation
Description
Running dotnet test would trigger build of assets from two places at the same time, which does more work, and also fails occasionally when they run into each other.
Related issue
Fix #15453
Copilot AI review requested due to automatic review settings
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 prevents parallel dotnet test runs (across TFMs) from rebuilding/patching the same test assets concurrently by introducing a named mutex guarding the one-time build/setup work.
Changes:
- Added a named
Mutexto serialize build/setup across parallel test runs within the same repo clone. - Moved build/setup steps (unzip, cache cleanup, asset builds, dotnet patching) behind the mutex.
- Added a timeout path for waiting test runs.
This was referenced
May 26, 2026
This was referenced
Jun 16, 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
[ Show hidden characters]({{ revealButtonHref }})