Skip to content
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

Test AbslTimeTest.test_pass_datetime_pre_unix_epoch fails on 32-bit i586 architecture #22

Open
badshah400 opened this issue Apr 27, 2024 · 0 comments

Comments

@badshah400
Copy link

Using pybind11_abseil 202402.0, python 3.10, on 32-bit architecture, we see the following error when running ctest after building the library. I understand if 32 bit archs are not supported, but I just wanted to report here before disabling these builds.

Thanks in advance.

[   84s] 5/6 Test #2: absl_test ........................***Failed    0.23 sec
[   84s] Running tests under Python 3.10.13: /usr/bin/python3.10
[   84s] [ RUN      ] AbslBTreeMapTest.test_pass_map
[   84s] [       OK ] AbslBTreeMapTest.test_pass_map
[   84s] [ RUN      ] AbslBTreeMapTest.test_return_map
[   84s] [       OK ] AbslBTreeMapTest.test_return_map
[   84s] [ RUN      ] AbslCordTest.test_pass_absl_cord
[   84s] [       OK ] AbslCordTest.test_pass_absl_cord
[   84s] [ RUN      ] AbslCordTest.test_return_absl_cord
[   84s] [       OK ] AbslCordTest.test_return_absl_cord
[   84s] [ RUN      ] AbslFlatHashMapTest.test_pass_map
[   84s] [       OK ] AbslFlatHashMapTest.test_pass_map
[   84s] [ RUN      ] AbslFlatHashMapTest.test_return_map
[   84s] [       OK ] AbslFlatHashMapTest.test_return_map
[   84s] [ RUN      ] AbslFlatHashSetTest.test_pass_set
[   84s] [       OK ] AbslFlatHashSetTest.test_pass_set
[   84s] [ RUN      ] AbslFlatHashSetTest.test_return_set
[   84s] [       OK ] AbslFlatHashSetTest.test_return_set
[   84s] [ RUN      ] AbslNodeHashMapTest.test_pass_map
[   84s] [       OK ] AbslNodeHashMapTest.test_pass_map
[   84s] [ RUN      ] AbslNodeHashMapTest.test_return_map
[   84s] [       OK ] AbslNodeHashMapTest.test_return_map
[   84s] [ RUN      ] AbslNodeHashSetTest.test_pass_set
[   84s] [       OK ] AbslNodeHashSetTest.test_pass_set
[   84s] [ RUN      ] AbslNodeHashSetTest.test_return_set
[   84s] [       OK ] AbslNodeHashSetTest.test_return_set
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_array_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_array_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_array_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_array_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_list
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_list
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_numpy_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_numpy_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_numpy_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_numpy_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_caster_copy_from_tuple
[   84s] [       OK ] AbslNumericSpanTest.test_caster_copy_from_tuple
[   84s] [ RUN      ] AbslNumericSpanTest.test_complex0 ('complex64', <built-in method sum_span_complex64 of PyCapsule object at 0xf5351b60>)
[   84s] [       OK ] AbslNumericSpanTest.test_complex0 ('complex64', <built-in method sum_span_complex64 of PyCapsule object at 0xf5351b60>)
[   84s] [ RUN      ] AbslNumericSpanTest.test_complex1 ('complex64', <built-in method sum_span_const_complex64 of PyCapsule object at 0xf5351b78>)
[   84s] [       OK ] AbslNumericSpanTest.test_complex1 ('complex64', <built-in method sum_span_const_complex64 of PyCapsule object at 0xf5351b78>)
[   84s] [ RUN      ] AbslNumericSpanTest.test_complex2 ('complex128', <built-in method sum_span_complex128 of PyCapsule object at 0xf5351b90>)
[   84s] [       OK ] AbslNumericSpanTest.test_complex2 ('complex128', <built-in method sum_span_complex128 of PyCapsule object at 0xf5351b90>)
[   84s] [ RUN      ] AbslNumericSpanTest.test_complex3 ('complex128', <built-in method sum_span_const_complex128 of PyCapsule object at 0xf5351ba8>)
[   84s] [       OK ] AbslNumericSpanTest.test_complex3 ('complex128', <built-in method sum_span_const_complex128 of PyCapsule object at 0xf5351ba8>)
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_float_numpy
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_float_numpy
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_native_list
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_native_list
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_non_supported_type
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_non_supported_type
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_read_only
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_read_only
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_strided_reverse
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_strided_reverse
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_strided_skip
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_strided_skip
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_fails_from_two_d_numpy
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_fails_from_two_d_numpy
[   84s] [ RUN      ] AbslNumericSpanTest.test_fill_span_from_numpy
[   84s] [       OK ] AbslNumericSpanTest.test_fill_span_from_numpy
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_bool0 ([], '')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_bool0 ([], '')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_bool1 ([False], 'f')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_bool1 ([False], 'f')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_bool2 ([True], 't')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_bool2 ([True], 't')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_bool3 ([False, True, True, False], 'fttf')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_bool3 ([False, True, True, False], 'fttf')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_const_bool0 ([], '')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_const_bool0 ([], '')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_const_bool1 ([False], 'F')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_const_bool1 ([False], 'F')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_const_bool2 ([True], 'T')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_const_bool2 ([True], 'T')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_const_bool3 ([False, True, True, False], 'FTTF')
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_const_bool3 ([False, True, True, False], 'FTTF')
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_fails_from_int
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_fails_from_int
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_fails_from_list_of_objects
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_fails_from_list_of_objects
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_fails_from_object
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_fails_from_object
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_fails_from_string
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_fails_from_string
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_array_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_array_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_array_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_array_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_list
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_list
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_numpy_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_numpy_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_numpy_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_numpy_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_from_tuple
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_from_tuple
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_array_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_array_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_list
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_list
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_numpy_wrong_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_numpy_wrong_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_tuple
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_fails_from_tuple
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_from_array_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_from_array_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_no_convert_from_numpy_matching_dtype
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_no_convert_from_numpy_matching_dtype
[   84s] [ RUN      ] AbslNumericSpanTest.test_pass_span_pyobject_ptr
[   84s] [       OK ] AbslNumericSpanTest.test_pass_span_pyobject_ptr
[   84s] [ RUN      ] AbslNumericSpanTest.test_return_span
[   84s] [       OK ] AbslNumericSpanTest.test_return_span
[   84s] [ RUN      ] AbslObjectSpanTest.test_fill_object_pointers_span_from_native_list
[   84s] [       OK ] AbslObjectSpanTest.test_fill_object_pointers_span_from_native_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_fill_object_pointers_span_from_opaque_list
[   84s] [       OK ] AbslObjectSpanTest.test_fill_object_pointers_span_from_opaque_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_fill_object_span_no_convert_fails_from_native_list
[   84s] [       OK ] AbslObjectSpanTest.test_fill_object_span_no_convert_fails_from_native_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_fill_object_span_no_convert_from_opaque_list
[   84s] [       OK ] AbslObjectSpanTest.test_fill_object_span_no_convert_from_opaque_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_pointers_span_from_native_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_pointers_span_from_native_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_pointers_span_from_opaque_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_pointers_span_from_opaque_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_span_from_native_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_span_from_native_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_span_from_opaque_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_span_from_opaque_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_span_no_convert_fails_from_native_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_span_no_convert_fails_from_native_list
[   84s] [ RUN      ] AbslObjectSpanTest.test_pass_object_span_no_convert_from_opaque_list
[   84s] [       OK ] AbslObjectSpanTest.test_pass_object_span_no_convert_from_opaque_list
[   84s] [ RUN      ] AbslOptionalTest.test_pass_default_nullopt
[   84s] [       OK ] AbslOptionalTest.test_pass_default_nullopt
[   84s] [ RUN      ] AbslOptionalTest.test_pass_none
[   84s] [       OK ] AbslOptionalTest.test_pass_none
[   84s] [ RUN      ] AbslOptionalTest.test_pass_value
[   84s] [       OK ] AbslOptionalTest.test_pass_value
[   84s] [ RUN      ] AbslOptionalTest.test_return_none
[   84s] [       OK ] AbslOptionalTest.test_return_none
[   84s] [ RUN      ] AbslOptionalTest.test_return_value
[   84s] [       OK ] AbslOptionalTest.test_return_value
[   84s] [ RUN      ] AbslStringViewTest.test_pass_string_view
[   84s] [       OK ] AbslStringViewTest.test_pass_string_view
[   84s] [ RUN      ] AbslStringViewTest.test_return_view
[   84s] [       OK ] AbslStringViewTest.test_return_view
[   84s] [ RUN      ] AbslTimeTest.test_absl_time_overloads
[   84s] [       OK ] AbslTimeTest.test_absl_time_overloads
[   84s] [ RUN      ] AbslTimeTest.test_dst_datetime_from_timestamp_after
[   84s] [       OK ] AbslTimeTest.test_dst_datetime_from_timestamp_after
[   84s] [ RUN      ] AbslTimeTest.test_dst_datetime_from_timestamp_before
[   84s] [       OK ] AbslTimeTest.test_dst_datetime_from_timestamp_before
[   84s] [ RUN      ] AbslTimeTest.test_dst_datetime_from_timestamp_flip
[   84s] [       OK ] AbslTimeTest.test_dst_datetime_from_timestamp_flip
[   84s] [ RUN      ] AbslTimeTest.test_duration_integer_overflow
[   84s] [       OK ] AbslTimeTest.test_duration_integer_overflow
[   84s] [ RUN      ] AbslTimeTest.test_from_datetime_time
[   84s] [       OK ] AbslTimeTest.test_from_datetime_time
[   84s] [ RUN      ] AbslTimeTest.test_infinite_duration
[   84s] [       OK ] AbslTimeTest.test_infinite_duration
[   84s] [ RUN      ] AbslTimeTest.test_infinite_future
[   84s] [       OK ] AbslTimeTest.test_infinite_future
[   84s] [ RUN      ] AbslTimeTest.test_infinite_past
[   84s] [       OK ] AbslTimeTest.test_infinite_past
[   84s] [ RUN      ] AbslTimeTest.test_pass_date
[   84s] [       OK ] AbslTimeTest.test_pass_date
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime
[   84s] [       OK ] AbslTimeTest.test_pass_datetime
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilday
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilday
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilhour
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilhour
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilminute
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilminute
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilmonth
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilmonth
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilsecond
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilsecond
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_as_civilyear
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_as_civilyear
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_dst
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_dst
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_dst_with_timezone
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_dst_with_timezone
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_pre_unix_epoch
[   84s] [  FAILED  ] AbslTimeTest.test_pass_datetime_pre_unix_epoch
[   84s] [ RUN      ] AbslTimeTest.test_pass_datetime_with_timezone
[   84s] [       OK ] AbslTimeTest.test_pass_datetime_with_timezone
[   84s] [ RUN      ] AbslTimeTest.test_pass_float_as_absl_time
[   84s] [       OK ] AbslTimeTest.test_pass_float_as_absl_time
[   84s] [ RUN      ] AbslTimeTest.test_pass_float_duration
[   84s] [       OK ] AbslTimeTest.test_pass_float_duration
[   84s] [ RUN      ] AbslTimeTest.test_pass_int_as_absl_time
[   84s] [       OK ] AbslTimeTest.test_pass_int_as_absl_time
[   84s] [ RUN      ] AbslTimeTest.test_pass_integer_duration
[   84s] [       OK ] AbslTimeTest.test_pass_integer_duration
[   84s] [ RUN      ] AbslTimeTest.test_pass_negative_duration
[   84s] [       OK ] AbslTimeTest.test_pass_negative_duration
[   84s] [ RUN      ] AbslTimeTest.test_pass_positive_duration
[   84s] [       OK ] AbslTimeTest.test_pass_positive_duration
[   84s] [ RUN      ] AbslTimeTest.test_return_civilday
[   84s] [       OK ] AbslTimeTest.test_return_civilday
[   84s] [ RUN      ] AbslTimeTest.test_return_civilhour
[   84s] [       OK ] AbslTimeTest.test_return_civilhour
[   84s] [ RUN      ] AbslTimeTest.test_return_civilminute
[   84s] [       OK ] AbslTimeTest.test_return_civilminute
[   84s] [ RUN      ] AbslTimeTest.test_return_civilmonth
[   84s] [       OK ] AbslTimeTest.test_return_civilmonth
[   84s] [ RUN      ] AbslTimeTest.test_return_civilsecond
[   84s] [       OK ] AbslTimeTest.test_return_civilsecond
[   84s] [ RUN      ] AbslTimeTest.test_return_civilyear
[   84s] [       OK ] AbslTimeTest.test_return_civilyear
[   84s] [ RUN      ] AbslTimeTest.test_return_datetime
[   84s] [       OK ] AbslTimeTest.test_return_datetime
[   84s] [ RUN      ] AbslTimeTest.test_return_negative_duration
[   84s] [       OK ] AbslTimeTest.test_return_negative_duration
[   84s] [ RUN      ] AbslTimeTest.test_return_positive_duration
[   84s] [       OK ] AbslTimeTest.test_return_positive_duration
[   84s] [ RUN      ] AbslTimeTest.test_timezone
[   84s] [       OK ] AbslTimeTest.test_timezone
[   84s] [ RUN      ] AbslVariantTest.test_variant
[   84s] [       OK ] AbslVariantTest.test_variant
[   84s] ======================================================================
[   84s] FAIL: test_pass_datetime_pre_unix_epoch (__main__.AbslTimeTest)
[   84s] AbslTimeTest.test_pass_datetime_pre_unix_epoch
[   84s] ----------------------------------------------------------------------
[   84s] Traceback (most recent call last):
[   84s]   File "/home/abuild/rpmbuild/BUILD/pybind11_abseil-202402.0/pybind11_abseil/tests/absl_test.py", line 155, in test_pass_datetime_pre_unix_epoch
[   84s]     self.assertTrue(absl_example.check_datetime(dt, secs))
[   84s] AssertionError: False is not true
[   84s] 
[   84s] ----------------------------------------------------------------------
[   84s] Ran 111 tests in 0.008s
[   84s] 
[   84s] FAILED (failures=1)
[   84s] 
[   84s] 6/6 Test #6: status_example_test ..............   Passed    0.14 sec
[   84s] 
[   84s] 83% tests passed, 1 tests failed out of 6
[   84s] 
[   84s] Total Test time (real) =   0.27 sec
[   84s] 
[   84s] The following tests FAILED:
[   84s] 	  2 - absl_test (Failed)
[   84s] Errors while running CTest
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

No branches or pull requests

1 participant