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

add CI workflows running tests #15

Merged
merged 16 commits into from
Nov 8, 2024

Conversation

jameslamb
Copy link
Member

@jameslamb jameslamb commented Nov 7, 2024

Closes https://github.com/rapidsai/graph_dl/issues/638

Adds CI workflows running the unit tests.

Also adds some .pre-commit-config.yaml changes, follow-up to #14 suggested by @eriknw .

Notes for Reviewers

I copied these new scripts in ci/ from the latest state of branch-24.12 in https://github.com/rapidsai/cugraph, then tried to adapt them to be nx-cugraph specific.

What about notebook tests?

Proposing we add notebook tests in a follow-up PR, to keep things smaller and easier to review.

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Nov 7, 2024
@github-actions github-actions bot added the ci label Nov 7, 2024
commit-files = ["_nx_cugraph/GIT_COMMIT"]
dependencies-file = "../../dependencies.yaml"
commit-files = ["nx_cugraph/GIT_COMMIT"]
dependencies-file = "dependencies.yaml"
Copy link
Member Author

Choose a reason for hiding this comment

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

Wheel tests were failing like this:

ERROR: Could not find a version that satisfies the requirement pylibcugraph==24.12.*,>=0.0.0a0 (from nx-cugraph-cu12) (from versions: none)

(build link)

That's because the wheel builds were not correctly setting metadata about what packages nx-cugraph depends on. rapids-build-backend was warning but not failing here:

/pyenv/versions/3.12.7/lib/python3.12/contextlib.py:137: UserWarning: File not found: '../../dependencies.yaml'. If you want rapids-build-backend to consider dependencies from a dependencies file, supply an existing file via config setting 'dependencies-file'.

(build link)

For background, it was an intentional choice to make that case a warning instead of an error: rapidsai/rapids-build-backend#33 (comment)

@jameslamb jameslamb changed the title WIP: [DO NOT MERGE] add CI workflows running tests add CI workflows running tests Nov 8, 2024
@jameslamb jameslamb changed the title add CI workflows running tests WIP: add CI workflows running tests Nov 8, 2024
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python
with:
build_type: pull-request
run_codecov: false
Copy link
Member Author

Choose a reason for hiding this comment

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

Saw codecov upload failing like this:

error - 2024-11-08 16:32:44,232 -- Commit creating failed: {"message":"Repository not found"}

(build link)

Maybe this repo needs to be set up in the codecov UI. But since @eriknw mentioned that codecov isn't really event being used in development of this project right now, I'm proposing just skipping it.

@jameslamb jameslamb changed the title WIP: add CI workflows running tests add CI workflows running tests Nov 8, 2024
@jameslamb jameslamb marked this pull request as ready for review November 8, 2024 19:11
@jameslamb jameslamb requested review from a team as code owners November 8, 2024 19:11
@eriknw eriknw requested a review from a team as a code owner November 8, 2024 19:48
@github-actions github-actions bot added the python label Nov 8, 2024
@nv-rliu
Copy link
Contributor

nv-rliu commented Nov 8, 2024

/merge

@rapids-bot rapids-bot bot merged commit 1fa7c1e into rapidsai:branch-24.12 Nov 8, 2024
30 checks passed
@jameslamb jameslamb deleted the add-tests branch November 8, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks ci improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants