Skip to content

Commit

Permalink
Backport PR #59813 on branch 2.2.x (CI: Debug failing ARM builds) (#5…
Browse files Browse the repository at this point in the history
…9828)

Backport PR #59813: CI: Debug failing ARM builds

Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and lithomas1 authored Sep 17, 2024
1 parent e5a2067 commit 4a20adb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pandas/tests/extension/test_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,16 @@ def test_argmin_argmax_all_na(self, method, data, na_value):
self._check_unsupported(data)
super().test_argmin_argmax_all_na(method, data, na_value)

@pytest.mark.fails_arm_wheels
@pytest.mark.parametrize("box", [pd.array, pd.Series, pd.DataFrame])
def test_equals(self, data, na_value, as_series, box):
self._check_unsupported(data)
super().test_equals(data, na_value, as_series, box)

@pytest.mark.fails_arm_wheels
def test_equals_same_data_different_object(self, data):
super().test_equals_same_data_different_object(data)

@pytest.mark.parametrize(
"func, na_action, expected",
[
Expand Down
5 changes: 4 additions & 1 deletion pandas/tests/series/test_ufunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def ufunc(request):
return request.param


@pytest.fixture(params=[True, False], ids=["sparse", "dense"])
@pytest.fixture(
params=[pytest.param(True, marks=pytest.mark.fails_arm_wheels), False],
ids=["sparse", "dense"],
)
def sparse(request):
return request.param

Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ test-command = """
before-build = "pip install delvewheel numpy==2.0.0rc1"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"

[[tool.cibuildwheel.overrides]]
select = "*-manylinux_aarch64*"
test-command = """
PANDAS_CI='1' python -c 'import pandas as pd; \
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"]); \
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
"""

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-test = "apk update && apk add musl-locales"
Expand Down Expand Up @@ -525,6 +533,10 @@ markers = [
"clipboard: mark a pd.read_clipboard test",
"arm_slow: mark a test as slow for arm64 architecture",
"skip_ubsan: Tests known to fail UBSAN check",
# TODO: someone should investigate this ...
# these tests only fail in the wheel builder and don't fail in regular
# ARM CI
"fails_arm_wheels: Tests that fail in the ARM wheel build only",
]

[tool.mypy]
Expand Down

0 comments on commit 4a20adb

Please # to comment.