Skip to content

Fix build race condition with MSTest.GlobalConfigsGenerator #5817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 19, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jun 18, 2025

This ensures we are not building MSTest.GlobalConfigsGenerator twice in parallel (once by the normal build, and once through dotnet run). It's then required to ensure GlobalConfigsGenerator is built before MSTest.Analyzers.Package, which is ensured via the slnx change. Then, we need to ensure we use slnx for building (either directly or via slnf).

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.47%. Comparing base (1dcce25) to head (6ba0897).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5817      +/-   ##
==========================================
+ Coverage   73.08%   73.47%   +0.39%     
==========================================
  Files         608      608              
  Lines       38370    37277    -1093     
==========================================
- Hits        28041    27388     -653     
+ Misses      10329     9889     -440     
Flag Coverage Δ
Debug 73.47% <ø> (+0.39%) ⬆️
integration 73.47% <ø> (+0.02%) ⬆️
production 73.47% <ø> (+0.39%) ⬆️
unit 73.47% <ø> (+4.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Youssef1313 Youssef1313 changed the title Draft Fix NonWindowsTests.slnf to include dependencies of test projects and use it for build as well Jun 18, 2025
@Youssef1313 Youssef1313 marked this pull request as ready for review June 18, 2025 18:59
@Youssef1313 Youssef1313 changed the title Fix NonWindowsTests.slnf to include dependencies of test projects and use it for build as well Fix build race condition with MSTest.GlobalConfigsGenerator Jun 19, 2025
@Youssef1313 Youssef1313 merged commit 35b7726 into main Jun 19, 2025
8 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/sln branch June 19, 2025 07:01
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