From 16d077f3320485ae0211332888d9c7e5fe180736 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:27:21 -0700 Subject: [PATCH] Remove prior test skipping in run-pandas-tests with testing 2.2.1 --- .../cudf/pandas/scripts/run-pandas-tests.sh | 101 +----------------- 1 file changed, 3 insertions(+), 98 deletions(-) diff --git a/python/cudf/cudf/pandas/scripts/run-pandas-tests.sh b/python/cudf/cudf/pandas/scripts/run-pandas-tests.sh index 06df7b36f7d..eeb9f2b6368 100755 --- a/python/cudf/cudf/pandas/scripts/run-pandas-tests.sh +++ b/python/cudf/cudf/pandas/scripts/run-pandas-tests.sh @@ -60,8 +60,6 @@ if [ ! -d "pandas-tests" ]; then [tool.pytest.ini_options] xfail_strict = true filterwarnings = [ - "error:Sparse:FutureWarning", - "error:The SparseArray:FutureWarning", # Will be fixed in numba 0.56: https://github.com/numba/numba/issues/7758 "ignore:`np.MachAr` is deprecated:DeprecationWarning:numba", ] @@ -72,7 +70,7 @@ markers = [ "db: tests requiring a database (mysql or postgres)", "clipboard: mark a pd.read_clipboard test", "arm_slow: mark a test as slow for arm64 architecture", - "arraymanager: mark a test to run with ArrayManager enabled", + "skip_ubsan: Tests known to fail UBSAN check", ] EOF # append the contents of patch-confest.py to conftest.py @@ -100,104 +98,11 @@ cat ../python/cudf/cudf/pandas/scripts/conftest-patch.py >> pandas-tests/conftes # Run the tests cd pandas-tests/ -# TODO: Get a postgres & mysql container set up on the CI -# test_overwrite_warns unsafely patchs over Series.mean affecting other tests when run in parallel -# test_complex_series_frame_alignment randomly selects a DataFrames and axis to test but particular random selection(s) always fails -# test_numpy_ufuncs_basic compares floating point values to unbounded precision, sometimes leading to failures -TEST_NUMPY_UFUNCS_BASIC_FLAKY="not test_numpy_ufuncs_basic[float-exp] \ -and not test_numpy_ufuncs_basic[float-exp2] \ -and not test_numpy_ufuncs_basic[float-expm1] \ -and not test_numpy_ufuncs_basic[float-log] \ -and not test_numpy_ufuncs_basic[float-log2] \ -and not test_numpy_ufuncs_basic[float-log10] \ -and not test_numpy_ufuncs_basic[float-log1p] \ -and not test_numpy_ufuncs_basic[float-sqrt] \ -and not test_numpy_ufuncs_basic[float-sin] \ -and not test_numpy_ufuncs_basic[float-cos] \ -and not test_numpy_ufuncs_basic[float-tan] \ -and not test_numpy_ufuncs_basic[float-arcsin] \ -and not test_numpy_ufuncs_basic[float-arccos] \ -and not test_numpy_ufuncs_basic[float-arctan] \ -and not test_numpy_ufuncs_basic[float-sinh] \ -and not test_numpy_ufuncs_basic[float-cosh] \ -and not test_numpy_ufuncs_basic[float-tanh] \ -and not test_numpy_ufuncs_basic[float-arcsinh] \ -and not test_numpy_ufuncs_basic[float-arccosh] \ -and not test_numpy_ufuncs_basic[float-arctanh] \ -and not test_numpy_ufuncs_basic[float-deg2rad] \ -and not test_numpy_ufuncs_basic[float-rad2deg] \ -and not test_numpy_ufuncs_basic[num_float64-exp] \ -and not test_numpy_ufuncs_basic[num_float64-exp2] \ -and not test_numpy_ufuncs_basic[num_float64-expm1] \ -and not test_numpy_ufuncs_basic[num_float64-log] \ -and not test_numpy_ufuncs_basic[num_float64-log2] \ -and not test_numpy_ufuncs_basic[num_float64-log10] \ -and not test_numpy_ufuncs_basic[num_float64-log1p] \ -and not test_numpy_ufuncs_basic[num_float64-sqrt] \ -and not test_numpy_ufuncs_basic[num_float64-sin] \ -and not test_numpy_ufuncs_basic[num_float64-cos] \ -and not test_numpy_ufuncs_basic[num_float64-tan] \ -and not test_numpy_ufuncs_basic[num_float64-arcsin] \ -and not test_numpy_ufuncs_basic[num_float64-arccos] \ -and not test_numpy_ufuncs_basic[num_float64-arctan] \ -and not test_numpy_ufuncs_basic[num_float64-sinh] \ -and not test_numpy_ufuncs_basic[num_float64-cosh] \ -and not test_numpy_ufuncs_basic[num_float64-tanh] \ -and not test_numpy_ufuncs_basic[num_float64-arcsinh] \ -and not test_numpy_ufuncs_basic[num_float64-arccosh] \ -and not test_numpy_ufuncs_basic[num_float64-arctanh] \ -and not test_numpy_ufuncs_basic[num_float64-deg2rad] \ -and not test_numpy_ufuncs_basic[num_float64-rad2deg] \ -and not test_numpy_ufuncs_basic[num_float32-exp] \ -and not test_numpy_ufuncs_basic[num_float32-exp2] \ -and not test_numpy_ufuncs_basic[num_float32-expm1] \ -and not test_numpy_ufuncs_basic[num_float32-log] \ -and not test_numpy_ufuncs_basic[num_float32-log2] \ -and not test_numpy_ufuncs_basic[num_float32-log10] \ -and not test_numpy_ufuncs_basic[num_float32-log1p] \ -and not test_numpy_ufuncs_basic[num_float32-sqrt] \ -and not test_numpy_ufuncs_basic[num_float32-sin] \ -and not test_numpy_ufuncs_basic[num_float32-cos] \ -and not test_numpy_ufuncs_basic[num_float32-tan] \ -and not test_numpy_ufuncs_basic[num_float32-arcsin] \ -and not test_numpy_ufuncs_basic[num_float32-arccos] \ -and not test_numpy_ufuncs_basic[num_float32-arctan] \ -and not test_numpy_ufuncs_basic[num_float32-sinh] \ -and not test_numpy_ufuncs_basic[num_float32-cosh] \ -and not test_numpy_ufuncs_basic[num_float32-tanh] \ -and not test_numpy_ufuncs_basic[num_float32-arcsinh] \ -and not test_numpy_ufuncs_basic[num_float32-arccosh] \ -and not test_numpy_ufuncs_basic[num_float32-arctanh] \ -and not test_numpy_ufuncs_basic[num_float32-deg2rad] \ -and not test_numpy_ufuncs_basic[num_float32-rad2deg] \ -and not test_numpy_ufuncs_basic[nullable_float-exp] \ -and not test_numpy_ufuncs_basic[nullable_float-exp2] \ -and not test_numpy_ufuncs_basic[nullable_float-expm1] \ -and not test_numpy_ufuncs_basic[nullable_float-log] \ -and not test_numpy_ufuncs_basic[nullable_float-log2] \ -and not test_numpy_ufuncs_basic[nullable_float-log10] \ -and not test_numpy_ufuncs_basic[nullable_float-log1p] \ -and not test_numpy_ufuncs_basic[nullable_float-sqrt] \ -and not test_numpy_ufuncs_basic[nullable_float-sin] \ -and not test_numpy_ufuncs_basic[nullable_float-cos] \ -and not test_numpy_ufuncs_basic[nullable_float-tan] \ -and not test_numpy_ufuncs_basic[nullable_float-arcsin] \ -and not test_numpy_ufuncs_basic[nullable_float-arccos] \ -and not test_numpy_ufuncs_basic[nullable_float-arctan] \ -and not test_numpy_ufuncs_basic[nullable_float-sinh] \ -and not test_numpy_ufuncs_basic[nullable_float-cosh] \ -and not test_numpy_ufuncs_basic[nullable_float-tanh] \ -and not test_numpy_ufuncs_basic[nullable_float-arcsinh] \ -and not test_numpy_ufuncs_basic[nullable_float-arccosh] \ -and not test_numpy_ufuncs_basic[nullable_float-arctanh] \ -and not test_numpy_ufuncs_basic[nullable_float-deg2rad] \ -and not test_numpy_ufuncs_basic[nullable_float-rad2deg]" - +# TODO: Remove "not db" once a postgres & mysql container is set up on the CI PANDAS_CI="1" timeout 30m python -m pytest -p cudf.pandas \ -v -m "not single_cpu and not db" \ - -k "not test_overwrite_warns and not test_complex_series_frame_alignment and not test_to_parquet_gcs_new_file and not test_qcut_nat and not test_add and not test_ismethods and $TEST_NUMPY_UFUNCS_BASIC_FLAKY" \ + -k "not test_to_parquet_gcs_new_file and not test_qcut_nat and not test_add and not test_ismethods" \ --import-mode=importlib \ - -o xfail_strict=True \ ${PYTEST_IGNORES} \ "$@" || [ $? = 1 ] # Exit success if exit code was 1 (permit test failures but not other errors)