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

[Commands] Fix MatchError when using multiple workers #894

Conversation

yannkaiser-asana
Copy link
Contributor

@yannkaiser-asana yannkaiser-asana commented Jun 3, 2022

Fixes #893

for (Some(v) <- Map(...).values) yield v would throw MatchError as soon as it tries to process a value that doesn't conform to Some(v).

The tests didn't detect this because property("...") = rhs was re-evaluating rhs each time the property is evaluated, which means that Commands.property() only ran one evaluation at a time (so suts would always be empty when we run those for comprehensions).

`for (Some(v) <- Map(...).values) yield v` would throw MatchError as
soon as it tries to process a value that doesn't conform to Some(v).

The tests didn't detect this because `property("...") = rhs` was
re-evaluating `rhs` each time the property is evaluated, which means
that Commands.property() only ran one evaluation at a time
(so suts would always be empty when we run those for comprehensions)
Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks like good cause for a patch release.

@yannkaiser-asana
Copy link
Contributor Author

Ready to merge whenever, though it looks like you might need to manually trigger the tests for this PR.

@rossabaker rossabaker merged commit 12c50b5 into typelevel:main Jun 6, 2022
@SethTisue SethTisue mentioned this pull request Aug 22, 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.

MatchError when running Commands property with multiple workers
2 participants