-
Notifications
You must be signed in to change notification settings - Fork 67
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
Enable interop for scala.js #28
Conversation
Can you open two issues in ZIO for these, ideally with the tests restated using ZIO, rather than Cats Effect? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but should get feedback from @Kaishh or others.
Can you rebase to latest master? There was a lot of renaming due to upgrading to the latest ZIO (in particular, |
I'm not sure how to do that, the laws rely on classes from cats-effect. I will give it a try though.
Rebased |
* Test more thoroughly * Delete `Alternative` instance (unlawful) * Simplify some method implementations
* `bracketReleaseIsCalledOnCompletedOrError` * `runCancelableIsSynchronous`
|
@neko-kai nice! |
…with fa.attempt.as(b))
… (unsafeRunAsyncAndForget logs errors via EC)
Seems like the same applies to |
I've also made a change to stop using |
@joroKr21 |
https://circleci.com/gh/zio/interop-cats/582 Non-deterministic failures on CI? 🤔 |
…nParallel by ZManaged.fork-based version; split out shared test implicits; re-add repeat tests for ApplicativeLocal & ConcurrentEffect
I started to get weird diverging implicit issues after updating a project to cats 2.0.0-RC2:
I narrowed it down to |
@neko-kai that's great work. Thank you so much for getting to the bottom of these tricky laws!
Great, I hadn't thought of that 👍
Did you figure this out? It's a bit crazy how much stack and heap we need, but it's not enough for scala.js |
Yeah, OOM build failures on JS still remain though... |
Yeah, sounds like they were ignored, moving options to .sbtopts worked |
Merged! 🎉 @joroKr21 Thank you! |
Revive PR zio/zio#777
Alternative
instance (unlawful)There are two incompatibilities that need to be fixed (possibly in ZIO itself):
I don't think we can claim compatibility with cats-effect without fixing those.
Edit: I don't have the bandwidth to investigate the failures so I disabled the tests.
We can open separate issues for them.
This fixes #20