Repository navigation
Serialize conflicting dotnet-new template tests - #56020
Merged
Merged
Conversation
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: nagilson <[email protected]>
Copilot
AI
changed the title
[WIP] Fix dotnet-new integration tests hang on Linux until Helix timeout
Limit dotnet-new integration test parallelism
Aug 29, 2026
Co-authored-by: Copilot App <[email protected]>
nagilson
approved these changes
Sep 2, 2026
|
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.
🟢 Approval recommended
The changes are low-risk test-serialization annotations, with only minor maintainability nits (comment traceability) identified.
Pull request overview
This PR mitigates recurring Linux Helix hangs in dotnet-new.IntegrationTests by preventing two specific template test classes from running concurrent dotnet build workloads against each other, while keeping class-level parallelism enabled for the rest of the test project.
Changes:
- Add an MSTest
ResourceLocktoDotnetClassTemplateTeststo serialize against the shared lock key. - Add the same MSTest
ResourceLocktoCommonTemplatesTestsso the two classes cannot execute concurrently.
File summaries
| File | Description |
|---|---|
| test/dotnet-new.IntegrationTests/DotnetClassTemplateTests.cs | Adds a class-level ResourceLock to prevent concurrent execution with CommonTemplatesTests. |
| test/dotnet-new.IntegrationTests/CommonTemplatesTests.cs | Adds a class-level ResourceLock to prevent concurrent execution with DotnetClassTemplateTests. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
Co-authored-by: Copilot App <[email protected]>
Evangelink
approved these changes
Sep 3, 2026
Evangelink
left a comment
Member
There was a problem hiding this comment.
Note
This approval was generated with GitHub Copilot after reviewing the code and linked CI evidence.
nagilson
disabled auto-merge
September 3, 2026 16:46
nagilson
approved these changes
Sep 3, 2026
nagilson
enabled auto-merge
September 3, 2026 16:47
lbussell
approved these changes
Sep 4, 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
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.
Three Linux Helix runs hung with
CommonTemplatesTestsandDotnetClassTemplateTestsexecuting nesteddotnet buildprocesses concurrently.dotnet-new.IntegrationTests.ResourceLock.MSTestParallelizeWorkers=2: the affected two-core Helix workers already selected two workers by default, so that setting did not reduce concurrency and the PR validation reproduced the hang.The focused run completed all 304 tests from both classes (303 passed, 1 skipped), and its TRX contained no overlapping execution intervals between the classes.