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

Add support for sorting test workflows #1964

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

glopesdev
Copy link
Member

The workflow editor API requires the initial state to have all nodes topologically sorted to ensure reversibility of operations.

Here we move the sorting operation to the test infrastructure to facilitate reuse and avoid enforcing the sort in MockGraphView specifically to allow regression testing cases where the initial state may or may not be sorted (this is a limitation of the algorithm which we may want to remove in the future).

We also assert a missing invariant in a previous test.

@glopesdev glopesdev added the feature New planned feature label Aug 7, 2024
@glopesdev glopesdev added this to the 2.9 milestone Aug 7, 2024
@glopesdev glopesdev requested a review from PathogenDavid August 7, 2024 22:19
@glopesdev glopesdev merged commit b8ece22 into bonsai-rx:main Aug 30, 2024
10 checks passed
@glopesdev glopesdev deleted the test-infrastructure branch August 30, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New planned feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants