Bug 15510

Summary: AB-INT PTEST: python3 ptest failure: in test_active_children
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Trevor Gamblin <tgamblin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: randy.macleod, ross.burton, tim.orling
Version: unspecified   
Target Milestone: 5.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2024-06-11 07:20:38 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6514/steps/13/logs/stdio

WARNING: core-image-ptest-python3-1.0-r0 do_testimage: There were failing ptests.
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py", line 27, in test_ptestrunner_expectfail
    self.do_ptestrunner()
  File "/home/pokybuild/yocto-worker/qemuarm64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py", line 120, in do_ptestrunner
    self.fail(failmsg)
AssertionError: 
Failed ptests:
{'python3': ['test_active_children', 'python3']}
Cannot run ptests without @expectedFailure as ptests are expected to fail

qemuarm64-ptest ubuntu1804-arm-1
Comment 1 Randy MacLeod 2024-06-13 14:36:04 UTC
Seen in master-next with the python update.
Either fix the test or disable it temporarily.
Comment 2 Ross Burton 2024-06-13 14:37:43 UTC
FAIL: test_active_children (test.test_multiprocessing_spawn.test_threads.WithThreadsTestProcess.test_active_children)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.12/test/_test_multiprocessing.py", line 590, in test_active_children
    self.assertIn(p, self.active_children())
AssertionError: <DummyProcess(Thread-116 (sleep), stopped daemon 547339891072)> not found in []
Comment 4 Trevor Gamblin 2024-08-06 15:09:20 UTC
This was added as a test to be skipped in:

https://git.openembedded.org/openembedded-core/commit/?id=ac000b00ec615b3e51dda8d819015d5e7110ed88

Closing.