Conversation
…MultiProjectAnalysisTests Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
✅ No release notes required |
|
@copilot : failed FSharp.Compiler.Service.Tests.MultiProjectAnalysisTests.In-memory cross-project references to projects using generative type provides should fallback to on-disk references (25s 858ms) Error output |
…P assembly loading races on net472 Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Head branch was pushed to by a user without write access
The In |
The test
In-memory cross-project references to projects using generative type provides should fallback to on-disk referencesshared the module-levelcheckerinstance with all other tests inMultiProjectAnalysisTests.fs, causing intermittent CI failures due to parallel execution races when type providers are involved — particularly on net472 where type providers run in-process.Changes
MultiProjectAnalysisTests.fs:[<Collection(nameof NotThreadSafeResourceCollection)>]module (GenerativeTypeProviderFallbackTest), which enforcesDisableParallelization = truevia xUnit's collection mechanism. This prevents the test from running in parallel with other test collections, avoiding type provider assembly loading races on net472. This follows the same pattern used byClearLanguageServiceRootCachesTestandScriptClosureCacheUseinProjectAnalysisTests.fs.FSharpCheckerinstance scoped to the test function, shadowing the shared module-level checker for allParseAndCheckFileInProjectcalls within the test.Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.