Unit test failures when building debian package

Bug #1479958 reported by Thomas Goirand
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Joshua Harlow

Bug Description


Building taskflow for Liberty b2 in Debian experimental, I still have one unit test failure:

FAIL: taskflow.tests.test_examples.ExamplesTestCase.test_99_bottles
_StringException: Empty attachments:

Traceback (most recent call last):
  File "taskflow/tests/test_examples.py", line 111, in test_example
  File "taskflow/tests/test_examples.py", line 126, in _check_example
    output = run_example(name)
  File "taskflow/tests/test_examples.py", line 81, in run_example
    % (name, rc, stdout, stderr))
RuntimeError: Example 99_bottles failed, return code=1
<<<Begin captured STDOUT>>>
Starting poster with pid: 7542
<<<End captured STDOUT>>>
<<<Begin captured STDERR>>>
No handlers could be found for logger "kazoo.client"
Traceback (most recent call last):
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/examples/99_bottles.py", line 221, in <module>
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/examples/99_bottles.py", line 206, in main
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/examples/99_bottles.py", line 200, in main_local
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/examples/99_bottles.py", line 169, in run_poster
  File "/usr/lib/python2.7/dist-packages/fasteners/lock.py", line 294, in wrapper
    return f(self, *args, **kwargs)
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/jobs/backends/impl_zookeeper.py", line 687, in connect
    "Failed to connect to zookeeper")
  File "/home/zigo/sources/openstack/liberty/python-taskflow/build-area/python-taskflow-1.17.0/taskflow/exceptions.py", line 52, in raise_with_cause
    excutils.raise_with_cause(exc_cls, message, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 61, in raise_with_cause
    six.raise_from(exc_cls(message, *args, **kwargs), kwargs.get('cause'))
  File "/usr/lib/python2.7/dist-packages/six.py", line 692, in raise_from
    raise value
taskflow.exceptions.JobFailure: Failed to connect to zookeeper
  KazooTimeoutError: Connection time-out
<<<End captured STDERR>>>

Do I need to actually run a zookeeper daemon to run this test? Shouldn't it be mocked?

Until I have an answer on how to fix this one, I'll disable the test. Please let me know your thoughts.

Revision history for this message
Joshua Harlow (harlowja) wrote :

Disabling it is fine, I'll work on making it use a mock if no zookeeper is fine. Thanks!

Revision history for this message
Joshua Harlow (harlowja) wrote :

*found (not fine), ha.

Changed in taskflow:
importance: Undecided → High
assignee: nobody → Joshua Harlow (harlowja)
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Is this still a problem?

Changed in taskflow:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.