Skip to content

Commit 10025af

Browse files
committed
addpatch: python-dask 2026.8.0-1
Accept the additional NumPy floor RuntimeWarning while generating overflowing timestamp inputs on riscv64. The 2026.8.0-1.1 check fails only in test_pandas_timestamp_overflow_pyarrow because pytest.warns matches cast alone and re-emits the floor warning as an error. Keep the warning expectation, Parquet assertions, and existing suite selection intact. The exact release and current Dask source retain the cast-only match. No upstream Dask fix was found; NumPy issue 32461 reports related spurious RISC-V floor exceptions. numpy/numpy#32461 https://github.com/dask/dask/blob/2026.8.0/dask/dataframe/io/tests/test_parquet.py https://archriscv.felixc.at/.status/logs/python-dask/python-dask-2026.8.0-1.1.log
1 parent 657e00d commit 10025af

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎python-dask/riscv64.patch‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--- PKGBUILD
2+
+++ PKGBUILD
3+
@@ -84,8 +84,12 @@
4+
)
5+
b2sums=('80c25b616365cfafc09bd34d16a76aff4159c720b3806cf201c2572d20152088cc5427c0a188d70d0cc6b4877b0a05494dc259f12f0accc3524185c50e18f539')
6+
7+
+source+=(timestamp-overflow-warning.patch)
8+
+b2sums+=('d5902fcc757c5a22e6ff2db5a471d5a25c63bf2bab86dd347409d0c038bea3910d24722b8845c72e113fe821eed5d726c9ecfb182a6b4b6e416a3b3afbcb5646')
9+
+
10+
prepare() {
11+
cd $_name-$pkgver
12+
+ patch -Np1 -i "$srcdir/timestamp-overflow-warning.patch"
13+
# workaround for failing tests since Python 3.14 (dask.expr objects are not picklable)
14+
# https://github.com/dask/dask/issues/12043
15+
sed -i 's|except AttributeError:|except (AttributeError, pickle.PicklingError):|' dask/dataframe/dask_expr/tests/_util.py
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/dask/dataframe/io/tests/test_parquet.py
2+
+++ b/dask/dataframe/io/tests/test_parquet.py
3+
@@ -2494,7 +2494,9 @@
4+
info = np.iinfo(np.dtype("int64"))
5+
# In `numpy=1.24.0` NumPy warns when an overflow is encountered when casting from float to int
6+
# https://numpy.org/doc/stable/release/1.24.0-notes.html#numpy-now-gives-floating-point-errors-in-casts
7+
- with pytest.warns(RuntimeWarning, match="invalid value encountered in cast"):
8+
+ # RISC-V may also warn in linspace's floor before the overflowing cast.
9+
+ # https://github.com/numpy/numpy/issues/32461
10+
+ with pytest.warns(RuntimeWarning, match="invalid value encountered in (cast|floor)"):
11+
arr_numeric = np.linspace(
12+
start=info.min + 2, stop=info.max, num=1024, dtype="int64"
13+
)

0 commit comments

Comments
 (0)