← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1505675] Re: Flaky tasks test glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time

 

** Also affects: glance/liberty
   Importance: Undecided
       Status: New

** Changed in: glance
    Milestone: None => mitaka-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1505675

Title:
  Flaky tasks test
  glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time

Status in Glance:
  In Progress
Status in Glance liberty series:
  New

Bug description:
  We get constantly failures like:
  2015-10-13 06:59:05.343 | ======================================================================
  2015-10-13 06:59:05.343 | FAIL: glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time
  2015-10-13 06:59:05.344 | tags: worker-7
  2015-10-13 06:59:05.344 | ----------------------------------------------------------------------
  2015-10-13 06:59:05.344 | Traceback (most recent call last):
  2015-10-13 06:59:05.344 |   File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
  2015-10-13 06:59:05.344 |     return func(*args, **keywargs)
  2015-10-13 06:59:05.344 |   File "glance/tests/unit/v2/test_tasks_resource.py", line 365, in test_create_with_live_time
  2015-10-13 06:59:05.344 |     self.assertEqual(CONF.task.task_time_to_live, task_live_time_hour)
  2015-10-13 06:59:05.344 |   File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
  2015-10-13 06:59:05.344 |     self.assertThat(observed, matcher, message)
  2015-10-13 06:59:05.344 |   File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
  2015-10-13 06:59:05.345 |     raise mismatch_error
  2015-10-13 06:59:05.345 | testtools.matchers._impl.MismatchError: 48 != 47
  2015-10-13 06:59:05.345 | Ran 2855 tests in 298.484s
  2015-10-13 06:59:05.345 | FAILED (id=0, failures=1, skips=2)
  2015-10-13 06:59:05.345 | error: testr failed (1)
  2015-10-13 06:59:05.394 | ERROR: InvocationError: '/home/jenkins/workspace/gate-glance-python27/.tox/py27/bin/lockutils-wrapper python setup.py testr --slowest --testr-args='

  This is caused if the second of timestamp changes between created_at
  and updated_at gets created.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1505675/+subscriptions


References