Skip to content

Commit 4a20adb

Browse files
Backport PR #59813 on branch 2.2.x (CI: Debug failing ARM builds) (#59828)
Backport PR #59813: CI: Debug failing ARM builds Co-authored-by: Thomas Li <[email protected]>
1 parent e5a2067 commit 4a20adb

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

pandas/tests/extension/test_sparse.py

+5
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,16 @@ def test_argmin_argmax_all_na(self, method, data, na_value):
348348
self._check_unsupported(data)
349349
super().test_argmin_argmax_all_na(method, data, na_value)
350350

351+
@pytest.mark.fails_arm_wheels
351352
@pytest.mark.parametrize("box", [pd.array, pd.Series, pd.DataFrame])
352353
def test_equals(self, data, na_value, as_series, box):
353354
self._check_unsupported(data)
354355
super().test_equals(data, na_value, as_series, box)
355356

357+
@pytest.mark.fails_arm_wheels
358+
def test_equals_same_data_different_object(self, data):
359+
super().test_equals_same_data_different_object(data)
360+
356361
@pytest.mark.parametrize(
357362
"func, na_action, expected",
358363
[

pandas/tests/series/test_ufunc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ def ufunc(request):
1818
return request.param
1919

2020

21-
@pytest.fixture(params=[True, False], ids=["sparse", "dense"])
21+
@pytest.fixture(
22+
params=[pytest.param(True, marks=pytest.mark.fails_arm_wheels), False],
23+
ids=["sparse", "dense"],
24+
)
2225
def sparse(request):
2326
return request.param
2427

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ test-command = """
169169
before-build = "pip install delvewheel numpy==2.0.0rc1"
170170
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
171171

172+
[[tool.cibuildwheel.overrides]]
173+
select = "*-manylinux_aarch64*"
174+
test-command = """
175+
PANDAS_CI='1' python -c 'import pandas as pd; \
176+
pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db and not fails_arm_wheels", "-n 2", "--no-strict-data-files"]); \
177+
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
178+
"""
179+
172180
[[tool.cibuildwheel.overrides]]
173181
select = "*-musllinux*"
174182
before-test = "apk update && apk add musl-locales"
@@ -525,6 +533,10 @@ markers = [
525533
"clipboard: mark a pd.read_clipboard test",
526534
"arm_slow: mark a test as slow for arm64 architecture",
527535
"skip_ubsan: Tests known to fail UBSAN check",
536+
# TODO: someone should investigate this ...
537+
# these tests only fail in the wheel builder and don't fail in regular
538+
# ARM CI
539+
"fails_arm_wheels: Tests that fail in the ARM wheel build only",
528540
]
529541

530542
[tool.mypy]

0 commit comments

Comments
 (0)