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

Failing tests #147

Closed
sanjayankur31 opened this issue Jan 22, 2018 · 5 comments
Closed

Failing tests #147

sanjayankur31 opened this issue Jan 22, 2018 · 5 comments

Comments

@sanjayankur31
Copy link

Hi,

When I attempt to build fastavro on the Fedora builders, the build for i686 fails with two failed tests:

=================================== FAILURES ===================================
_____________________________ test_complex_schema ______________________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/fastavro-0.17.3/tests/test_complex.py", line 90, in test_complex_schema
    assert (data1 == data2)
AssertionError: assert {'array_bytes...b', 'c'], ...} == {'array_bytes_...b', 'c'], ...}
  Omitting 4 identical items, use -vv to show
  Differing items:
  {'multi_union_time': datetime.datetime(2018, 1, 22, 20, 57, 1, 484854)} != {'multi_union_time': datetime.datetime(2018, 1, 22, 20, 57, 1, 484853)}
  Use -v to get the full diff
______________________________ test_logical_types ______________________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/fastavro-0.17.3/tests/test_logical_types.py", line 74, in test_logical_types
    assert (data1['timestamp-micros'] == data2['timestamp-micros'])
AssertionError: assert datetime.datetime(2018, 1, 22, 20, 57, 1, 713539) == datetime.datetime(2018, 1, 22, 20, 57, 1, 713538)
=============== 2 failed, 100 passed, 1 skipped in 0.47 seconds ================

There isn't any issue on any of the other architectures. The complete build log is also attached. Any hints on this?
build-log.txt

@scottbelden
Copy link
Collaborator

That's pretty strange. What version of python is this running with? We had to skip one of the datetime tests on Windows with python 3.6 due to a python bug (https://bugs.python.org/issue29097). I wonder if this is triggering another platform specific bug.

Did this just start failing on 0.17.3? If so it seems like it might be a fluke as the only changes between 0.17.2 and 0.17.3 were to help with publishing wheels on windows (0.17.2...0.17.3)

@sanjayankur31
Copy link
Author

It does seem to be with python3, yes:

============================= test session starts ==============================
platform linux -- Python 3.6.4, pytest-3.2.3, py-1.5.2, pluggy-0.4.0
rootdir: /builddir/build/BUILD/fastavro-0.17.3, inifile: pytest.ini

@scottbelden
Copy link
Collaborator

Do you run these builds often? Is it consistently failing?

@sanjayankur31
Copy link
Author

I only ran the build once before - to import it into the Fedora repositories. I've run more now. It doesn't seem to fail each time. It passed here for example when I tried to build it only for i686. However, when I attempt to build it for all supported arches, it fails consistently. Here, and here, for example. So, it could be a weird timing issue---these builds run in parallel, and it only fails on i686.

Unfortunately, while I can run arch specific test (scratch) builds, I cannot run arch specific builds for the repositories, so I've disabled the tests for the time being.

@scottbelden
Copy link
Collaborator

Okay. I'm not really sure what would be going on that would cause the strange behavior. I'm going to close this as I don't think there's anything that can be done.

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

2 participants