-
Notifications
You must be signed in to change notification settings - Fork 208
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
Allow testing of earliest/latest dependencies #1613
Changes from 3 commits
ea36861
0b11b2e
9abbe26
4a93f1c
82ff07e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -312,3 +312,14 @@ dependencies: | |||
- cuda-nvcc | ||||
- matrix: | ||||
packages: | ||||
specific: | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This second Try this out: import yaml
import pprint
with open("dependencies.yaml") as f:
parsed = yaml.safe_load(f)
pprint.pprint(parsed["dependencies"]["test_python"]) You'll see that entry with
This is because:
rapidsai/dependency-file-generator#104 tracks the (not currently active) work to change that. A YAML linter might also be able to detect and prevent this case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks (also for the other tip)! So one of the jobs shouldn't end up with the constraints, will look into it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For sure. I'm very familiar with the requirements for these |
||||
- output_types: [conda, requirements, pyproject] | ||||
matrices: | ||||
- matrix: | ||||
dependencies: "oldest" | ||||
packages: | ||||
- numba==0.57.* | ||||
- numpy==1.23.* | ||||
# No pinnings except for oldest dependencies | ||||
- matrix: | ||||
packages: |
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.
Ok, this works now also for the wheel tests. A bit unfortunate that we need the branch and maybe the
dependencies.yaml
entries.On the up-side, it should be impossible to forgot to update the dependency file, as the below install will fail if there is an inconsistency:EDIT: Sorry, pip doesn't notice it for
rmm
since the test requirements don't includenumpy
/numba
. Not sure it is vital, but I'll try to see if I can make one of them fail (or the conda one already fails).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 think this could be simplified a bit, and that it'd be better to use constraints instead of requirements:
Would you consider something like this instead?