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

Detect and report infinite loops #1652

Closed
wants to merge 2 commits into from

Conversation

chrisgoringe
Copy link
Contributor

Infinite loops in the workflow don't currently give a good error message.

This PR detects loops by maintaining a stack in the recursive calls of validate_input. If we try to validate a node that is already on the stack, it's a loop, so we fail validation with a descriptive error and return.

In addition (the changes after line 650), the extra_info is currently discarded. This change adds the extra_info from errors which have cascaded down into the final report.

@mcmonkey4eva
Copy link
Collaborator

likely outdated by #2666

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.

2 participants