Bug 15743

Summary: AB-INT PTEST: python3 test_timerfd_initval failure
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Mathieu Dubois-Briand <mathieu.dubois-briand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: mathieu.dubois-briand, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 6.1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
logs none

Description João Marcos Costa 2025-02-14 13:39:49 UTC
Created attachment 5100 [details]
logs

https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/776/steps/12/logs/stdio

Failed ptests:{'python3': ['test_timerfd_initval', 'python3']}

qemuarm64-ptest ubuntu2204-vk-arm1
Comment 1 Randy MacLeod 2025-02-20 15:38:12 UTC
Let's see if this happens frequently.
Comment 2 Ross Burton 2025-02-20 15:53:10 UTC
======================================================================
FAIL: test_timerfd_initval (test.test_os.TimerfdTests.test_timerfd_initval)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.13/test/test_os.py", line 4166, in test_timerfd_initval
    self.assertAlmostEqual(next_expiration, initial_expiration, places=self.CLOCK_RES_PLACES)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0.24403756000000001 != 0.25 within 3 places (0.0059624399999999855 difference)

Heavily loaded system will break that test.
Comment 3 Ross Burton 2025-02-20 15:58:54 UTC
In an attempt to fix this pattern upstream I filed https://github.com/python/cpython/issues/130363.
Comment 4 Ross Burton 2025-02-24 17:24:01 UTC
Someone else has seen this on a gentoo: https://github.com/python/cpython/issues/126112.
Comment 5 João Marcos Costa 2025-03-04 08:57:36 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/992/steps/12/logs/stdio

Failed ptests:{'python3': ['test_timerfd_TFD_TIMER_ABSTIME', 'python3']}

qemux86-64-ptest debian12-vk-3
Comment 6 Randy MacLeod 2025-05-01 14:07:07 UTC
Bulk move of all unassigned 5.2 medium importance bugs to 5.3.
Comment 7 Randy MacLeod 2026-04-08 20:38:41 UTC
Ross' upstream issue is still open.
That said, the issue hasn't happened in more than a year so we could just drop it.
Comment 8 Randy MacLeod 2026-04-09 15:19:02 UTC
As per previous comments.
Comment 9 Mathieu Dubois-Briand 2026-04-13 08:30:39 UTC
qemuarm64-ptest ubuntu2504-vk-arm1 master completed at 2026-04-11 11:06:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3467/steps/13/logs/stdio
Comment 10 Mathieu Dubois-Briand 2026-04-13 08:31:45 UTC
Randy magic comments, they always allow to reproduce rare failures. :)
Comment 11 Mathieu Dubois-Briand 2026-04-17 08:54:55 UTC
I sent a patch to disable this ptest:

https://lore.kernel.org/all/20260417-mathieu-python3-ptest-v1-0-9b5ec044a1b8@bootlin.com/
Comment 12 Mathieu Dubois-Briand 2026-04-30 13:17:37 UTC
Merged: https://git.openembedded.org/openembedded-core/commit/?id=40b0815dc955