Skip to content

Conversation

@jakirkham
Copy link
Member

  • Tests added / passed
  • Passes pre-commit run --all-files

@jakirkham
Copy link
Member Author

jakirkham commented May 6, 2022

Am seeing the test distributed/tests/test_client.py::test_futures_of_class failing on CI. This started happening recently. The error is a bit peculiar

elif dask.is_dask_collection(x):
[1314](https://github.com/dask/distributed/runs/6329112229?check_suite_focus=true#step:11:1314)
>               stack.extend(x.__dask_graph__().values())
[1315](https://github.com/dask/distributed/runs/6329112229?check_suite_focus=true#step:11:1315)
E               TypeError: Array.__dask_graph__() missing 1 required positional argument: 'self'

Not sure, but maybe this is related to PR ( dask/dask#8674 )

cc @douglasdavis @dask/maintenance (in case anyone has ideas 🙂)

@douglasdavis
Copy link
Member

Yea I think it's related to changing is_dask_collection in dask/dask#8674.

In the test futures_of is getting one element list where the element is the class da.Array, not an instance. In is_dask_collection we now check for the attribute __dask_graph__ and see if it's callable. Perhaps we should also check to make sure that the thing (x) that has a callable __dask_graph__ is an instance and not a class.

@douglasdavis
Copy link
Member

With dask/dask#9054 the test passes

@jakirkham jakirkham closed this May 6, 2022
@jakirkham jakirkham reopened this May 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2022

Unit Test Results

       12 files  +       12         12 suites  +12   5h 28m 34s ⏱️ + 5h 28m 34s
  2 760 tests +  2 760    2 665 ✔️ +  2 665    92 💤 +  92  3 +3 
16 534 runs  +16 534  15 730 ✔️ +15 730  796 💤 +796  8 +8 

For more details on these failures, see this check.

Results for commit 159aeb9. ± Comparison against base commit 9f7646a.

@jakirkham
Copy link
Member Author

Looks like things are working again with the Dask fix. Thanks Doug! 🙏

@jakirkham jakirkham closed this May 7, 2022
@jakirkham jakirkham deleted the tst_ci branch May 7, 2022 03:51
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