-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The test test_signal.test_itimer_virtual
fails (in TIMEOUT) on our internal CI mac infrastructure (and also on my mac used for development)
[2025-03-06T12:21:58.340Z] Re-running test_signal in verbose mode (matching: test_itimer_virtual)
[2025-03-06T12:21:58.340Z] test_itimer_virtual (test.test_signal.ItimerTest.test_itimer_virtual) ... FAIL
[2025-03-06T12:21:58.340Z]
[2025-03-06T12:21:58.340Z] ======================================================================
[2025-03-06T12:21:58.340Z] FAIL: test_itimer_virtual (test.test_signal.ItimerTest.test_itimer_virtual)
[2025-03-06T12:21:58.340Z] ----------------------------------------------------------------------
[2025-03-06T12:21:58.340Z] Traceback (most recent call last):
[2025-03-06T12:21:58.340Z] File "/Users/bot/workspace/workspace/enterprise-llt-gerrit-pipeline/src/cpython/Lib/test/test_signal.py", line 843, in test_itimer_virtual
[2025-03-06T12:21:58.340Z] for _ in support.busy_retry(support.LONG_TIMEOUT):
[2025-03-06T12:21:58.340Z] ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
[2025-03-06T12:21:58.340Z] File "/Users/bot/workspace/workspace/enterprise-llt-gerrit-pipeline/src/cpython/Lib/test/support/__init__.py", line 2544, in busy_retry
[2025-03-06T12:21:58.340Z] raise AssertionError(msg)
[2025-03-06T12:21:58.340Z] AssertionError: timeout (300.0 seconds)
[2025-03-06T12:21:58.340Z]
[2025-03-06T12:21:58.340Z] ----------------------------------------------------------------------
[2025-03-06T12:21:58.340Z] Ran 1 test in 300.002s
The timer doesn't get stopped by the signal. This if statement
cpython/Lib/test/test_signal.py
Line 846 in 9c69150
if signal.getitimer(self.itimer) == (0.0, 0.0): |
cpython/Lib/test/test_signal.py
Line 845 in 9c69150
_ = pow(12345, 67890, 10000019) |
The reason behind this is the workload simulated is too lightweight to advance the virtual timer.
I see for now this just on macOS but it could potentially happens on other platforms as well.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error