Skip to content
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

Testing util improvements and refactoring #3705

Merged
merged 34 commits into from
Aug 22, 2023

Conversation

betochimas
Copy link
Contributor

@betochimas betochimas commented Jul 12, 2023

closes #2416

Removes a dependency when running python tests, which will speed up test runs. Also introduces a new testing component (Resultset) to clean up unit tests by generating golden results and storing them locally/on the cloud. This PR is focused on tests from the traversal category.

NOTE: Devs will download specific golden results from the cloud to avoid local overhead.

@BradReesWork BradReesWork added this to the 23.08 milestone Jul 24, 2023
@BradReesWork BradReesWork modified the milestones: 23.08, 23.10 Jul 25, 2023
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Starting to look good for a first pass. We'll eventually refactor quite a lot of the fixtures out on future PRs, but just replacing Nx calls initially is a good start.

We need to get the resultset data uploaded and the rest of the download/unpack code written to fully test end-to-end and get this passing CI.

python/cugraph/cugraph/testing/generate_resultsets.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/testing/generate_resultsets.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/testing/resultset.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_bfs.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_paths.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_bfs.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_bfs.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_paths.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/tests/traversal/test_sssp.py Outdated Show resolved Hide resolved
@betochimas betochimas changed the base branch from branch-23.08 to branch-23.10 August 15, 2023 18:27
@betochimas betochimas marked this pull request as ready for review August 15, 2023 21:28
@betochimas betochimas requested a review from a team as a code owner August 15, 2023 21:28
@rlratzel rlratzel added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 21, 2023
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Looks good, just one small request.

python/cugraph/cugraph/testing/resultset.py Outdated Show resolved Hide resolved
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Thanks!

@rlratzel
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit 66d6c79 into rapidsai:branch-23.10 Aug 22, 2023
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store Nx results for cuGraph using a Resultset object containing expected test results
3 participants