Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850127 - sys-apps/portage - RetryForkExecutorTestCase.testOverallTimeoutWithException fails sporadically
Summary: sys-apps/portage - RetryForkExecutorTestCase.testOverallTimeoutWithException ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 880173 (view as bug list)
Depends on: 883437
Blocks:
  Show dependency tree
 
Reported: 2022-06-06 17:54 UTC by Mike Gilbert
Modified: 2022-12-01 05:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2022-06-06 17:54:59 UTC
This test case sometimes fails during CI.

https://github.com/gentoo/portage/runs/6759556753

======================================================================
FAIL: testOverallTimeoutWithException (portage.tests.util.futures.test_retry.RetryForkExecutorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/portage/portage/build/lib/portage/tests/__init__.py", line 273, in run
    testMethod()
  File "/home/runner/work/portage/portage/build/lib/portage/tests/util/futures/test_retry.py", line 180, in testOverallTimeoutWithException
    isinstance(done.pop().exception().__cause__, SucceedNeverException)
AssertionError: False is not true
Comment 1 Zac Medico gentoo-dev 2022-06-06 21:58:54 UTC
When the assertion fails, I guess that it probably failed with asyncio.TimeoutError instead of SucceedNeverException.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-23 05:55:50 UTC
*** Bug 880173 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2022-11-26 23:25:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=98536f208194197c521675e0d0072bdc599e015a

commit 98536f208194197c521675e0d0072bdc599e015a
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2022-11-25 21:21:30 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2022-11-25 23:40:38 +0000

    testOverallTimeoutWithException: handle TimeoutError
    
    Bug: https://bugs.gentoo.org/850127
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/tests/util/futures/test_retry.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-12-01 05:17:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=457170222d9a1133406b90955269580e4db2ee2b

commit 457170222d9a1133406b90955269580e4db2ee2b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-01 05:16:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-01 05:16:52 +0000

    sys-apps/portage: add 3.0.40
    
    Closes: https://bugs.gentoo.org/814380
    Closes: https://bugs.gentoo.org/850127
    Closes: https://bugs.gentoo.org/881383
    Closes: https://bugs.gentoo.org/883071
    Closes: https://bugs.gentoo.org/883307
    Closes: https://bugs.gentoo.org/883437
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.40.ebuild | 283 +++++++++++++++++++++++++++++++++
 2 files changed, 284 insertions(+)