Bug 15885 - AB-INT PTEST: python3 test_default_timeout ptest failure
Summary: AB-INT PTEST: python3 test_default_timeout ptest failure
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.3
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2025-06-02 15:25 UTC by João Marcos Costa
Modified: 2026-02-26 15:52 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
logs (116.45 KB, text/plain)
2025-06-02 15:26 UTC, João Marcos Costa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description João Marcos Costa 2025-06-02 15:25:47 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/1551/steps/12/logs/stdio

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

qemuarm64-ptest ubuntu2410-vk-arm1
Comment 1 João Marcos Costa 2025-06-02 15:26:10 UTC
Created attachment 5118 [details]
logs
Comment 2 João Marcos Costa 2025-11-07 10:45:16 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/2543/steps/13/logs/stdio

qemuarm64-ptest ubuntu2504-vk-arm1
Comment 4 Tim Orling 2026-01-15 15:46:40 UTC
Not clear WHICH exact test case failed, since the same name is in two files:

Lib/test/lock_tests.py:    def test_default_timeout(self):
https://github.com/python/cpython/blob/main/Lib/test/lock_tests.py#L1219

Lib/test/_test_multiprocessing.py:    def test_default_timeout(self):
https://github.com/python/cpython/blob/main/Lib/test/_test_multiprocessing.py#L2406
Comment 5 Yoann Congal 2026-02-24 13:47:39 UTC
contrib/ycongal/whinlatter-nut qemuarm64-ptest debian13-vk-arm1 https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/3109
Error log is not precisely the same but the elapsed time look suspiciously like a 5 minutes timeout:
  Failed ptests:
  {'python3': ['python3']}
  [...]
  RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (297.11s)
  SUMMARY:
  core-image-ptest-python3 () - Ran 6 tests in 299.769s
Comment 6 Yoann Congal 2026-02-24 13:53:45 UTC
Note: this patch was merged on master:
commit 9382dee2a59a359f38e03179d01fce47c2d86372
Author: Antonin Godard <antonin.godard@bootlin.com>
Date:   Tue Jan 20 08:25:25 2026 +0100

    python3: skip flaky test_default_timeout test
    
    We have been observing intermittent issues with this test on the Autobuilder:
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=15885
    
    This is probably due to the Autobuilder being heavily loaded at the time
    of the test.
    
    The logs on the ticket above do not allow us to know which of the two
    "test_default_timeout" tests is failing, so disable both with
    self.skipTest().
    
    Excerpt from `ptest-runner python3`:
    
      test_default_timeout (test.test_multiprocessing_fork.test_manager.WithManagerTestBarrier.test_default_timeout)
      SKIP: Test the barrier's default timeout 'skip flaky timeout test'
    
    [YOCTO #15885]
    
    Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 7 Antonin Godard 2026-02-26 13:45:10 UTC
Patch merged https://git.openembedded.org/openembedded-core/commit/?id=9382dee2a59a359f38e03179d01fce47c2d86372

Moving to Resolved Fixed
Comment 8 Richard Purdie 2026-02-26 15:52:26 UTC
For the whinlatter failure in comment 5: https://valkyrie.yocto.io/pub/non-release/20260224-64/testresults/qemuarm64-ptest/python3.log

1 test failed:
    test_tracemalloc


0:04:03 load avg: 2.16 [411/480/1] test_tracemalloc worker non-zero exit code (Exit code -11 (SIGSEGV))
PASS: test_late_untrack (test.test_tracemalloc.TestCAPI.test_late_untrack)
PASS: test_stop_track (test.test_tracemalloc.TestCAPI.test_stop_track)
PASS: test_stop_untrack (test.test_tracemalloc.TestCAPI.test_stop_untrack)
test_tracemalloc_track_race (test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race) ... Fatal Python error: Segmentation fault

Thread 0x0000ffff06f5f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0776f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff07f7f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0878f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff08f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff097af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff09fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0a7cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0afdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0b7ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff0bfff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff10f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff117af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff11fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff127cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff12fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff137ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff13fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff30f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff317af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff31fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff327cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff32fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff337ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff33fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff54f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff557af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff55fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff567cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff56fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff577ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff57fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff84f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff857af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff85fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff867cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff86fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff877ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff94f9f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff87fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff957af180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff95fbf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff967cf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff977ef180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9cb4f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff96fdf180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9d35f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff97fff180 (most recent call first):
  <no Python frame>

Thread 0x0000ffff9db6f180 (most recent call first):
  <no Python frame>

Thread 0x0000ffffa0041020 (most recent call first):
  File "/usr/lib/python3.13/test/test_tracemalloc.py", line 1119 in test_tracemalloc_track_race
  File "/usr/lib/python3.13/unittest/case.py", line 606 in _callTestMethod
  File "/usr/lib/python3.13/unittest/case.py", line 651 in run
  File "/usr/lib/python3.13/unittest/case.py", line 707 in __call__
  File "/usr/lib/python3.13/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.13/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.13/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.13/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.13/unittest/runner.py", line 240 in run
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 57 in _run_suite
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 37 in run_unittest
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 135 in test_func
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 91 in regrtest_runner
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 138 in _load_run_test
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 181 in _runtest_env_changed_exc
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 281 in _runtest
  File "/usr/lib/python3.13/test/libregrtest/single.py", line 310 in run_single_test
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 84 in worker_process
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 119 in main
  File "/usr/lib/python3.13/test/libregrtest/worker.py", line 123 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main