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

Better support for fail-fast #140

Merged
merged 1 commit into from Jul 17, 2023
Merged

Better support for fail-fast #140

merged 1 commit into from Jul 17, 2023

Conversation

fsoikin
Copy link
Member

@fsoikin fsoikin commented Jul 17, 2023

The original implementation in #137 was a bit lazy: due to accidental complexity, it was very hard to return the whole test tree if the execution was stopped on first failure. However, down the stack it turned out that we do need the full tree after all, so this PR makes it happen.

Instead of a downstream filtering pipe, the failFast option is now checked during the tree traversal, and a mutable cell is used to indicate when the execution ought to stop. When that mutable flag is set, the tree traversal itself still runs to the end, producing the full tree, even though the actual example execution gets skipped. Accordingly, in that case, skipped tests will show up in the results as "pending".

The mutable cell is used instead of a, say, StateT, because of parallelization, which doesn't support StateT.

@fsoikin fsoikin merged commit c4453b2 into master Jul 17, 2023
1 check passed
@fsoikin fsoikin deleted the better-fail-fast branch July 17, 2023 15:30
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

1 participant