Skip to content

CI: Fix test failures in 32-bit environment #61423

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chilin0525
Copy link
Contributor

@chilin0525 chilin0525 commented May 10, 2025

I noticed that some CI failures are due to the same test errors appearing in several recent PRs.
After comparing multiple failed and successful CI runs, it seems that the unit tests fail when using cython==3.1.0 in the Linux 32-bit environment.

Faliure unittest case:

FAILED pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-1-values0] - AssertionError: Series are different

Series values are different (42.85714 %)
[index]: [0, 1, 2, 3, 4, 5, 6]
[left]:  [nan, 5e+33, 0.0, -1.7226268574692147e+17, -1.7226268574692147e+17, -1.7226268574692147e+17, 0.0]
[right]: [nan, 5e+33, 0.0, 0.5, 0.5, 2.0, 0.0]
At positional index 3, first diff: -1.7226268574692147e+17 != 0.5
FAILED pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-1-values1] - AssertionError: Series are different

Series values are different (42.85714 %)
[index]: [0, 1, 2, 3, 4, 5, 6]
[left]:  [nan, 7.071067811865475e+16, 0.0, 0.0, 0.0, 0.0, 0.0]
[right]: [nan, 7.071068e+16, 0.0, 0.7071068, 0.7071068, 1.414214, 0.0]
At positional index 3, first diff: 0.0 != 0.7071068
FAILED pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-2-values2] - AssertionError: Series are different

Series values are different (42.85714 %)
[index]: [0, 1, 2, 3, 4, 5, 6]
[left]:  [nan, 5e+33, -1.7226268574692147e+17, 0.0, -1.7226268574692147e+17, -1.7226268574692147e+17, 0.0]
[right]: [nan, 5e+33, 0.5, 0.0, 0.5, 2.0, 0.0]
At positional index 2, first diff: -1.7226268574692147e+17 != 0.5
FAILED pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-2-values3] - AssertionError: Series are different

Series values are different (42.85714 %)
[index]: [0, 1, 2, 3, 4, 5, 6]
[left]:  [nan, 7.071067811865475e+16, 0.0, 0.0, 0.0, 0.0, 0.0]
[right]: [nan, 7.071068e+16, 0.7071068, 0.0, 0.7071068, 1.414214, 0.0]
At positional index 2, first diff: 0.0 != 0.7071068
= 4 failed, 166839 passed, 24850 skipped, 5388 deselected, 795 xfailed, 92 xpassed, 2 warnings in 554.17s (0:09:14) =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant