← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1921098] Re: test_init_application_called_twice unit test fails intermittently

 

stable/train is EOL

** Changed in: nova/train
       Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1921098

Title:
  test_init_application_called_twice unit test fails intermittently

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) train series:
  Won't Fix
Status in OpenStack Compute (nova) ussuri series:
  Fix Released
Status in OpenStack Compute (nova) victoria series:
  Fix Released

Bug description:
  https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_350/782634/3/check/openstack-
  tox-py38/35000f9/testr_results.html

  Traceback (most recent call last):
    File "/home/zuul/src/opendev.org/openstack/nova/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 1346, in patched
      return func(*newargs, **newkeywargs)
    File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/unit/api/test_wsgi.py", line 65, in test_init_application_passes_sys_argv_to_config
      mock_parse_args.assert_called_once_with(
    File "/home/zuul/src/opendev.org/openstack/nova/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 925, in assert_called_once_with
      raise AssertionError(msg)
  AssertionError: Expected 'parse_args' to be called once. Called 0 times.

  It seems that after [1] merged the two init tests
  test_init_application_passes_sys_argv_to_config and
  test_init_application_called_twice cannot be run in the same executor
  without the second failing.

  It is probably due the global state introduced in [1] not handled
  properly in the test.

  [1] https://review.opendev.org/c/openstack/nova/+/733627

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



References