Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
9eaacb3
impl
shrshi Aug 13, 2024
27f1cb6
formatting
shrshi Aug 13, 2024
4987f74
added mixed type support
shrshi Aug 13, 2024
65e147f
formatting
shrshi Aug 13, 2024
32e8619
Merge branch 'branch-24.10' of github.com:rapidsai/cudf into host-tre…
karthikeyann Sep 10, 2024
b30c43f
comments - unfinished
karthikeyann Sep 10, 2024
38819f2
very partial work; some comments
shrshi Sep 11, 2024
08cf338
struct column first try, basic tests pass
karthikeyann Sep 16, 2024
85983be
add support for array_of_arrays
karthikeyann Sep 16, 2024
2607537
Creation of CI artifacts for cudf-polars wheels (#16680)
wence- Sep 17, 2024
1f40520
Merge branch-24.08 into branch-24.10
bdice Sep 17, 2024
250a73a
Fix pylibcudf imports, branches, and more.
bdice Sep 17, 2024
e3fd1d5
fix vector of dtypes in struct json
karthikeyann Sep 17, 2024
4291f26
Clean up cudf dependency in cudf_polars.__init__.
bdice Sep 17, 2024
dc25011
mixed type as string support added
karthikeyann Sep 18, 2024
d1ec9c7
forced nested type in mixed type data
karthikeyann Sep 18, 2024
ccfc6f6
style fixes
karthikeyann Sep 18, 2024
8fbb1d0
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 18, 2024
ed0b354
cleanup
karthikeyann Sep 18, 2024
c3fcf8a
fix name for list child element as not element
karthikeyann Sep 18, 2024
a700865
reuse code
karthikeyann Sep 18, 2024
217c4d8
reorg code build_tree
karthikeyann Sep 19, 2024
7f5fdf4
split new host algorithm to functions
karthikeyann Sep 19, 2024
3762477
move code
karthikeyann Sep 19, 2024
6c3b681
revert to old call
karthikeyann Sep 19, 2024
ac9fa76
prepare for merge with reorg
karthikeyann Sep 19, 2024
638cb24
Merge branch 'enh-json_code_reorg1' of github.com:karthikeyann/cudf i…
karthikeyann Sep 19, 2024
583c576
fix merge issue
karthikeyann Sep 19, 2024
62085a8
use experimental build_tree
karthikeyann Sep 19, 2024
eab13b3
same code for both make_device_json_column
karthikeyann Sep 19, 2024
1f855b5
add profiling
karthikeyann Sep 19, 2024
dafb3e7
Generate GPU vs CPU usage metrics per pytest file in pandas testsuite…
galipremsagar Sep 19, 2024
c68c259
fix for missmatched forced type left uninitialized
karthikeyann Sep 19, 2024
3886c7c
Download pylibcudf wheel when testing polars itself
wence- Sep 19, 2024
9df13d1
No cover for 1.6 IR changes
wence- Sep 19, 2024
8782a1d
Improve aggregation documentation (#16822)
PointKernel Sep 19, 2024
e9b5b53
Add string.repeats API to pylibcudf (#16834)
mroeschke Sep 19, 2024
51c2dd6
Add string.contains APIs to pylibcudf (#16814)
mroeschke Sep 19, 2024
7233da9
Remove `MultiIndex._poplevel` inplace implementation. (#16767)
mroeschke Sep 19, 2024
3a1b718
Merge branch 'branch-24.10' into branch-24.10-merge-24.08
bdice Sep 19, 2024
272a703
Add string.extract APIs to pylibcudf (#16823)
mroeschke Sep 19, 2024
cb38c19
Merge branch 'branch-24.10' into branch-24.10-merge-24.08
bdice Sep 19, 2024
944312d
Fix package name.
bdice Sep 19, 2024
5809bfc
Merge branch 'branch-24.10-merge-24.08' of github.com:bdice/cudf into…
bdice Sep 19, 2024
8e1345f
Intentionally leak thread_local CUDA resources to avoid crash (part 1…
kingcrimsontianyu Sep 19, 2024
d63ca6a
Access Frame attributes instead of ColumnAccessor attributes when ava…
mroeschke Sep 19, 2024
dc57c1b
Revert "Refactor mixed_semi_join using cuco::static_set" (#16855)
mhaseeb123 Sep 20, 2024
2676924
Switch to using native `traceback` (#16851)
galipremsagar Sep 20, 2024
4efa820
unprune base list in array of arrays when prune is enabled
karthikeyann Sep 20, 2024
69459bd
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 20, 2024
866b642
Merge branch 'branch-24.10' into branch-24.10-merge-24.08
wence- Sep 20, 2024
8a1d652
Fix branch in shared-workflow pointer
wence- Sep 20, 2024
e278018
cmake-format
wence- Sep 20, 2024
434f99b
Pacify ruff
wence- Sep 20, 2024
2fb0186
Add cudf.pandas dependencies.yaml to update-version.sh (#16840)
raydouglass Sep 20, 2024
9834a3a
Update xfailing tests in polars test suite
wence- Sep 20, 2024
f71f53a
JSON tree algorithm code reorg (#16836)
karthikeyann Sep 20, 2024
4917115
Merge branch 'branch-24.10' of github.com:rapidsai/cudf into host-tre…
karthikeyann Sep 20, 2024
eeb4bae
Merge pull request #16813 from bdice/branch-24.10-merge-24.08
AyodeAwe Sep 20, 2024
69ab988
Exposed stream-ordering to join API (#16793)
lamarrr Sep 20, 2024
b165210
Add best practices page to Dask cuDF docs (#16821)
rjzamora Sep 20, 2024
ed2f9f6
Add transform APIs to pylibcudf (#16760)
mroeschke Sep 21, 2024
96d2f81
Update labeler for pylibcudf (#16868)
vyasr Sep 21, 2024
9b4c4c7
Exposed stream-ordering to datetime API (#16774)
lamarrr Sep 21, 2024
16f9acd
Merge branch 'branch-24.10' of github.com:rapidsai/cudf into host-tre…
karthikeyann Sep 23, 2024
3694860
add experimental option for new host tree algorithm
karthikeyann Sep 23, 2024
5b1bdf4
remove debug prints
karthikeyann Sep 23, 2024
79364a9
cleanup comments
karthikeyann Sep 23, 2024
0870051
Improve Polars docs (#16820)
bdice Sep 23, 2024
6255906
Merge pull request #16873 from rapidsai/branch-24.08
GPUtester Sep 23, 2024
be30c60
address review comments
karthikeyann Sep 23, 2024
389208c
Ignore numba warning specific to ARM runners (#16872)
galipremsagar Sep 23, 2024
8b12cf4
Update fmt (to 11.0.2) and spdlog (to 1.14.1). (#16806)
jameslamb Sep 23, 2024
6badd6b
Add in support for setting delim when parsing JSON through java (#168…
revans2 Sep 24, 2024
b3518ab
Add in option for Java JSON APIs to do column pruning in CUDF (#16796)
revans2 Sep 24, 2024
19f39c2
address review comments
karthikeyann Sep 24, 2024
28ce878
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 24, 2024
5da21d5
Merge branch 'branch-24.10' of github.com:rapidsai/cudf into host-tre…
karthikeyann Sep 24, 2024
833960f
Merge branch 'host-tree-algorithms' of github.com:shrshi/cudf into ho…
karthikeyann Sep 24, 2024
6b501f3
Java JSON APIs experimental option
karthikeyann Sep 24, 2024
7ec6ba1
address review comments
karthikeyann Sep 24, 2024
6f8a4e2
utf8 field name support (experimental)
karthikeyann Sep 24, 2024
f8db575
Update update-version.sh to use packaging lib (#16891)
AyodeAwe Sep 24, 2024
8e27ab3
style fixes
karthikeyann Sep 24, 2024
f3ccdfa
stream safety fixes
karthikeyann Sep 24, 2024
2c06379
add more nosync policy
karthikeyann Sep 24, 2024
73fa557
Update oldest deps for `pyarrow` & `numpy` (#16883)
galipremsagar Sep 24, 2024
e5f6d2a
address review comments
karthikeyann Sep 25, 2024
c02193d
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 25, 2024
22cefc9
Fix metadata after implicit array conversion from Dask cuDF (#16842)
rjzamora Sep 25, 2024
9316309
Remove unnecessary flag from build.sh (#16879)
vyasr Sep 25, 2024
03c77c2
Add string.findall APIs to pylibcudf (#16825)
mroeschke Sep 25, 2024
dbe5528
[FEA] Add an environment variable to fail on fallback in `cudf.pandas…
Matt711 Sep 25, 2024
75c5c83
Add dask-cudf workaround for missing `rename_axis` support in cudf (#…
rjzamora Sep 25, 2024
4160423
Pin polars for 24.10 and update polars test suite xfail list (#16886)
wence- Sep 25, 2024
4dbbaa5
fix order of experimental option
karthikeyann Sep 25, 2024
ea373b6
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 25, 2024
ef27082
Build `cudf-polars` with `build.sh` (#16898)
brandon-b-miller Sep 25, 2024
b92d008
Fix DataFrame.drop(columns=cudf.Series/Index, axis=1) (#16712)
mroeschke Sep 25, 2024
d11ec7a
[DOC] Update Pylibcudf doc strings (#16810)
Matt711 Sep 25, 2024
8e78424
Optimization of tdigest merge aggregation. (#16780)
nvdbaranec Sep 25, 2024
f7c5d32
Display deltas for `cudf.pandas` test summary (#16864)
galipremsagar Sep 25, 2024
987fea3
JSON tree algorithms refactor I: CSR data structure for column tree (…
shrshi Sep 25, 2024
d1cf095
Merge branch 'branch-24.10' into host-tree-algorithms
karthikeyann Sep 25, 2024
0c65921
add missing experimental argument
karthikeyann Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cudf.polars:
- 'python/cudf_polars/**'

pylibcudf:
- 'python/cudf/pylibcudf/**'
- 'python/pylibcudf/**'

libcudf:
- 'cpp/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
arch: "amd64"
branch: ${{ inputs.branch }}
build_type: ${{ inputs.build_type || 'branch' }}
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
date: ${{ inputs.date }}
node_type: "gpu-v100-latest-1"
run_script: "ci/build_docs.sh"
Expand Down
36 changes: 31 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- wheel-tests-cudf
- wheel-build-cudf-polars
- wheel-tests-cudf-polars
- cudf-polars-polars-tests
- wheel-build-dask-cudf
- wheel-tests-dask-cudf
- devcontainer
Expand All @@ -49,6 +50,7 @@ jobs:
test_java: ${{ steps.changed-files.outputs.java_any_changed == 'true' }}
test_notebooks: ${{ steps.changed-files.outputs.notebooks_any_changed == 'true' }}
test_python: ${{ steps.changed-files.outputs.python_any_changed == 'true' }}
test_cudf_pandas: ${{ steps.changed-files.outputs.cudf_pandas_any_changed == 'true' }}
steps:
- name: Get PR info
id: get-pr-info
Expand Down Expand Up @@ -81,6 +83,7 @@ jobs:
- '!java/**'
- '!notebooks/**'
- '!python/**'
- '!ci/cudf_pandas_scripts/**'
java:
- '**'
- '!CONTRIBUTING.md'
Expand All @@ -89,11 +92,13 @@ jobs:
- '!img/**'
- '!notebooks/**'
- '!python/**'
- '!ci/cudf_pandas_scripts/**'
notebooks:
- '**'
- '!CONTRIBUTING.md'
- '!README.md'
- '!java/**'
- '!ci/cudf_pandas_scripts/**'
python:
- '**'
- '!CONTRIBUTING.md'
Expand All @@ -102,6 +107,16 @@ jobs:
- '!img/**'
- '!java/**'
- '!notebooks/**'
- '!ci/cudf_pandas_scripts/**'
cudf_pandas:
- '**'
- 'ci/cudf_pandas_scripts/**'
- '!CONTRIBUTING.md'
- '!README.md'
- '!docs/**'
- '!img/**'
- '!java/**'
- '!notebooks/**'
checks:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@branch-24.10
Expand Down Expand Up @@ -159,7 +174,7 @@ jobs:
build_type: pull-request
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/test_java.sh"
static-configure:
needs: checks
Expand All @@ -180,7 +195,7 @@ jobs:
build_type: pull-request
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/test_notebooks.sh"
docs-build:
needs: conda-python-build
Expand All @@ -190,7 +205,7 @@ jobs:
build_type: pull-request
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/build_docs.sh"
wheel-build-libcudf:
needs: checks
Expand Down Expand Up @@ -244,6 +259,17 @@ jobs:
# This always runs, but only fails if this PR touches code in
# pylibcudf or cudf_polars
script: "ci/test_wheel_cudf_polars.sh"
cudf-polars-polars-tests:
needs: wheel-build-cudf-polars
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@branch-24.10
with:
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
build_type: pull-request
# This always runs, but only fails if this PR touches code in
# pylibcudf or cudf_polars
script: "ci/test_cudf_polars_polars_tests.sh"
wheel-build-dask-cudf:
needs: wheel-build-cudf
secrets: inherit
Expand Down Expand Up @@ -277,7 +303,7 @@ jobs:
needs: [wheel-build-cudf, changed-files]
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@branch-24.10
if: needs.changed-files.outputs.test_python == 'true'
if: needs.changed-files.outputs.test_python == 'true' || needs.changed-files.outputs.test_cudf_pandas == 'true'
with:
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
Expand All @@ -288,7 +314,7 @@ jobs:
needs: [wheel-build-cudf, changed-files]
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@branch-24.10
if: needs.changed-files.outputs.test_python == 'true'
if: needs.changed-files.outputs.test_python == 'true' || needs.changed-files.outputs.test_cudf_pandas == 'true'
with:
# This selects "ARCH=amd64 + the latest supported Python + CUDA".
matrix_filter: map(select(.ARCH == "amd64")) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
sha: ${{ inputs.sha }}
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/test_cpp_memcheck.sh"
static-configure:
secrets: inherit
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
sha: ${{ inputs.sha }}
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/test_java.sh"
conda-notebook-tests:
secrets: inherit
Expand All @@ -93,7 +93,7 @@ jobs:
sha: ${{ inputs.sha }}
node_type: "gpu-v100-latest-1"
arch: "amd64"
container_image: "rapidsai/ci-conda:latest"
container_image: "rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.11"
run_script: "ci/test_notebooks.sh"
wheel-tests-cudf:
secrets: inherit
Expand Down
16 changes: 9 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ ARGS=$*
# script, and that this script resides in the repo dir!
REPODIR=$(cd $(dirname $0); pwd)

VALIDARGS="clean libcudf pylibcudf cudf cudfjar dask_cudf benchmarks tests libcudf_kafka cudf_kafka custreamz -v -g -n --pydevelop -l --allgpuarch --disable_nvtx --opensource_nvcomp --show_depr_warn --ptds -h --build_metrics --incl_cache_stats --disable_large_strings"
HELP="$0 [clean] [libcudf] [pylibcudf] [cudf] [cudfjar] [dask_cudf] [benchmarks] [tests] [libcudf_kafka] [cudf_kafka] [custreamz] [-v] [-g] [-n] [-h] [--cmake-args=\\\"<args>\\\"]
VALIDARGS="clean libcudf pylibcudf cudf cudf_polars cudfjar dask_cudf benchmarks tests libcudf_kafka cudf_kafka custreamz -v -g -n --pydevelop -l --allgpuarch --disable_nvtx --opensource_nvcomp --show_depr_warn --ptds -h --build_metrics --incl_cache_stats --disable_large_strings"
HELP="$0 [clean] [libcudf] [pylibcudf] [cudf] [cudf_polars] [cudfjar] [dask_cudf] [benchmarks] [tests] [libcudf_kafka] [cudf_kafka] [custreamz] [-v] [-g] [-n] [-h] [--cmake-args=\\\"<args>\\\"]
clean - remove all existing build artifacts and configuration (start
over)
libcudf - build the cudf C++ code only
pylibcudf - build the pylibcudf Python package
cudf - build the cudf Python package
cudf_polars - build the cudf_polars Python package
cudfjar - build cudf JAR with static libcudf using devtoolset toolchain
dask_cudf - build the dask_cudf Python package
benchmarks - build benchmarks
Expand Down Expand Up @@ -239,11 +240,6 @@ if hasArg --pydevelop; then
PYTHON_ARGS_FOR_INSTALL="${PYTHON_ARGS_FOR_INSTALL} -e"
fi

# Append `-DFIND_CUDF_CPP=ON` to EXTRA_CMAKE_ARGS unless a user specified the option.
if [[ "${EXTRA_CMAKE_ARGS}" != *"DFIND_CUDF_CPP"* ]]; then
EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS} -DFIND_CUDF_CPP=ON"
fi

if hasArg --disable_large_strings; then
BUILD_DISABLE_LARGE_STRINGS="ON"
fi
Expand Down Expand Up @@ -358,6 +354,12 @@ if buildAll || hasArg cudf; then
python ${PYTHON_ARGS_FOR_INSTALL} .
fi

# Build and install the cudf_polars Python package
if buildAll || hasArg cudf_polars; then

cd ${REPODIR}/python/cudf_polars
python ${PYTHON_ARGS_FOR_INSTALL} .
fi

# Build and install the dask_cudf Python package
if buildAll || hasArg dask_cudf; then
Expand Down
56 changes: 52 additions & 4 deletions ci/cudf_pandas_scripts/pandas-tests/job-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,33 @@ def emoji_failed(x):
# convert pr_results to a pandas DataFrame and then a markdown table
pr_df = pd.DataFrame.from_dict(pr_results, orient="index").sort_index()
main_df = pd.DataFrame.from_dict(main_results, orient="index").sort_index()
total_usage = main_df["_slow_function_call"] + main_df["_fast_function_call"]
main_df["CPU Usage"] = ((main_df["_slow_function_call"] / total_usage) * 100.0).round(1)
main_df["GPU Usage"] = ((main_df["_fast_function_call"] / total_usage) * 100.0).round(1)

total_usage = pr_df["_slow_function_call"] + pr_df["_fast_function_call"]
pr_df["CPU Usage"] = ((pr_df["_slow_function_call"] / total_usage) * 100.0).round(1)
pr_df["GPU Usage"] = ((pr_df["_fast_function_call"] / total_usage) * 100.0).round(1)

cpu_usage_mean = pr_df["CPU Usage"].mean().round(2)
gpu_usage_mean = pr_df["GPU Usage"].mean().round(2)

gpu_usage_rate_change = abs(pr_df["GPU Usage"].mean() - main_df["GPU Usage"].mean())
pr_df["CPU Usage"] = pr_df["CPU Usage"].fillna(0)
pr_df["GPU Usage"] = pr_df["GPU Usage"].fillna(0)
main_df["CPU Usage"] = main_df["CPU Usage"].fillna(0)
main_df["GPU Usage"] = main_df["GPU Usage"].fillna(0)

diff_df = pr_df - main_df
diff_df["CPU Usage"] = diff_df["CPU Usage"].round(1).fillna(0)
diff_df["GPU Usage"] = diff_df["GPU Usage"].round(1).fillna(0)

# Add '%' suffix to "CPU Usage" and "GPU Usage" columns
pr_df["CPU Usage"] = pr_df["CPU Usage"].astype(str) + "%"
pr_df["GPU Usage"] = pr_df["GPU Usage"].astype(str) + "%"

pr_df = pr_df[["total", "passed", "failed", "skipped"]]
diff_df = diff_df[["total", "passed", "failed", "skipped"]]
pr_df = pr_df[["total", "passed", "failed", "skipped", "CPU Usage", "GPU Usage"]]
diff_df = diff_df[["total", "passed", "failed", "skipped", "CPU Usage", "GPU Usage"]]
diff_df.columns = diff_df.columns + "_diff"
diff_df["passed_diff"] = diff_df["passed_diff"].map(emoji_passed)
diff_df["failed_diff"] = diff_df["failed_diff"].map(emoji_failed)
Expand All @@ -89,12 +112,37 @@ def emoji_failed(x):
"passed_diff": "Passed delta",
"failed_diff": "Failed delta",
"skipped_diff": "Skipped delta",
"CPU Usage_diff": "CPU Usage delta",
"GPU Usage_diff": "GPU Usage delta",
}
)
df = df.sort_values(by=["Failed tests", "Skipped tests"], ascending=False)

df = df.sort_values(by=["CPU Usage delta", "Total tests"], ascending=False)
df["CPU Usage delta"] = df["CPU Usage delta"].map(emoji_failed)
df["GPU Usage delta"] = df["GPU Usage delta"].map(emoji_passed)
df = df[
[
"Total tests",
"CPU Usage delta",
"GPU Usage delta",
"Passed tests",
"Failed tests",
"Skipped tests",
"CPU Usage",
"GPU Usage",
"Total delta",
"Passed delta",
"Failed delta",
"Skipped delta",
]
]
print(comment)
print()
print(
f"Average GPU usage: {gpu_usage_mean}% {'an increase' if gpu_usage_rate_change > 0 else 'a decrease'} by {gpu_usage_rate_change}%"
)
print()
print(f"Average CPU usage: {cpu_usage_mean}%")
print()
print("Here are the results of running the Pandas tests against this PR:")
print()
print(df.to_markdown())
4 changes: 2 additions & 2 deletions ci/cudf_pandas_scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ else

echo "" > ./constraints.txt
if [[ $RAPIDS_DEPENDENCIES == "oldest" ]]; then
# `test_python` constraints are for `[test]` not `[cudf-pandas-tests]`
# `test_python_cudf_pandas` constraints are for `[test]` not `[cudf-pandas-tests]`
rapids-dependency-file-generator \
--output requirements \
--file-key test_python \
--file-key test_python_cudf_pandas \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \
| tee ./constraints.txt
fi
Expand Down
10 changes: 6 additions & 4 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ NEXT_PATCH=$(echo $NEXT_FULL_TAG | awk '{split($0, a, "."); print a[3]}')
NEXT_SHORT_TAG=${NEXT_MAJOR}.${NEXT_MINOR}

# Need to distutils-normalize the versions for some use cases
CURRENT_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${CURRENT_SHORT_TAG}'))")
NEXT_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_SHORT_TAG}'))")
PATCH_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_PATCH}'))")
CURRENT_SHORT_TAG_PEP440=$(python -c "from packaging.version import Version; print(Version('${CURRENT_SHORT_TAG}'))")
NEXT_SHORT_TAG_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_SHORT_TAG}'))")
PATCH_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_PATCH}'))")

echo "Preparing release $CURRENT_TAG => $NEXT_FULL_TAG"

Expand All @@ -45,6 +45,8 @@ sed_runner "s/branch-.*/branch-${NEXT_SHORT_TAG}/g" ci/test_wheel_dask_cudf.sh
DEPENDENCIES=(
cudf
cudf_kafka
cugraph
cuml
custreamz
dask-cuda
dask-cudf
Expand All @@ -57,7 +59,7 @@ DEPENDENCIES=(
rmm
)
for DEP in "${DEPENDENCIES[@]}"; do
for FILE in dependencies.yaml conda/environments/*.yaml; do
for FILE in dependencies.yaml conda/environments/*.yaml python/cudf/cudf_pandas_tests/third_party_integration_tests/dependencies.yaml; do
sed_runner "/-.* ${DEP}\(-cu[[:digit:]]\{2\}\)\{0,1\}==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}.*,>=0.0.0a0/g" "${FILE}"
done
for FILE in python/*/pyproject.toml; do
Expand Down
27 changes: 27 additions & 0 deletions ci/run_cudf_polars_polars_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

set -euo pipefail

# Support invoking run_cudf_polars_pytests.sh outside the script directory
# Assumption, polars has been cloned in the root of the repo.
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../polars/

DESELECTED_TESTS=(
"tests/unit/test_polars_import.py::test_polars_import" # relies on a polars built in place
"tests/unit/streaming/test_streaming_sort.py::test_streaming_sort[True]" # relies on polars built in debug mode
"tests/unit/test_cpu_check.py::test_check_cpu_flags_skipped_no_flags" # Mock library error
"tests/docs/test_user_guide.py" # No dot binary in CI image
)

DESELECTED_TESTS=$(printf -- " --deselect %s" "${DESELECTED_TESTS[@]}")
python -m pytest \
--import-mode=importlib \
--cache-clear \
-m "" \
-p cudf_polars.testing.plugin \
-v \
--tb=native \
${DESELECTED_TESTS} \
"$@" \
py-polars/tests
Loading