Skip to content

stackoverflow when running ./build -tests #8220

@smoothdeveloper

Description

@smoothdeveloper

edit: known issue when running test compiled in Debug mode code.

work around:

build.cmd -test -c Release

I'm getting this when running ./build -tests

  V Reverse slicing should not work with at symbol in 1st slice index [2ms]
  V Reverse slicing should not work with at symbol in 2nd slice index [3ms]
  V Reverse slicing should not work with at symbol in both slice index [2ms]
  V Fixed index 4d slicing should not be available in 47 [5s 249ms]
  V Else branch is a function that returns int while if branch is string [5s 297ms]
  V Reverse slicing should work with overloaded infix hat [5s 528ms]
The active test run was aborted. Reason: Test host process crashed : Process is terminated due to StackOverflowException.

Test run in progress.Results File: C:\dev\src\github.com\Microsoft\masterfsharp\artifacts\TestResults\Debug\FSharpSuite.Tests_net472.xml

Test Run Aborted.
Total tests: Unknown
     Passed: 97
 Total time: 1.3206 Minutes
Deferred Messages

  Detailed Build Summary
  ======================


  ============================== Build Hierarchy (IDs represent configurations) =====================================================
  Id                  : Exclusive Time   Total Time   Path (Targets)
  -----------------------------------------------------------------------------------------------------------------------------------
  0                   : 80.547s           80.547s       C:\dev\src\github.com\Microsoft\masterfsharp\tests\fsharp\FSharpSuite.Tests.fsproj (VSTest)

  ============================== Node Utilization (IDs represent configurations) ====================================================
  Timestamp:            1        Duration   Cumulative
  -----------------------------------------------------------------------------------------------------------------------------------
  637146961850490571:   0        80.549s     80.549s # (scale 1:1000)
  -----------------------------------------------------------------------------------------------------------------------------------
  Utilization:          100.0    Average Utilization: 100.0

Build FAILED.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:01:20.58
Command failed to execute with exit code 1: C:\Program Files\dotnet\dotnet.exe test C:\dev\src\github.com\Microsoft\masterfsharp\tests\fsharp\FSharpSuite.Tests.fsproj -c Debug -f net472 -v n --test-adapter-path . --logger "nunit;LogFilePath=C:\dev\src\github.com\Microsoft\masterfsharp\artifacts\TestResults\Debug\FSharpSuite.Tests_net472.xml" /bl:C:\dev\src\github.com\Microsoft\masterfsharp\artifacts\log\Debug\FSharpSuite.Tests_net472.binlog --no-restore --no-build
System.Management.Automation.RuntimeException: Command failed to execute with exit code 1: C:\Program Files\dotnet\dotnet.exe test C:\dev\src\github.com\Microsoft\masterfsharp\tests\fsharp\FSharpSuite.Tests.fsproj -c Debug -f net472 -v n --test-adapter-path . --logger "nunit;LogFilePath=C:\dev\src\github.com\Microsoft\masterfsharp\artifacts\TestResults\Debug\FSharpSuite.Tests_net472.xml" /bl:C:\dev\src\github.com\Microsoft\masterfsharp\artifacts\log\Debug\FSharpSuite.Tests_net472.binlog --no-restore --no-build
at Exec-CommandCore, C:\dev\src\github.com\Microsoft\masterfsharp\eng\build-utils.ps1: line 50
at Exec-Console, C:\dev\src\github.com\Microsoft\masterfsharp\eng\build-utils.ps1: line 119
at TestUsingNUnit, C:\dev\src\github.com\Microsoft\masterfsharp\eng\build.ps1: line 260
at <ScriptBlock>, C:\dev\src\github.com\Microsoft\masterfsharp\eng\build.ps1: line 345
at <ScriptBlock>, <No file>: line 1

I've seen similar error running tests in VS and Rider.

Also, I'm not able to use nunit GUI test runner which gives:

FSharpSuite.Tests.dll (TestFixtureSetUp):
Could not load file or assembly 'FSharpSuite.Tests, Version=10.7.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

I've tried loading artifacts\bin\FSharpSuite.Tests\Debug\net472\FSharpSuite.Tests.dll in it.

Sorry if this is known issue, looking for a work around.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions