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

Integration tests do not work on armv7l #248

Open
johnkeates opened this issue May 6, 2017 · 0 comments
Open

Integration tests do not work on armv7l #248

johnkeates opened this issue May 6, 2017 · 0 comments
Labels

Comments

@johnkeates
Copy link
Contributor

There are a few tests that fail, possibly more due to pytest or python not being happy. Building and running works fine, check unit tests also work. Reference output log (Raspberry Pi 3):

py.test integ/
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.9, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /home/john/Downloads/statsite, inifile:
collected 70 items 

integ/test_binary.py .....F......F.
integ/test_binary_stream.py ...FF....FF.
integ/test_extended_counters.py ..
integ/test_extended_counters_include.py .
integ/test_integ.py ...........................
integ/test_librato.py ....
integ/test_stdin.py .........
integ/test_timers_include.py .

==================================================================================================== FAILURES =====================================================================================================
______________________________________________________________________________________________ TestInteg.test_meters ______________________________________________________________________________________________

self = <integ.test_binary.TestInteg object at 0x7631e1f0>, servers = (<socket._socketobject object at 0x7626f030>, <socket._socketobject object at 0x7626f068>, '/tmp/tmpDeGcXI/output')

    def test_meters(self, servers):
        "Tests adding kv pairs"
        server, _, output = servers
        msg = ""
        for x in xrange(100):
            msg += format("noobs", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary.py:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmpDeGcXI/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmpDeGcXI/output

integ/test_binary.py:116: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14686]: Starting statsite.
statsite[14686]: stdin is disabled
statsite[14686]: Listening on tcp ':::54251'
statsite[14686]: Listening on udp ':::54251'.
statsite[14686]: Accepted client connection: 0.0.0.0 59964 [20]
____________________________________________________________________________________________ TestIntegUDP.test_meters _____________________________________________________________________________________________

self = <integ.test_binary.TestIntegUDP object at 0x764bbd70>, servers = (<socket._socketobject object at 0x7649c260>, <socket._socketobject object at 0x7649c298>, '/tmp/tmpmVBTMw/output')

    def test_meters(self, servers):
        "Tests adding kv pairs"
        _, server, output = servers
        msg = ""
        for x in xrange(100):
            msg += format("noobs", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary.py:264: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmpmVBTMw/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmpmVBTMw/output

integ/test_binary.py:116: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14711]: Starting statsite.
statsite[14711]: stdin is disabled
statsite[14711]: Listening on tcp ':::62007'
statsite[14711]: Listening on udp ':::62007'.
statsite[14711]: Accepted client connection: 0.0.0.0 41278 [14]
______________________________________________________________________________________________ TestInteg.test_meters ______________________________________________________________________________________________

self = <integ.test_binary_stream.TestInteg object at 0x7642b9f0>, servers = (<socket._socketobject object at 0x7649c0d8>, <socket._socketobject object at 0x7649c030>, '/tmp/tmpfYM9zc/output')

    def test_meters(self, servers):
        "Tests adding kv pairs"
        server, _, output = servers
        msg = ""
        for x in xrange(100):
            msg += format("noobs", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary_stream.py:287: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmpfYM9zc/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmpfYM9zc/output

integ/test_binary_stream.py:231: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14728]: Starting statsite.
statsite[14728]: stdin is disabled
statsite[14728]: Listening on tcp ':::31083'
statsite[14728]: Listening on udp ':::31083'.
---------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------
statsite[14728]: Accepted client connection: 0.0.0.0 33532 [26]
____________________________________________________________________________________________ TestInteg.test_histogram _____________________________________________________________________________________________

self = <integ.test_binary_stream.TestInteg object at 0x764cb250>, servers = (<socket._socketobject object at 0x7649cfb8>, <socket._socketobject object at 0x7649c068>, '/tmp/tmpuXXAiU/output')

    def test_histogram(self, servers):
        "Tests streaming of histogram values"
        server, _, output = servers
        msg = ""
        for x in xrange(100):
            msg += format("has_hist.test", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary_stream.py:315: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmpuXXAiU/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmpuXXAiU/output

integ/test_binary_stream.py:231: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14729]: Starting statsite.
statsite[14729]: stdin is disabled
statsite[14729]: Listening on tcp ':::34367'
statsite[14729]: Listening on udp ':::34367'.
statsite[14729]: Accepted client connection: 0.0.0.0 50724 [14]
___________________________________________________________________________________________ TestIntegPrefix.test_meters ___________________________________________________________________________________________

self = <integ.test_binary_stream.TestIntegPrefix object at 0x762defd0>, serversPrefix = (<socket._socketobject object at 0x7649c458>, <socket._socketobject object at 0x7649c490>, '/tmp/tmptH4UQq/output')

    def test_meters(self, serversPrefix):
        "Tests adding kv pairs"
        server, _, output = serversPrefix
        msg = ""
        for x in xrange(100):
            msg += format("noobs", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary_stream.py:401: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmptH4UQq/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmptH4UQq/output

integ/test_binary_stream.py:231: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14747]: Starting statsite.
statsite[14747]: stdin is disabled
statsite[14747]: Listening on tcp ':::35414'
statsite[14747]: Listening on udp ':::35414'.
statsite[14747]: Accepted client connection: 0.0.0.0 52432 [28]
_________________________________________________________________________________________ TestIntegPrefix.test_histogram __________________________________________________________________________________________

self = <integ.test_binary_stream.TestIntegPrefix object at 0x762ed8f0>, serversPrefix = (<socket._socketobject object at 0x7649c8f0>, <socket._socketobject object at 0x7649c538>, '/tmp/tmpUgArxn/output')

    def test_histogram(self, serversPrefix):
        "Tests streaming of histogram values"
        server, _, output = serversPrefix
        msg = ""
        for x in xrange(100):
            msg += format("has_hist.test", "ms", x)
        server.sendall(msg)
>       wait_file(output)

integ/test_binary_stream.py:429: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = '/tmp/tmpUgArxn/output', timeout = 5

    def wait_file(path, timeout=5):
        "Waits on a file to be make"
        start = time.time()
        while not os.path.isfile(path) and time.time() - start < timeout:
            time.sleep(0.1)
        if not os.path.isfile(path):
>           raise Exception("Timed out waiting for file %s" % path)
E           Exception: Timed out waiting for file /tmp/tmpUgArxn/output

integ/test_binary_stream.py:231: Exception
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
[Errno 111] Connection refused
---------------------------------------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------------------------------------
statsite version 0.8.1
statsite[14748]: Starting statsite.
statsite[14748]: stdin is disabled
statsite[14748]: Listening on tcp ':::37894'
statsite[14748]: Listening on udp ':::37894'.
statsite[14748]: Accepted client connection: 0.0.0.0 42304 [16]
============================================================================================= pytest-warning summary ==============================================================================================
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__serversPrefix: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__servers: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
============================================================================ 6 failed, 64 passed, 8 pytest-warnings in 101.67 seconds =============================================================================
Makefile:1795: recipe for target 'integ' failed
make: *** [integ] Error 1
@johnkeates johnkeates added the bug label May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant