Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs2.interop.flow.PublisherToSubscriberSpec.should cancel upstream if downstream completes flake #3542

Open
armanbilge opened this issue Mar 7, 2025 · 0 comments
Labels

Comments

@armanbilge
Copy link
Member

3b56691

ubuntu-latest, 3, temurin@17, rootJVM

Unfortunately, ScalaCheck minimized the buffer size argument to zero, which is invalid, so I think we lost the original error ...

==> X fs2.interop.flow.PublisherToSubscriberSpec.should cancel upstream if downstream completes  0.565s munit.FailException: Failing seed: 82KDw0NDjWAXJUVVYTrYStmnTfKrZEE9oA8wbVXJAuG=
You can reproduce this failure by adding the following override to your suite:

  override def scalaCheckInitialSeed = "82KDw0NDjWAXJUVVYTrYStmnTfKrZEE9oA8wbVXJAuG="

Exception raised on property evaluation.
> ARG_0: List(2147483647)
> ARG_1: List(923319774, 2147483647, -140306582, 2147483647, -2147483648, 1239258450, -154613030)
> ARG_2: 0
> ARG_2_ORIGINAL: 41
> Exception: java.lang.IllegalArgumentException: requirement failed: The buffer size MUST be positive
    at munit.Assertions.fail(Assertions.scala:256)
    at munit.Assertions.fail$(Assertions.scala:16)
    at munit.FunSuite.fail(FunSuite.scala:11)
    at munit.ScalaCheckEffectSuite.munit$ScalaCheckEffectSuite$$parseTestResult(ScalaCheckEffectSuite.scala:80)
    at munit.ScalaCheckEffectSuite.checkPropF$$anonfun$2(ScalaCheckEffectSuite.scala:68)
    at apply @ munit.CatsEffectAssertions.assertIO$$anonfun$1(CatsEffectAssertions.scala:52)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at modify @ fs2.internal.Scope.open$$anonfun$1(Scope.scala:149)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at uncancelable @ fs2.Compiler$Target.uncancelable(Compiler.scala:165)
    at rethrow$extension @ fs2.Compiler$Target.compile$$anonfun$1(Compiler.scala:157)
    at get @ fs2.internal.Scope.openScope(Scope.scala:278)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
    at flatMap @ fs2.Pull$.fs2$Pull$$$_$interruptGuard$1(Pull.scala:951)

https://github.com/typelevel/fs2/actions/runs/13606087216/job/38037727735#step:11:3612

cc @BalmungSan

@armanbilge armanbilge added the bug label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant