Two unit tests fail when rrun on single-CPU VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.messaging |
Fix Released
|
High
|
Thomas Bechtold |
Bug Description
To reproduce the bug, do:
$ tox -epy27 -- --parallel --concurrency=1
or a quicker reproducer:
$ tox -epy27 -- --parallel --concurrency=1 oslo_messaging.
When running the unit tests on a single-CPU VM, two of them fail consistently:
=======
FAIL: oslo_messaging.
tags: worker-0
-------
Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/builddir/
self.
File "/builddir/
LOG.
File "/usr/lib/
raise AttributeError(
AttributeError: Mock object has no attribute 'debug'
=======
FAIL: oslo_messaging.
tags: worker-0
-------
Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/builddir/
{}, mock.ANY, 'INFO', None)
File "/usr/lib/
raise AssertionError(msg)
AssertionError: Expected 'notify' to be called once. Called 0 times.
Ran 1971 tests in 149.314s
FAILED (id=0, failures=2, skips=53)
Just adding a CPU to the VM makes unit tests pass. Also, fiddling with .testr.conf to increase test concurrency (to e.g. 4) fixes the issue.
Changed in oslo.messaging: | |
status: | New → Confirmed |
description: | updated |
description: | updated |
Changed in oslo.messaging: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/453037
Review: https:/