Repository: typelevel/cats

Issue #3734: CI Test Errors FiniteDuration antisymmetry
Created: 2021-01-13T22:34:44Z
Some CI failures on Scala 3.
CI failure from #3727 :

  Click to expand!
failing seed for order.antisymmetry eq is tJVxJ6pgwg7UrNv9sWAqwY4eokyiECpCf8K9kK8SQhC=
failing seed for order.antisymmetry eq is tJVxJ6pgwg7UrNv9sWAqwY4eokyiECpCf8K9kK8SQhC=
==> X cats.kernel.laws.Tests.Order[FiniteDuration]: order.antisymmetry eq  0.046s munit.FailException: /home/runner/work/cats/cats/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala:201
200:  checkAll("Order[Duration]", OrderTests[Duration].order)
201:  checkAll("Order[FiniteDuration]", OrderTests[FiniteDuration].order)
202:  checkAll("Order[UUID]", OrderTests[UUID].order)


CI failure from #3730 :

  Click to expand!
failing seed for hash.antisymmetry eq is tJ9I1dkawrvX2DEc6NGtz5qNQw96EBLm1nV0-XvgFmA=
==> X cats.kernel.laws.Tests.Hash[FiniteDuration]: hash.antisymmetry eq  0.028s munit.FailException: /home/runner/work/cats/cats/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala:299
298:  checkAll("Hash[Duration]", HashTests[Duration].hash)
299:  checkAll("Hash[FiniteDuration]", HashTests[FiniteDuration].hash)
300:

Failing seed: 5MC5_eL2QrqZQkkWTTuITf7k9M0Wy1b5-RAvsNJZxHO=
You can reproduce this failure by adding the following override to your suite:

  override val scalaCheckInitialSeed = "5MC5_eL2QrqZQkkWTTuITf7k9M0Wy1b5-RAvsNJZxHO="

Falsified after 62 passed tests.
> Labels of failing property: 
Expected: true
Received: false
> ARG_0: -3888 hours
> ARG_1: -162 days
> ARG_2: org.scalacheck.GenArities$$Lambda$458/12131917@1f846122

Duplicate issue #3762: Laws failure for Order[FiniteDuration]
Created: 2021-02-01T10:00:28Z
I got hit by this on #3747 (as certain as I can be that it's unrelated)
failing seed for order.antisymmetry eq is Ue31ofRHQVK9wcbnhBqISNebQdvZZhUREH6EgJBgjHB=
==> X cats.kernel.laws.Tests.Order[Duration]: order.antisymmetry eq  0.041s munit.FailException: /home/runner/work/cats/cats/kernel-laws/shared/src/test/scala/cats/kernel/laws/LawTests.scala:200
199:  checkAll("Order[BigInt]", OrderTests[BigInt].order)
200:  checkAll("Order[Duration]", OrderTests[Duration].order)
201:  checkAll("Order[FiniteDuration]", OrderTests[FiniteDuration].order)
Failing seed: hzeHOUHfb3_7x_2BxKaJnuLQt8g8rW9F_NIqhIjY5eA=
You can reproduce this failure by adding the following override to your suite:
override val scalaCheckInitialSeed = "hzeHOUHfb3_7x_2BxKaJnuLQt8g8rW9F_NIqhIjY5eA="
Falsified after 93 passed tests.

Labels of failing property:
Expected: true
Received: false
ARG_0: 1224 hours
ARG_1: 51 days
ARG_2: org.scalacheck.GenArities$$Lambda$495/0x0000000800dcd108@aaedf00
at munit.Assertions.fail(Assertions.scala:261)
at munit.Assertions.fail$(Assertions.scala:255)
at munit.FunSuite.fail(FunSuite.scala:11)
at munit.ScalaCheckSuite.$anonfun$propToTry$4(ScalaCheckSuite.scala:104)
at scala.util.Try$.apply(Try.scala:213)
at munit.ScalaCheckSuite.propToTry(ScalaCheckSuite.scala:104)
at munit.ScalaCheckSuite.$anonfun$scalaCheckPropTransform$3(ScalaCheckSuite.scala:46)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at munit.Suite$$anon$1.execute(Suite.scala:26)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete(Promise.scala:372)
at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete$(Promise.scala:371)
at scala.concurrent.impl.Promise$KeptPromise$Successful.onComplete(Promise.scala:379)
at scala.concurrent.impl.Promise.transform(Promise.scala:33)
at scala.concurrent.impl.Promise.transform$(Promise.scala:31)
at scala.concurrent.impl.Promise$KeptPromise$Successful.transform(Promise.scala:379)
at munit.internal.FutureCompat$ExtensionFuture.transformCompat(FutureCompat.scala:16)
at munit.ScalaCheckSuite.$anonfun$scalaCheckPropTransform$2(ScalaCheckSuite.scala:48)
at munit.GenericTest.$anonfun$withBodyMap$1(GenericTest.scala:33)
at munit.MUnitRunner.$anonfun$runTestBody$1(MUnitRunner.scala:296)

Closing comment (2021-02-06T12:27:00Z): Seems to be a duplicate of #3734.