Skip to content

Tests fail in build.cmd #10968

Closed
Closed

Description

@auduchinok

When running ./build.cmd -c Release -testDesktop it fails with lots of errors like this:

  Passed FSharp.Core.UnitTests.Collections.SetModule.Fold [3 ms]
[xUnit.net 00:01:11.27]     FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.findBack is consistent [FAIL]
[xUnit.net 00:01:11.27]       System.MissingMethodException : Method not found: 'Microsoft.FSharp.Core.FSharpOption`1<FsCheck.Replay> FsCheck.Config.get_Replay()'.
[xUnit.net 00:01:11.27]       Stack Trace:
[xUnit.net 00:01:11.27]            at FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.smallerSizeCheck[a](a testable)
[xUnit.net 00:01:11.27]         FSharp.Core\Microsoft.FSharp.Collections\CollectionModulesConsistency.fs(281,0): at FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.findBack is consistent()
[xUnit.net 00:01:11.27]     FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.tryLast is consistent [FAIL]
[xUnit.net 00:01:11.27]       System.MissingMethodException : Method not found: 'Microsoft.FSharp.Core.FSharpOption`1<FsCheck.Replay> FsCheck.Config.get_Replay()'.
[xUnit.net 00:01:11.27]       Stack Trace:
[xUnit.net 00:01:11.27]            at FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.smallerSizeCheck[a](a testable)
[xUnit.net 00:01:11.27]         FSharp.Core\Microsoft.FSharp.Collections\CollectionModulesConsistency.fs(1183,0): at FSharp.Core.UnitTests.Collections.CollectionModulesConsistency.tryLast is consistent()

Windows 10
Windows Terminal + PowerShell

Is there any additional info I could provide?

Activity

  1. cartermp commented on Jan 28, 2021

    @cartermp
    Contributor
  2. vzarytovskii commented on Feb 1, 2021

    @vzarytovskii
    Member

    Some additional errors:

    [xUnit.net 00:00:01.50]       System.InvalidCastException : Unable to cast object of type 'Arrow@249-1[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,System.Boolean]]]]' to type 'Testable`1[Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,Microsoft.FSharp.Core.FSharpFunc`2[System.Int32,System.Boolean]]]]]'.
    [xUnit.net 00:00:01.50]       Stack Trace:
    [xUnit.net 00:00:01.50]            at Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicFunctions.UnboxGeneric[T](Object source)
    [xUnit.net 00:00:01.50]            at FsCheck.Runner.check[a](Config config, a p)
    [xUnit.net 00:00:01.50]            at FsCheck.Check.One[Testable](Config config, Testable property)
    [xUnit.net 00:00:01.50]     FSharp.Core.UnitTests.DiscriminatedUnionTypes.struct unions support [<CustomEquality>] [FAIL]
    

    Edit: it seems that xUnit runner (?) is loading wrong FSharp.Core/FsCheck dll?

  3. added this to the Backlog milestone on Feb 6, 2021
  4. cartermp commented on Feb 6, 2021

    @cartermp
    Contributor

    Any on how to resolve this?

  5. vzarytovskii commented on Feb 7, 2021

    @vzarytovskii
    Member

    Any on how to resolve this?

    Not from my initial investigation, I wasn't able to repro it on any of my machines.

  6. KevinRansom commented on Feb 8, 2021

    @KevinRansom
    Contributor

    @auduchinok , if this still happens for you can you zip the contents of the artifacts\Log directory and the artifacts\bin\FSharp.Core.UnitTests for the configuration you are testing, I will take a look.

    Thanks

    Kevin

  7. auduchinok commented on Feb 11, 2021

    @auduchinok
    MemberAuthor

    @KevinRansom Thanks! Yes, I'll try to send the logs soon. I've previously send them to @vzarytovskii, so it could probably be faster to ask him for now.

  8. vzarytovskii commented on Feb 11, 2021

    @vzarytovskii
    Member

    Oops, I've missed Kevin's comment somehow. @KevinRansom here are binlogs and build log.

  9. auduchinok commented on Mar 16, 2021

    @auduchinok
    MemberAuthor

    It doesn't reproduce on a clean Windows install anymore.

  10. removed this from the Backlog milestone on Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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