Skip to content

F# sdk_scenarios hitting OOM during x86 build tests #4971

@LoopedBard3

Description

@LoopedBard3

F# tests that are part of sdk_scenarios are hitting OOM exceptions during their testing (during build). I plan on disabling the tests for x86 for now so this will track fixing and reenabling it. The F# scenario also seems pretty out of date so may see if it needs to be updated as well.

Error:

(.venv) <dir>\e>python test.py sdk build_no_change --scenario-name "F# Compiler Service Build(No Change)" --upload-to-perflab-container 
----------------------------------------------
Initializing logger 2025-09-23 12:24:03.115932
----------------------------------------------
$ <basedir>\p\startup\Startup.exe --app-exe dotnet --metric-type ProcessTime --trace-name "F# Compiler Service Build(No Change)_startup" --gui-app false --process-will-exit true --iterations 5 --timeout 600 --warmup true --working-dir app --report-json-path traces\perf-lab-report.json --trace-directory traces --scenario-name "F# Compiler Service Build(No Change)" --app-args build --environment-variables DOTNET_MULTILEVEL_LOOKUP=0
Running dotnet (args: "build")
Working Directory: app
Iteration set up:  (args: )
Iteration clean up:  (args: )
=============== Warm up ================
***Test***
Added environment variable: DOTNET_MULTILEVEL_LOOKUP=0
  Determining projects to restore...
  Restored <dir>\e\app\FSharp.Compiler.Service.fsproj (in 685 ms).
<basedir>\p\dotnet\sdk\10.0.100-rc.2.25468.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(351,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\sformat.fs(1632,9): warning FS1182: The value 'output_any' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\sformat.fs(1638,9): warning FS1182: The value 'any_to_string' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\sr.fs(32,9): warning FS1182: The value 'mkFunTy' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\illib.fs(922,9): warning FS1182: The value 'canceled' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\FileSystem.fs(38,9): warning FS1182: The value 'sub' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\lib.fs(601,16): warning FS1182: The value 'iter' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\ImmutableArray.fs(77,9): warning FS1182: The value 'map2' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Utilities\ImmutableArray.fs(92,9): warning FS1182: The value 'mapi2' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Facilities\CompilerLocation.fs(54,9): warning FS1182: The value 'maxDataLength' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(4627,7): warning FS3548: Pattern discard is not allowed for union case that takes no data. [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(32,5): warning FS1182: The value 'int_order' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(94,5): warning FS1182: The value 'splitNamespaceMemoized' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(147,5): warning FS1182: The value 'unsplitTypeName' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(429,5): warning FS1182: The value 'isMscorlib' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(3237,5): warning FS1182: The value 'filterILMethodDefs' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(3455,5): warning FS1182: The value 'tname_CompilerGeneratedAttribute' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\AbstractIL\il.fs(3458,5): warning FS1182: The value 'tname_DebuggableAttribute' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
....... (bunch more warnings)
<dir>\e\app\Service\ServiceLexing.fs(30,9): warning FS1182: The value 'HASH_IDENT' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Service\ServiceInterfaceStubGenerator.fs(526,19): warning FS1182: The value '(|EventFunctionType|_|)' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Service\ServiceStructure.fs(67,9): warning FS1182: The value 'rangeOfSynPatsElse' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Interactive\fsi.fs(282,11): warning FS3548: Pattern discard is not allowed for union case that takes no data. [<dir>\e\app\FSharp.Compiler.Service.fsproj]
<dir>\e\app\Legacy\LegacyMSBuildReferenceResolver.fs(30,18): warning FS1182: The value 'ReplaceVariablesForLegacyFxOnWindows' is unused [<dir>\e\app\FSharp.Compiler.Service.fsproj]
error FS0193 : internal error : Exception of type 'System.OutOfMemoryException' was thrown. [<dir>\e\app\FSharp.Compiler.Service.fsproj]
    219 Warning(s)
    1 Error(s)
Time Elapsed 00:00:46.68


Process 24000 failed to run. Result: ExitedWithError
Process exited with status 4294967295
Run failure registered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions