-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
test_maybe_promote_int_with_int
error on 32bit platform
#31856
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
Comments
Thanks for the report. Are you able to bisect to the commit that caused the regression? |
I'm updating our wheel-building infra for the new uploading stuff, and noticed these failures on 32-bit windows and linux jobs. https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=29023&view=logs&j=dcd50a69-7bd8-59f7-72b1-a119e6ffb32f&t=d88b7d2e-2609-55f5-9005-b62435c7a771 and https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=29023&view=logs&j=517fe804-fa30-5dc2-1413-330699242c05&t=2e128ad5-2f7f-5333-3f34-c85b8fbc7250 for example. |
Seems like these were added in #28777. @jbrockmendel do you have access to a 32-bit OS? I would think this would be failing on our 32-bit job, but apparently not (or they aren't being run?). |
I'll take another try at building on a RasPi
IIRC I un-xfailed this on the theory that the CI would tell us if that was a mistake. I'm surprised this hasn't shown up until now. |
Perhaps @toddrme2178 nailed the reason in the original post
I'm not sure how to check that. |
@toddrme2178 are you able to do any more debugging on why these tests are failing? Are you interested in figuring out why our CI is failing to catch these? Generally speaking, we need help supporting 32-bit systems. |
@TomAugspurger I'll take a look when I get a chance. |
I have figured out at the very least that the issue only happens in numpy 1.18 and later. Currently only numpy 1.14 is being tested on 32bit. I have expanded the 32bit tests to cover numpy 1.14, 1.15, 1.16, 1.17, 1.18, and master. I don't think these should all be tested normally, but to catch these sorts of issues numpy dev might be tested on 32bit. That doesn't really explain why the issue is happening, but at least it shows why it wasn't being caught. |
np.intc (C int), np.int_ (C long) and np.longlong (C long long) are always distinct type objects, but only two of them are actually different sizes; np.int32 and np.int64 are aliases https://sources.debian.org/src/numpy/1:1.18.4-1/numpy/core/_type_aliases.py/#L110 Author: Rebecca N. Palmer <[email protected]> Bug: pandas-dev/pandas#31856 Forwarded: not-needed pandas-dev/pandas@1660057 Gbp-Pq: Name test_promote_32bit.patch
Looks like |
The test
test_maybe_promote_int_with_int
intests/dtypes/cast/test_promote.py
is failing for a subset of combinations whereint8
,uint8
,int16
, oruint16
values are promotoed toint32
oruint32
targets on i586 the platform (but not on x86_64). The error message is pretty consistent.This failure is new in pandas 1.0.1, it was not present on 1.0.0.
The specific combination of values that fail are:
These do not fail:
A specific example of the error message is:
The error message is consistent, except that
intc
andint32
are replaced withuintc
anduint32
in some cases. I can provide all error messages if desired.The tests are being run with numpy 1.18.1.
The text was updated successfully, but these errors were encountered: