Repository navigation
Fix locked directory cleanup in Template authoring tests - #56367
Merged
Merged
Conversation
Keep the task integration tests serial and run child dotnet commands through the SDK test harness so temporary directories are not left locked by parallel build processes. 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. |
Make the serial MSTest scope explicit and remove the unrelated test-local dotnet command wrapper. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Verify the cleanup fix and revise the comment to avoid asserting an unproven cause.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
Updates Template authoring integration tests to reduce Windows temporary-directory locking failures.
Changes:
- Sets
MSTestParallelizeScopetoNone. - Documents the serialization rationale.
| File | Description |
|---|---|
test/TemplateEngine/Microsoft.TemplateEngine.Authoring.Tasks.IntegrationTests/Microsoft.TemplateEngine.Authoring.Tasks.IntegrationTests.csproj |
Configures serialized test execution and adds explanatory documentation. |
Describe the serial test setting as mitigation for the observed Windows lock and link the tracking issue without attributing the lock to an unverified process. Co-authored-by: Copilot App <[email protected]>
Keep class-level parallelism enabled while serializing only the two test classes that launch child dotnet builds through a shared resource lock. Co-authored-by: Copilot App <[email protected]>
This was referenced Sep 22, 2026
Evangelink
enabled auto-merge (squash)
September 24, 2026 07:42
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
dsplaisted
approved these changes
Oct 11, 2026
nagilson
added a commit
that referenced
this pull request
Oct 24, 2026
Restore the exact guards from #56367, removed by c328805. The FullFramework CanRunTask cleanup failure matches #56222. Preserve class-level parallelism while serializing the two contending test classes. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f
dotnet-maestro Bot
added a commit
that referenced
this pull request
Oct 27, 2026
[main] Source code updates from dotnet/dotnet - Merge main and resolve Layout guidance conflict Preserve both macOS tool signing and SDK staging incrementality guidance. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Fix browser tools build outputs documentation link Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Reconcile browser server refactor with AOT serialization Use the shared browser server base and synchronous lifetime across the flowed Hot Reload implementation. Preserve AOT JSON metadata and adapt serialization and environment tests. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Keep sdk-tasks transitive dependencies compatible with bootstrap MSBuild Disable central transitive pinning for runtime-excluded MSBuild dependencies, matching the ApiCompat task project. This prevents compilation against newer metadata assemblies unavailable in the bootstrap host. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Complete pending VMR backflow for build 337783 Apply the dependency update generated by darc vmr resolve-conflict for subscription 94ba9a9b-a084-4c1e-bf44-d0c711c17773. Advance source provenance to VMR 990015a5472ed2d6d6669352dd9f365655160f39 and regenerate companion version properties. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Resolve Native AOT managed test module through MSBuild Query TargetPath using the publish configuration and RID instead of searching for a guessed RID-specific output directory. Keep both native test runners aligned and fail explicitly if evaluation or module validation fails. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Retain managed build outputs for native CLI integration tests Native AOT optimized publishing deliberately skips Build and its managed bin outputs. The test-module integration scenario requires those runnable outputs, so disable optimized publishing only for the test project while leaving product and host publishing unchanged. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Restore transitional test assets and reconcile flowed test setup Retain net11 runtimes and reference packs in the test-only layout while flowed SDK packs target net12. Restore root-command naming and net11 WASM workload setup from main, and supply the VSTest entrypoint in the synthetic layout fixture. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Align supported frameworks and test output with flowed packs Advertise net12 in the supported framework and implicit define list now that the flowed packs target it. Keep MTP expectations tied to generated net11 test apps rather than the parent SDK runtime, with regression coverage for both regex helpers. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Keep unsupported-framework test above the .NET 12 version cap Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Fix downlevel desktop test assets and latest-TFM preview assertions Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Match unspecified virtual-project framework to the bundled SDK Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Fix watch framework, scoped Windows shutdown and legacy Blazor test hangs Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Provision missing workload and Windows desktop test runtimes Acquire workload-matched net11 Core and ASP.NET shared frameworks alongside the test-pack versions. Provision the Windows Desktop shared framework required for net11 GUI test startup, without changing the shipping layout. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Restore template authoring resource locks lost in codeflow Restore the exact guards from #56367, removed by c328805. The FullFramework CanRunTask cleanup failure matches #56222. Preserve class-level parallelism while serializing the two contending test classes. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Isolate VSTest verbosity assertions from MSBuild console logging Quiet only the MSBuild console logger so its detailed messages cannot split VSTest result lines. Preserve VSTest verbosity, result assertions, and the expected failing-test exit code. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Match default-document assets by filename in endpoint test Avoid treating .br or .gz inside random parent directory names as compression extensions. Preserve the endpoint assertions and manifest baselines. Co-authored-by: Copilot <[email protected]> Copilot-Session: 15aae84f-8dff-42ac-b639-eed530fcdf5f - Restore NuGet signature verification for file-based apps Co-authored-by: Copilot App <[email protected]> - Restore CA1859 file-local type safeguards Co-authored-by: Copilot App <[email protected]> - Restore CA1001 disposable auto-property analysis Co-authored-by: Copilot App <[email protected]> - Restore CA1859 anonymous-type and value-flow safeguards Co-authored-by: Copilot App <[email protected]> - Restore NativeAOT first-run localization Co-authored-by: Copilot App <[email protected]> - Restore shared CI detection for test output Co-authored-by: Copilot App <[email protected]> - Restore Web AOT garbage collection defaults Co-authored-by: Copilot App <[email protected]> - Restore vendored MTP coverage reporter baseline Co-authored-by: Copilot App <[email protected]> - Restore dotnetup contributor documentation Co-authored-by: Copilot App <[email protected]> - Restore stale-reference maintenance automation Co-authored-by: Copilot App <[email protected]> - Restore supported runtime version features Co-authored-by: Copilot App <[email protected]> - Restore browser refresh server cleanup and framework support Preserve the consolidated server, source-generated JSON, and existing browser protocol regression coverage while restoring the lost refactor. Co-authored-by: Copilot App <[email protected]> - Restore browser socket error logging Co-authored-by: Copilot App <[email protected]> - Restore ILLink incremental semaphore compatibility tests Co-authored-by: Copilot App <[email protected]> - Align browser guidance with restored shared implementation Co-authored-by: Copilot App <[email protected]>
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
Microsoft.TemplateEngine.Authoring.Tasks.IntegrationTestsResourceLockto the two test classes that launch childdotnetbuilds, serializing only that contending workloadFixes #56222
Validation
Microsoft.TemplateEngine.Authoring.Tasks.IntegrationTestssuccessfullyMSTestParallelizeScopeproperty isClassLevel