typelevel / cats

Lightweight, modular, and extensible library for functional programming.
https://typelevel.org/cats/
Other
5.24k stars 1.19k forks source link

Sporadic test errors since upgrading to Native 0.5 #4647

Open armanbilge opened 2 weeks ago

armanbilge commented 2 weeks ago

Most recently https://github.com/typelevel/cats/actions/runs/10556403923/job/29242594012

  [error] Error: Total 12066, Failed 0, Errors 12, Passed 12054
  [error] Error during tests:
  [error]   cats.tests.MapSuite
  [error]   cats.tests.ReducibleSuiteAdditional
  [error]   cats.tests.BoundedEnumerableSuite
  [error]   cats.tests.TraverseListSuiteUnderlying
  [error]   cats.tests.NonEmptyAlternativeSuite
  [error]   cats.tests.FunctorSuite
  [error]   cats.tests.SemigroupKSuite
  [error]   cats.tests.FunctionKLiftSuite
  [error]   cats.tests.KleisliSuite
  [error]   cats.tests.TupleSuite
  [error]   cats.tests.IorSuite
  [error]   cats.tests.WriterSuite

But this has been haunting us since we upgraded.

danicheg commented 2 weeks ago

Alright. What if we divide tests into two groups for Native build?

armanbilge commented 1 week ago

@danicheg Unfortunately the problem is likely a bug with MUnit or Scala Native itself. MUnit was hastily upgraded to multithreading.

satorg commented 1 week ago

I wonder – are there some other projects that suffer from the similar issue after upgrading to ScalaNative v5.x? I only see it for Cats for now, but I may not be aware of all the projects around.