yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95530
[Bug 2100806] Re: Intermittent test_batch_notifier failure
So I'm seeing this fail again:
https://zuul.opendev.org/t/openstack/build/261468e2fe784a3b93007ed265fd1a9d
And now I'm more confused as there is a comment mentioning an interval
of 2 seconds, which is what it was before changing to threading in
https://review.opendev.org/c/openstack/neutron/+/939095
I'll have to ask Rodolfo about that.
** Changed in: neutron
Status: Fix Released => Confirmed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2100806
Title:
Intermittent test_batch_notifier failure
Status in neutron:
Confirmed
Bug description:
The cross-neutron-py12 job was intermittently failing in the
requirements repo:
https://review.opendev.org/c/openstack/requirements/+/942959
Below is the failure:
==============================
Failed 1 tests - output below:
==============================
neutron.tests.unit.notifiers.test_batch_notifier.TestBatchNotifier.test_queue_event_multiple_events_notify_method
-----------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File
"/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py",
line 178, in func
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/notifiers/test_batch_notifier.py", line 66, in test_queue_event_multiple_events_notify_method
self.assertEqual(2, c_mock.call_count)
File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py312/lib/python3.12/site-packages/testtools/testcase.py", line 419, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/zuul/src/opendev.org/openstack/neutron/.tox/py312/lib/python3.12/site-packages/testtools/testcase.py", line 509, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 2 != 3
This test and code was recently updated to remove eventlet, and it was noted that the test is timing-sensitive, so at the CI meeting we agreed to increase the sleep in the test from zero (to just trigger a yield) to either 0.1 or 0.2 to let the consumer execute. This bug is to track that work.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2100806/+subscriptions
References