Bug 15791 - AB-INT: oe-selftest: No such file or directory bbpath.py
Summary: AB-INT: oe-selftest: No such file or directory bbpath.py
Status: RESOLVED WORKSFORME
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (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-03-10 09:40 UTC by Mathieu Dubois-Briand
Modified: 2026-04-09 15:27 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2025-03-10 09:40:56 UTC
First time I see this one. Is it some FS issue on the worker?

   1981 2025-03-07 16:37:17,580 - oe-selftest - INFO - ERROR: setUpModule (devtool) [ (subunit.RemotedTestCase)
   1982 2025-03-07 16:37:17,580 - oe-selftest - INFO - ----------------------------------------------------------------------
   1983 2025-03-07 16:37:17,580 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
   1984   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/devtool.py", line 87, in setUpModule
   1985     bb.utils.edit_bblayers_conf(bblayers_conf, None, None, bblayers_edit_cb)
   1986   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py", line 1550, in edit_bblayers_conf
   1987     (updated, newlines) = edit_metadata(newlines, ['BBLAYERS'], handle_bblayers)
   1988                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1989   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py", line 1382, in edit_metadata
   1990     if handle_var_end():
   1991        ^^^^^^^^^^^^^^^^
   1992   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py", line 1307, in handle_var_end
   1993     (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
   1994                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1995   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py", line 1515, in handle_bblayers
   1996     res = edit_cb(layer, canonicalise_path(layer))
   1997           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1998   File "/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/devtool.py", line 83, in bblayers_edit_cb
   1999     shutil.copy2(pth, destdir)
   2000   File "/usr/lib/python3.12/shutil.py", line 476, in copy2
   2001     copystat(src, dst, follow_symlinks=follow_symlinks)
   2002   File "/usr/lib/python3.12/shutil.py", line 382, in copystat
   2003     st = lookup("stat")(src, follow_symlinks=follow)
   2004          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   2005 FileNotFoundError: [Errno 2] No such file or directory: '/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/scripts/lib/devtool/bbpath.py'

And this does repeat for all following tests.
Comment 1 Mathieu Dubois-Briand 2025-03-10 09:43:04 UTC
oe-selftest-ubuntu ubuntu2404-vk-2 mathieu/master-next completed at 2025-03-07T16:38:06Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/54/builds/1141/steps/14/logs/stdio
Comment 2 Richard Purdie 2025-03-12 17:45:14 UTC
Some observations:

a) It is only one selftest thread that fails, you can tell by the build-st-XXXX where XXXX is a pid being the same for all failures.

b) In poky, this path never exists:

$ find -name bbpath.py
./meta-selftest/lib/devtool/bbpath.py
./meta-selftest/lib/recipetool/bbpath.py

So the question is why it seemed to end up with a bad data. Some kind of cached path problem?

Do any of the tests manipulate/add bbpath.py files?
Comment 3 Ross Burton 2025-03-13 14:39:56 UTC
Could it be a test removing meta-selftest from bblayers and then breaking future tests that assume it is present?
Comment 4 Mathieu Dubois-Briand 2025-04-07 07:13:50 UTC
oe-selftest-armhost ubuntu2404-vk-arm1 master completed at 2025-04-05T03:34:50Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/1387/steps/14/logs/stdio
Comment 5 Randy MacLeod 2026-04-08 21:35:33 UTC
What do we do with bugs that happen once every ~13 months ?
Comment 6 Randy MacLeod 2026-04-09 15:27:38 UTC
Seems to be have gone away.
We've changed some things in memory resident bitbake, and devtool path handling.
Re-open if seen again.