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

Print detail in validate_* assertions #4933

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gjoseph92
Copy link
Collaborator

When validation failed for whatever reason, I found myself wanting this (since pytest may not alway pretty-print these errors, if they happen to be caught by a try-except elsewhere in the scheduler for example).

  • Closes #xxxx
  • Tests added / passed
  • Passes black distributed / flake8 distributed / isort distributed

When validation failed for whatever reason, I found myself wanting this (since pytest may not alway pretty-print these errors, if they happen to be caught by a try-except elsewhere in the scheduler for example).
Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @gjoseph92! Overall this seems like a nice addition

Comment on lines +4790 to +4792
assert not any(ts in dts._waiters for dts in ts._dependencies), [
dts._waiters for dts in ts._dependencies
]
Copy link
Member

Choose a reason for hiding this comment

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

Should we also print ts (or ts.key) so we can parse the ts in dts._waiters part of this assert?

I have similar questions for all the other assert X in Y / assert X not in Y statements here

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