[openstack-dev] [nova] Unit tests broken?

Hans Lindgren hanlind at kth.se
Tue Feb 19 12:07:07 UTC 2013


Hi,

I just noticed when running tests locally that they report success after each thread in the test runner first throws the following exception.

2013-02-19 00:25:16.925 | Exception in thread Thread-2:
2013-02-19 00:25:16.925 | Traceback (most recent call last):
2013-02-19 00:25:16.926 |   File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
2013-02-19 00:25:16.926 |     self.run()
2013-02-19 00:25:16.927 |   File "/usr/lib/python2.6/threading.py", line 484, in run
2013-02-19 00:25:16.927 |     self.__target(*self.__args, **self.__kwargs)
2013-02-19 00:25:16.931 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/testtools/testsuite.py", line 102, in _run_test
2013-02-19 00:25:16.932 |     test.run(process_result)
2013-02-19 00:25:16.932 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/subunit/__init__.py", line 1196, in run
2013-02-19 00:25:16.932 |     protocol.lineReceived(line)
2013-02-19 00:25:16.932 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/subunit/__init__.py", line 573, in lineReceived
2013-02-19 00:25:16.933 |     self._state.lineReceived(line)
2013-02-19 00:25:16.933 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/subunit/__init__.py", line 410, in lineReceived
2013-02-19 00:25:16.934 |     self.details_parser.lineReceived(line)
2013-02-19 00:25:16.934 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/subunit/details.py", line 119, in lineReceived
2013-02-19 00:25:16.934 |     self._parse_state(line)
2013-02-19 00:25:16.937 |   File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/subunit/details.py", line 91, in _look_for_content
2013-02-19 00:25:16.937 |     raise ValueError("Invalid MIME type %r" % value)
2013-02-19 00:25:16.938 | ValueError: Invalid MIME type u'2013-02-19 00:25:14.456119Z'

After further inspection, this also seams to be the case for every Jenkins job that has run over the past 12 hours or so.

>From the looks of it, a lot of tests are skipped because of this which looks very bad.

>From a job, before this was first seen, after the test run completes, it states:

2013-02-19 00:23:06.428 | Ran 4983 tests in 1094.251s
2013-02-19 00:23:06.428 | PASSED (id=0, skips=9)

See http://logs.openstack.org/21955/2/gate/gate-nova-python26/16699/console.html.gz

And from the first job that has this error, it states:

2013-02-19 00:25:21.617 | Ran 4190 tests in 1020.064s
2013-02-19 00:25:21.617 | PASSED (id=0, skips=8)

See http://logs.openstack.org/22103/2/gate/gate-nova-python26/16700/console.html.gz

Hans


More information about the OpenStack-dev mailing list