-
Notifications
You must be signed in to change notification settings - Fork 952
Remove pytest pin #19127
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
base: branch-25.08
Are you sure you want to change the base?
Remove pytest pin #19127
Conversation
The failure I see here looks like pytest-dev/pytest-cov#693 (cf. pytest-dev/pytest-xdist#1211). |
I resolved the above issue by ignoring one error. The other failure looks to be due to our testing of the streaming executor for cudf-polars using dask in some way that is conflicting with the latest versions of pytest and xdist. |
`pytest-benchmark` is in the conda env we ship for `cudf` but isn't installed in CI
Going to note down a few things here that should not block this PR, but we might want to track moving forward (I'll open issues once I'm sure I've got a handle on all of this):
This is made trickier because It would be good to standardize on one choice (probably |
The coveragerc file already exists and will supercede any settings in the `pyproject.toml`, so don't put extra config there.
One of the remaining issues is that it seems like more recent versions of pytest are making it harder to guarantee that the current path is not added to sys.path. Even when I use |
@vyasr -- I think I've got all the |
After some offline discussion I added a few extra tests to the list of expected failures for pandas. It seems likely that the pandas version we are currently using has some issues with the latest pytest version. Those issues are likely fixed in the latest pandas release, so we can revisit these when we tackle #19099. |
…chore/remove_pytest_pin
ci/run_pylibcudf_pytests.sh
Outdated
@@ -6,6 +6,6 @@ set -euo pipefail | |||
# It is essential to cd into python/pylibcudf/pylibcudf as `pytest-xdist` + `coverage` seem to work only at this directory level. | |||
|
|||
# Support invoking run_cudf_pytests.sh outside the script directory | |||
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/pylibcudf/pylibcudf/ | |||
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/pylibcudf/ || exit 1 |
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.
Is the || exit 1
here intentional? I see set -e
above, so it shouldn't be necessary.
ci/test_python_cudf.sh
Outdated
@@ -2,7 +2,7 @@ | |||
# Copyright (c) 2022-2025, NVIDIA CORPORATION. | |||
|
|||
# Support invoking test_python_cudf.sh outside the script directory | |||
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../; | |||
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../ || exit 1 |
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.
Same question about || exit 1
.
I see in this case set -euo pipefail
is not being set above. We should set it.
ci/test_wheel_cudf.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.
Related to Kyle's question, does set -eou pipefail
work the same as set -euo pipefail
? I figured -o pipefail
had to be together in the option set.
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.
no, it doesn't -- I would expect that to error, but given that this is here, it might just ignore the pipefaile
entirely 😬
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.
Ceci n’est pas une pipefaile, as they say
I can push up a few changes to address the review comments (and fix the bad |
Going to merge this once CI passes again, because it moves a lot of code and is likely to have merge conflicts (like the one I just resolved). |
/merge |
Description
Contributes to rapidsai/build-planning#105.
Checklist