You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Flaky test] MTPHelpSnapshotTests races with DOTNET_NOLOGO mutation under parallel execution #56264
MTPHelpSnapshotTests.VerifyMTPHelpOutput intermittently captures dotnet test --help while another dotnet.Tests class has set the process-wide DOTNET_NOLOGO environment variable. The snapshot then reports the --no-logo default as True instead of False.
The failing run includes #56036, which changed dotnet.Tests from serial execution to class-level parallelization.
Failure
- [default: False]+ [default: True]
Analysis
The Helix shard ran with four class-level workers and included both MTPHelpSnapshotTests and TestCommandDefinitionTests.
MTPCommandHonorsDotnetNoLogoEnvironmentVariable temporarily sets DOTNET_NOLOGO to true and false. It holds ResourceLock(WellKnownResources.EnvironmentVariables), but VerifyMTPHelpOutput does not. Resource locks only coordinate tests declaring the same resource, so the snapshot can launch its child process while DOTNET_NOLOGO=true.
CommonOptions.CreateNoLogoOption(defaultValue: false) reads DOTNET_NOLOGO, producing the exact observed difference.
Expected behavior
Tests that read process-global environment state during product launch should coordinate with tests that mutate it. Applying the environment-variable resource lock to the snapshot test would close this race.
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1591575 Error message validated:[Microsoft.DotNet.Cli.Test.Tests.MTPHelpSnapshotTests.VerifyMTPHelpOutput] Result validation: ✅ Known issue matched with the provided build. Validation performed at: 9/11/2026 2:21:34 PM UTC
🟩 Confidence:high - Clear analysis identifies the exact race condition, affected tests, and file paths under Area-CLI's CODEOWNERS scope.
➡️ Summary: MTPHelpSnapshotTests intermittently fails because it reads DOTNET_NOLOGO without coordinating with tests that mutate that env var under parallel execution. Apply the environment-variable resource lock to the snapshot test to close the race.
Generated by 🏷️ Issue Triage for #56264 · copilot · auto · 54.2 AIC · ⌖ 11.5 AIC · ⊞ 14.6K · ◷
Activity
github-actions commentedon Sep 11, 2026
🎯 Agentic Issue Triage
Triage Assessment:
@vlada-shubina|@dotnet/dotnet-clihigh- Clear analysis identifies the exact race condition, affected tests, and file paths under Area-CLI's CODEOWNERS scope.➡️ Summary:
MTPHelpSnapshotTestsintermittently fails because it readsDOTNET_NOLOGOwithout coordinating with tests that mutate that env var under parallel execution. Apply the environment-variable resource lock to the snapshot test to close the race.Youssef1313 commentedon Sep 14, 2026
FYI @Evangelink