From 47db96defadb59bf2b09188ca3df4392c9178492 Mon Sep 17 00:00:00 2001 From: XperiAndri Date: Mon, 19 Oct 2026 15:22:59 +0200 Subject: [PATCH] build: compile the test project without parallel compilation The F# compiler fails now and then with "FS0073: internal error: Undefined or unsolved type variable: 'C" while it compiles the test project in Release (at SeqLikeAccessContract<'C>, for example). The failure is intermittent, and it comes more often on runners with few cores. The CI jobs of the open pull requests failed with it in Release on macOS, Ubuntu and Windows. Reported to the F# compiler: https://github.com/dotnet/fsharp/issues/20812 The project now sets ParallelCompilation to false, which passes --parallelcompilation- to the compiler. 6 of 66 builds failed without the switch (12 builds, 30 builds, and 24 builds restricted to 4 cores); none of 72 builds failed with it (24 builds, and 48 builds restricted to 4 cores). The switch costs about one second per build. The compiler marks it as meant for tests only (FS0075), so the project silences that warning. Co-Authored-By: Claude Sonnet 5.5 --- .../FSharp.Collections.Immutable.Tests.fsproj | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/FSharp.Collections.Immutable.Tests/FSharp.Collections.Immutable.Tests.fsproj b/tests/FSharp.Collections.Immutable.Tests/FSharp.Collections.Immutable.Tests.fsproj index 67aef272..be217625 100644 --- a/tests/FSharp.Collections.Immutable.Tests/FSharp.Collections.Immutable.Tests.fsproj +++ b/tests/FSharp.Collections.Immutable.Tests/FSharp.Collections.Immutable.Tests.fsproj @@ -10,6 +10,19 @@ true + + + false + $(NoWarn);FS0075 + + PreserveNewest