-
Notifications
You must be signed in to change notification settings - Fork 28
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 scripts to build conda packages and run tests #18
Conversation
cef864e
to
03be322
Compare
This was removed previously as it's not _always_ necessary, for example InfiniBand will work correctly with or without it, but the server may close too soon when using TCP.
The tests marked may hang until they timeout under certain circumstances. See rapidsai#19 .
6922ddd
to
bda7f2a
Compare
this will remove the duplicate Python builds that are currently resulting from using both `conda_build_config.yaml` build variants and the GHAs matrix builds
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.
Thanks Peter! 🙏
Had one question about RAPIDS release version bumps are handled (with respect to rmm
version used)
rmm_version: | ||
- "23.04.*" |
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.
Does this get updated by the ci/release/update-version.sh
script? If not, should it be?
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.
Thanks John, done in 3707568 .
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.
Comments attached.
branches: | ||
- "branch-*" | ||
tags: | ||
- v[0-9].[0-9][0-9].[0-9][0-9] |
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 am guessing the major component is fixed as one digit because this aims to follow ucx versioning? Like 0.30.0? But then is the patch version also one digit or is it two digits? Like 0.30.00? Not sure what regex syntax is allowed here but I think there are limitations.
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.
We're doing here exactly what UCX-Py is doing, I believe this is right as it has been for a while.
dependencies.yaml
Outdated
specific: | ||
- output_types: conda | ||
matrices: | ||
- matrix: | ||
cuda: "11.8" | ||
packages: | ||
- cuda-sanitizer-api=11.8.86 | ||
- 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.
Where is cuda-sanitizer-api
being used? I searched briefly but didn't see it. If it's not used, the entire specific
section can be deleted.
specific: | |
- output_types: conda | |
matrices: | |
- matrix: | |
cuda: "11.8" | |
packages: | |
- cuda-sanitizer-api=11.8.86 | |
- 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.
Good catch, removed.
dependencies.yaml
Outdated
- checks | ||
- cudatoolkit | ||
- py_version | ||
- run |
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.
- run | |
- run_python |
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.
Fixed.
dependencies.yaml
Outdated
- matrix: | ||
packages: | ||
- python>=3.8,<3.11 | ||
run: |
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.
run: | |
run_python: |
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.
Fixed.
dependencies.yaml
Outdated
- &gmock gmock==1.10.0.* | ||
- spdlog>=1.11.0,<1.12 | ||
- cython>=0.29,<0.30 | ||
- numpy>=1.21 |
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.
Should we use an anchor here and re-use this pinning version in the other places numpy is referenced? See >est
/ *gtest
for an example.
dependencies.yaml
Outdated
- python>=3.8,<3.11 | ||
run: | ||
common: | ||
- output_types: [conda, requirements] |
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.
Some additional work is probably needed to make this file compatible with generating the build/run/test requirements in pyproject.toml
. Happy to defer that to a later PR if we can file an issue.
- output_types: [conda, requirements] | |
- output_types: [conda, requirements, pyproject] |
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.
Fixed.
ci/release/update-version.sh
Outdated
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.
This file also needs to update rmm_version
in conda/recipes/ucxx/conda_build_config.yaml
.
ci/check_style.sh
Outdated
conda activate checks | ||
|
||
# Run pre-commit checks | ||
pre-commit run --hook-stage manual --all-files --show-diff-on-failure |
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.
pre-commit run --hook-stage manual --all-files --show-diff-on-failure | |
pre-commit run --all-files --show-diff-on-failure |
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.
Fixed.
.pre-commit-config.yaml
Outdated
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'd recommend updating the hook versions in this file with pre-commit autoupdate
. Since it's a new package, that should be a better place to start. I am going to be updating hook versions in other RAPIDS repos in the next month or so.
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 don't mind if we do it in a follow-up PR, but I'd rather have something functional first and iterate on improvements later.
.github/workflows/test.yaml
Outdated
jobs: | ||
conda-cpp-tests: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] |
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.
This seems wrong.
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-[email protected] | |
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests[email protected] |
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.
Fixed.
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.
Thanks @jakirkham and @bdice , I've addressed the suggestions
branches: | ||
- "branch-*" | ||
tags: | ||
- v[0-9].[0-9][0-9].[0-9][0-9] |
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.
We're doing here exactly what UCX-Py is doing, I believe this is right as it has been for a while.
.github/workflows/test.yaml
Outdated
jobs: | ||
conda-cpp-tests: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] |
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.
Fixed.
.pre-commit-config.yaml
Outdated
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 don't mind if we do it in a follow-up PR, but I'd rather have something functional first and iterate on improvements later.
rmm_version: | ||
- "23.04.*" |
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.
Thanks John, done in 3707568 .
dependencies.yaml
Outdated
specific: | ||
- output_types: conda | ||
matrices: | ||
- matrix: | ||
cuda: "11.8" | ||
packages: | ||
- cuda-sanitizer-api=11.8.86 | ||
- 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.
Good catch, removed.
dependencies.yaml
Outdated
- checks | ||
- cudatoolkit | ||
- py_version | ||
- run |
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.
Fixed.
dependencies.yaml
Outdated
- matrix: | ||
packages: | ||
- python>=3.8,<3.11 | ||
run: |
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.
Fixed.
dependencies.yaml
Outdated
- python>=3.8,<3.11 | ||
run: | ||
common: | ||
- output_types: [conda, requirements] |
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.
Fixed.
ci/check_style.sh
Outdated
conda activate checks | ||
|
||
# Run pre-commit checks | ||
pre-commit run --hook-stage manual --all-files --show-diff-on-failure |
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.
Fixed.
No description provided.