-
Notifications
You must be signed in to change notification settings - Fork 310
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
Refactor MG Centrality Tests #4197
Refactor MG Centrality Tests #4197
Conversation
9f792d4
to
73840cd
Compare
39cb5f6
to
b3ec32c
Compare
Some unrelated tests are failing and I'm currently investigating/reproducing this locally. |
7ec59c8
to
0513b81
Compare
eaeec44
to
39a4e97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I was wondering about some of the dataset.unload()
calls and if we need them. Do these tests have problems if the unload()
calls aren't there, or were they added just in case?
python/cugraph/cugraph/tests/centrality/test_betweenness_centrality_mg.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Great
python/cugraph/cugraph/tests/centrality/test_betweenness_centrality_mg.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. And nice work tracking down that PR failure on CI
/merge |
fa096f0
into
rapidsai:branch-24.04
Addresses #4187 This PR makes improvements to old MG testing conventions used in these testing directories: - centrality - comms - community - components - core - internals The goals of this PR is to improve readability and use of the MG tests. Changes are similar to #4197 > Instead of using nested fixtures. eg. `input_expected_output -> input_combo -> fixture_params` which can be confusing, the `@pytest.mark.parametrize` marker is used to iterate through combinations of parameters used for testing. The fixtures are also replaced by functions used to create SG and MG graphs. By using the Datasets API (which now supports MG Graphs thanks to @huiyuxie), the number of imports and `testing.utils` functions can be significantly reduced. Authors: - Ralph Liu (https://github.com/nv-rliu) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: #4244
Addresses #4187
This PR makes improvements to old testing conventions used in
cugraph.centrality
MG testsInstead of using nested fixtures. eg.
input_expected_output -> input_combo -> fixture_params
which can be confusing, the@pytest.mark.parametrize
marker is used to iterate through combinations of parameters used for testing. The fixtures are also replaced by functions used to create SG and MG graphs.