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

Continue parsing the rest of the scenarios in a directory when one fails #1391

Merged
merged 2 commits into from Jul 24, 2023

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Jul 24, 2023

The problem was that we loaded an entire directory with mapM loadScenarioItem which caused the entire directory to fail if any single scenario did. Now we run each individual loadScenarioItem call with runExceptT and appropriately collect up the individual failures together with any warnings from the successfully loaded scenarios.

Fixes #1380.

The problem was that we loaded an entire directory with `mapM
loadScenarioItem` which caused the entire directory to fail if any
single scenario did.  Now we run each individual `loadScenarioItem`
call with `runExceptT` and appropriately handle the individual
failures.

Fixes #1380.
@byorgey byorgey requested a review from kostmo July 24, 2023 14:23
@byorgey byorgey changed the title A single failing scenario no longer fails the entire directory Continue parsing the rest of the scenarios in a directory when one fails Jul 24, 2023
@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Jul 24, 2023
@mergify mergify bot merged commit 2d67a22 into main Jul 24, 2023
10 checks passed
@mergify mergify bot deleted the fix/scenario-loading branch July 24, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No scenarios load when a single scenario fails to parse
2 participants