Skip to content

demo_tuples produces malformed HighLevelGraph - #8325

Merged
jrbourbeau merged 1 commit into
dask:mainfrom
crusaderky:demo_tuples
Nov 1, 2021
Merged

jrbourbeau merged 1 commit into
dask:mainfrom
crusaderky:demo_tuples

Conversation

@crusaderky

@crusaderky crusaderky commented Nov 1, 2021 •

Copy link
Copy Markdown
Collaborator

The demo_tuples test helper function produces a malformed HighLevelGraph.dependencies graph. This in turn causes failures in dependency-crawling utilities, such as _toposort_layers:

>>> from dask.graph_manipulation import checkpoint
>>> from dask.tests.test_graph_manipulation import demo_tuples
>>> t1, _, _ = demo_tuples(layers=True)
>>> cp = checkpoint(t1)
>>> cp.__dask_graph__()._toposort_layers()
KeyError: 'a'

@crusaderky
crusaderky requested a review from ian-r-rose November 1, 2021 20:15

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @crusaderky -- this looks fine to me. I was going to ask about adding a test to cover this case, but it looks like #8316 prompted the change here and covers the changes in this PR

@ian-r-rose

Copy link
Copy Markdown
Collaborator

I've also cherry-picked this over to #8316 to fix CI there. I'm happy to keep it that way, or drop the commit if you want to merge this first.

@ian-r-rose ian-r-rose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @crusaderky

@jrbourbeau jrbourbeau changed the title demo_tuples produces malformed HighLevelGraph demo_tuples produces malformed HighLevelGraph Nov 1, 2021
@jrbourbeau
jrbourbeau merged commit 752555a into dask:main Nov 1, 2021
@crusaderky
crusaderky deleted the demo_tuples branch November 1, 2021 21:08
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.

3 participants