-
Notifications
You must be signed in to change notification settings - Fork 348
split testing libraries from run libraries in dependencies.yaml #5447
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
Open
jayavenkatesh19
wants to merge
6
commits into
rapidsai:main
Choose a base branch
from
jayavenkatesh19:split-test-libraries
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f2ad392
add run_notebooks key
jayavenkatesh19 95876ce
Empty commit to retrigger CI
jayavenkatesh19 32ad84c
Merge branch 'main' into split-test-libraries
jayavenkatesh19 93b937c
address review: add missing notebook deps and depends_on_cudf
jayavenkatesh19 868717c
Merge branch 'main' into split-test-libraries
jayavenkatesh19 7b47244
use YAML anchor for python-louvain
jayavenkatesh19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I do like creating a new top-level list called just
run_notebooks, but think it's confusing to see anything namedtest_*showing up in this list, especially to see something calledtest_notebookshowing up inrun_notebookswhen there is also atest_notebooks.I have an alternative proposal that I think might make this a bit easier to maintain and understand, let me know what you think:
test_python_commoncompletely unchangeddependencies:calledrun_notebooks. Add to that list only packages that are needed for the notebooks and aren't already runtime dependencies ofcugraph,pylibcugraph, andlibcugraph. Use YAML anchors to reference other things already independencies.yaml. Add a code comment above it explaining its purpose.run_notebookslist here containcuda_version,py_version,run_notebooks, and thedepends_on_*cugraphgroups--file-key test_notebooks --file-key run_notebookshere https://github.com/rapidsai/docker/blob/2637556074567056aa69a7cb1850ac844ef89748/context/notebooks.sh#L34 (multiple--file-keyare allowed)That way, we could fine-tune this to exactly the libraries that are needed and nothing else, and the purpose will be clear.
Uh oh!
There was an error while loading. Please reload this page.
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.
@jameslamb I'm pretty clear on everything until step 3.
In step 4 however, we would need a
if-elifstatement to use only therun_notebooksfile-key forcugraphright?If the
test-notebookskey is added, then dependency lists from both keys would be merged, bringing in unwanted libraries likepytestagain.Something like:
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.
You're right, I wasn't thinking about the fact that
test_notebooksis still the key in the other repos.Yes we'll need different keys for different repos, but let's make the code much stricter than it is today and just hard-code that expectation directly.
Something like:
That'll fail with a big loud error (instead of silently passing) if any of our expectations aren't met, like:
dependencies.yaml(<-- this would also catch being in the wrong working directory)We're only doing this testing for 3 repos there, let's go with specific and strict over generic and permissive, to give ourselves a better chance of catching bugs at the source.
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.
Sure, that sounds good!
I've made the changes on both this PR and the rapidsai/docker#853 PR on Docker.