consolidate tests to use the fixture dask_client#1758
Conversation
…_remain_tests_to_use_dask_client
|
@xcadet I wanted to get your inputs on the changes I made with respect to some of the MG algos(mentioned in this PR) that use MGContext. In fact, I removed it so that all tests have their cluster and client initialized the same way through the fixture |
Codecov Report
@@ Coverage Diff @@
## branch-21.10 #1758 +/- ##
===============================================
Coverage ? 59.60%
===============================================
Files ? 77
Lines ? 3533
Branches ? 0
===============================================
Hits ? 2106
Misses ? 1427
Partials ? 0 Continue to review full report at Codecov.
|
|
Hello @jnke2016 , thank you for reaching out.
I hope this is helpful. |
|
Hello @xcadet I really appreciate the feedback and this is really helpful.
The dask_client has not already been setup until you call it in one of the test and I verified that by checking client and comms which return regarding this
it is a good idea but the downside of it will be the setup and tear down for every tests which can be time consuming. This
is a great idea and I am currently exploring this. However, we will somehow have to run the tests (with the delayed setup) before any other tests because the first test that will setup the dask_client will do it for all the other tests. |
|
What I meant in my last sentence with respect to your example (scope="session") is by the time we reach to this test file(test_mg_replication), there are prior test file (like test_renumbering) which already setup the dask_client |
…_remain_tests_to_use_dask_client
|
Hi @xcadet. I updated the Thank you |
…_remain_tests_to_use_dask_client
…_remain_tests_to_use_dask_client
…_remain_tests_to_use_dask_client
|
@gpucibot merge |
consolidate tests to use the fixture dask_client