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

enforce vector size for *combineAll laws as a workarround #321

Merged
merged 8 commits into from
Oct 18, 2022

Conversation

caenrique
Copy link
Contributor

@caenrique caenrique commented Sep 29, 2022

This PR implements a workaround to #314 by overriding the Properties when including them in StreamTests and that way, being able to provide an instance of Arbitrary[Vector[Stream[Int]]] with a size limit of 10.

Context

I wasn't able to reproduce this failing test locally at first, even when using the same seed.
that led me to believe that this was related to resources of the underlying runner (container/pod/jvm)

  • I tried increasing the jvm stack memory to make the test pass (6170bd5). This didn't fix the issue.
  • I managed to reproduce this by forcing the vector size to be at least 30 elements for the laws involving some version of combineAll.

This makes me think that there is a fundamental issue with the implementation of Nu that is making it not stack safe, but I couldn't find it.
We'll need to dig deeper into this one at some point

@caenrique caenrique changed the title use test failure seed enforce vector size for *combineAll laws as a workarround Oct 11, 2022
@caenrique caenrique marked this pull request as ready for review October 11, 2022 15:25
@fedefernandez fedefernandez merged commit 06d79fb into higherkindness:main Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants