Skip to content

Commit

Permalink
migrate changes from Propagate failures in pandas integration tests r…
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Dec 3, 2024
1 parent f54c1a5 commit cfd54e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions ci/cudf_pandas_scripts/third-party-integration/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ main() {
LIBS=${LIBS#[}
LIBS=${LIBS%]}

ANY_FAILURES=0

for lib in ${LIBS//,/ }; do
lib=$(echo "$lib" | tr -d '""')
echo "Running tests for library $lib"
Expand Down Expand Up @@ -56,10 +58,6 @@ main() {
rapids-logger "Check GPU usage"
nvidia-smi

EXITCODE=0
trap "EXITCODE=1" ERR
set +e

rapids-logger "pytest ${lib}"

NUM_PROCESSES=8
Expand All @@ -72,12 +70,20 @@ main() {
fi
done

EXITCODE=0
trap "EXITCODE=1" ERR
set +e

TEST_DIR=${TEST_DIR} NUM_PROCESSES=${NUM_PROCESSES} ci/cudf_pandas_scripts/third-party-integration/run-library-tests.sh ${lib}

set -e
rapids-logger "Test script exiting with value: ${EXITCODE}"
if [[ ${EXITCODE} != 0 ]]; then
ANY_FAILURES=1
fi
done

exit ${EXITCODE}
exit ${ANY_FAILURES}
}

main "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_multidimensional_distributed_timeseries(dask_client):
rng = np.random.default_rng(seed=42)
# Each row represents data from a different dimension while each column represents
# data from the same dimension
your_time_series = rng.random(3, 1000)
your_time_series = rng.random((3, 1000))
# Approximately, how many data points might be found in a pattern
window_size = 50

Expand Down

0 comments on commit cfd54e2

Please sign in to comment.