Repository navigation
Fix MTP help snapshot environment race - #56286
Merged
Evangelink merged 1 commit intoSep 14, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The reviewed change addresses the race with no unresolved issues.
Review tier: Lite
Findings: None
What changed in this PR
Fixes an environment-variable race in the MTP help snapshot test involving DOTNET_NOLOGO.
Changes:
- Adds environment-variable resource locking to
VerifyMTPHelpOutput. - Preserves parallelism for unrelated test classes.
| File | Description |
|---|---|
test/dotnet.Tests/CommandTests/Test/MTPHelpSnapshotTests.cs |
Serializes the snapshot test with environment-mutating tests. |
Evangelink
enabled auto-merge (squash)
September 14, 2026 09:13
0101
approved these changes
Sep 14, 2026
Evangelink
had a problem deploying
to
copilot-pat-pool
September 14, 2026 11:34 — with
GitHub Actions
Failure
Youssef1313
reviewed
Sep 14, 2026
| } | ||
|
|
||
| [TestMethod] | ||
| [ResourceLock(WellKnownResources.EnvironmentVariables)] |
Member
There was a problem hiding this comment.
Should whatever other test that was competing also have the same ResourceLock?
This branch had an error being deployed
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
MTPHelpSnapshotTests.VerifyMTPHelpOutputwith tests that mutate process environment variablesDOTNET_NOLOGOfrom changing the--no-logodefault captured by the help snapshot during class-level parallel executionFixes #56264
Testing
build.cmdMTPHelpSnapshotTeststogether withMTPCommandHonorsDotnetNoLogoEnvironmentVariableonce, then repeated the paired run three more times