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

Replace exceptions dependency with safe-exceptions #466

Merged
merged 1 commit into from Oct 4, 2022

Conversation

ocharles
Copy link
Contributor

By using safe-exceptions we avoid catching asynchronous exceptions, which aren't of any interest to Hedgehog. The current usage of exceptions is problematic, because checkReport calls catchAny, which means it catches asynchronous exceptions. This is a problem for tasty-hedgehog, because it means that Tasty's timeout mechanism can't be used to timeout Hedgehog tests (qfpl/tasty-hedgehog#64, UnkindPartition/tasty#349)

Copy link
Member

@moodmosaic moodmosaic left a comment

Choose a reason for hiding this comment

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

Thank you @ocharles 👍

This PR looks reasonable, given the nature of async exceptions (coming outside of the current execution) which is something we never want to recover. Good to know that this helps tasty.

I just left a comment in the PR.

@ocharles
Copy link
Contributor Author

Great! I'll get these CI problem fixed up and then I'll squash it down to one commit.

@ocharles
Copy link
Contributor Author

@moodmosaic Ok, all done! I think this is ready to go now.

@moodmosaic moodmosaic merged commit a5b4824 into hedgehogqa:master Oct 4, 2022
@moodmosaic
Copy link
Member

Thank you, @ocharles 👍

@ocharles
Copy link
Contributor Author

ocharles commented Oct 4, 2022

YW!

@ocharles ocharles deleted the safe-exceptions branch October 4, 2022 10:22
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.

None yet

2 participants