Skip to content

Make scheduler kwarg pass though to sub functions in da.assert_eq#8755

Merged
jcrist merged 3 commits intodask:mainfrom
jsignell:test-scheduler
Feb 25, 2022
Merged

Make scheduler kwarg pass though to sub functions in da.assert_eq#8755
jcrist merged 3 commits intodask:mainfrom
jsignell:test-scheduler

Conversation

@jsignell
Copy link
Copy Markdown
Member

@jsignell jsignell commented Feb 24, 2022

Follow on to #8700

I noticed while running these tests that when the distributed tests are run in parallel they often xfail. I'm wondering if it would be worth adding a separate job that just runs the distributed test without nauto

EDIT - I'm not seeing the xfail behavior on CI. It's possible that I was doing something weird locally.

@github-actions github-actions bot added the array label Feb 24, 2022
Copy link
Copy Markdown
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Julia!

await c.compute(z, optimize_graph=False)
da.assert_eq(z, x)
c.compute(z, optimize_graph=False)
da.assert_eq(z, x, scheduler=c)
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.

Nice catch here.

@jcrist jcrist merged commit 0224e4a into dask:main Feb 25, 2022
@jsignell jsignell deleted the test-scheduler branch February 25, 2022 21:37
phobson pushed a commit to phobson/dask that referenced this pull request Feb 28, 2022
…ask#8755)

* Make `da.assert_eq` scheduler kwarg affect nested funtions

* Update tests to use scheduler kwarg

* Fix `assert_eq` test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants