Skip to content

CI: Debug failing ARM builds #59813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pandas/tests/extension/test_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,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 @@ -16,7 +16,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 @@ -163,6 +163,14 @@ before-test = "bash {package}/scripts/cibw_before_test.sh"
before-build = "pip install delvewheel && bash {package}/scripts/cibw_before_build.sh"
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 && bash {package}/scripts/cibw_before_test.sh"
Expand Down Expand Up @@ -478,6 +486,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
Loading