Skip to content

Conversation

@mroeschke
Copy link
Member

Discovered while working on conda-forge/pandas-feedstock#147. cc @jakirkham

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail labels Dec 19, 2022


@pytest.mark.xfail(is_platform_arm() and not is_platform_mac(), reason="GH 38921")
@pytest.mark.xfail(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we have to figure out what's wrong in here at some point

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah definitely. Maybe we should reconsider if it's also worth using a sliding window algorithm if it's susceptible to these numerical precision issues

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm I think this is a compiler issue. Something is optimised that triggers the problem.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right a compiler flag seems to match the consensus in issue ( #38921 ).

Namely it looks like some optimization causes a form of fma to get called, which evaluates incorrectly. This implementation in Cython seems to demonstrate the issue ( #38921 (comment) ).

Am guessing this issue would also show up on macOS ARM (even though that hasn't come up yet).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. At least for this PR I am just hoping to skip this test for now until a fix is investigated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep my comment was meant more generally.

yes this also happens on Mac, already validated this

@mroeschke mroeschke added this to the 2.0 milestone Dec 27, 2022
@phofl phofl merged commit 5a9142e into pandas-dev:main Dec 27, 2022
@phofl
Copy link
Member

phofl commented Dec 27, 2022

@mroeschke mroeschke deleted the tst/power branch December 28, 2022 00:32
@jakirkham
Copy link
Contributor

Thanks Matthew! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail

3 participants