yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95819
[Bug 2109788] [NEW] test_simple_execution random unit test failure
Public bug reported:
The test_simple_execution unit test is randomly failing, had this report
from a requirements change
(https://review.opendev.org/c/openstack/requirements/+/948617):
2025-05-01 09:49:24.161570 | ubuntu-noble | {4} neutron.tests.unit.common.test_utils.ThreadPoolExecutorWithBlockTestCase.test_simple_execution [3.701865s] ... FAILED
2025-05-01 09:49:24.161589 | ubuntu-noble |
2025-05-01 09:49:24.161607 | ubuntu-noble | Captured traceback:
2025-05-01 09:49:24.161618 | ubuntu-noble | ~~~~~~~~~~~~~~~~~~~
2025-05-01 09:49:24.161627 | ubuntu-noble | Traceback (most recent call last):
2025-05-01 09:49:24.161637 | ubuntu-noble |
2025-05-01 09:49:24.161646 | ubuntu-noble | File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 178, in func
2025-05-01 09:49:24.161655 | ubuntu-noble | return f(self, *args, **kwargs)
2025-05-01 09:49:24.161664 | ubuntu-noble | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-05-01 09:49:24.161689 | ubuntu-noble |
2025-05-01 09:49:24.161699 | ubuntu-noble | File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 763, in test_simple_execution
2025-05-01 09:49:24.161708 | ubuntu-noble | self.assertTrue(3 < diff_seconds < 3.5)
2025-05-01 09:49:24.161717 | ubuntu-noble |
2025-05-01 09:49:24.161726 | ubuntu-noble | File "/usr/lib/python3.12/unittest/case.py", line 727, in assertTrue
2025-05-01 09:49:24.161734 | ubuntu-noble | raise self.failureException(msg)
2025-05-01 09:49:24.161743 | ubuntu-noble |
2025-05-01 09:49:24.161752 | ubuntu-noble | AssertionError: False is not true
The execution time of 3.701865s was just outside the 3.5 maximum.
Increasing the time window is the simplest fix, I will propose 6 seconds
(2x expected minimum) to account for a possibly slow system, can discuss
further in patch.
** Affects: neutron
Importance: Medium
Assignee: Brian Haley (brian-haley)
Status: In Progress
** Tags: gate-failure unittest
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2109788
Title:
test_simple_execution random unit test failure
Status in neutron:
In Progress
Bug description:
The test_simple_execution unit test is randomly failing, had this
report from a requirements change
(https://review.opendev.org/c/openstack/requirements/+/948617):
2025-05-01 09:49:24.161570 | ubuntu-noble | {4} neutron.tests.unit.common.test_utils.ThreadPoolExecutorWithBlockTestCase.test_simple_execution [3.701865s] ... FAILED
2025-05-01 09:49:24.161589 | ubuntu-noble |
2025-05-01 09:49:24.161607 | ubuntu-noble | Captured traceback:
2025-05-01 09:49:24.161618 | ubuntu-noble | ~~~~~~~~~~~~~~~~~~~
2025-05-01 09:49:24.161627 | ubuntu-noble | Traceback (most recent call last):
2025-05-01 09:49:24.161637 | ubuntu-noble |
2025-05-01 09:49:24.161646 | ubuntu-noble | File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 178, in func
2025-05-01 09:49:24.161655 | ubuntu-noble | return f(self, *args, **kwargs)
2025-05-01 09:49:24.161664 | ubuntu-noble | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-05-01 09:49:24.161689 | ubuntu-noble |
2025-05-01 09:49:24.161699 | ubuntu-noble | File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 763, in test_simple_execution
2025-05-01 09:49:24.161708 | ubuntu-noble | self.assertTrue(3 < diff_seconds < 3.5)
2025-05-01 09:49:24.161717 | ubuntu-noble |
2025-05-01 09:49:24.161726 | ubuntu-noble | File "/usr/lib/python3.12/unittest/case.py", line 727, in assertTrue
2025-05-01 09:49:24.161734 | ubuntu-noble | raise self.failureException(msg)
2025-05-01 09:49:24.161743 | ubuntu-noble |
2025-05-01 09:49:24.161752 | ubuntu-noble | AssertionError: False is not true
The execution time of 3.701865s was just outside the 3.5 maximum.
Increasing the time window is the simplest fix, I will propose 6
seconds (2x expected minimum) to account for a possibly slow system,
can discuss further in patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2109788/+subscriptions
Follow ups