Reviewed:  https://review.opendev.org/c/openstack/neutron/+/948654
Committed: 
https://opendev.org/openstack/neutron/commit/b352816943090dfd80eb90b43486daf9bd0346d5
Submitter: "Zuul (22348)"
Branch:    master

commit b352816943090dfd80eb90b43486daf9bd0346d5
Author: Brian Haley <haleyb....@gmail.com>
Date:   Thu May 1 11:45:29 2025 -0400

    Increase test_simple_execution timeout value
    
    There was a random failure seen in the test_simple_execution
    unit test, as it took just slightly longer, 3.7 seconds, than
    the assumed 3.5 second maximum. Increase the timeout to
    6 seconds (2x minimum) to allow for slower test systems.
    Changed fast exit test accordingly.
    
    Change-Id: Ida27a7cdeede0bc9e94c2c7050e062f652f21bf0
    Closes-bug: #2109788


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to