<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15791</bug_id>
          
          <creation_ts>2025-03-10 09:40:56 +0000</creation_ts>
          <short_desc>AB-INT: oe-selftest: No such file or directory bbpath.py</short_desc>
          <delta_ts>2026-04-09 15:27:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101326</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-03-10 09:40:56 +0000</bug_when>
    <thetext>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 &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 87, in setUpModule
   1985     bb.utils.edit_bblayers_conf(bblayers_conf, None, None, bblayers_edit_cb)
   1986   File &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py&quot;, line 1550, in edit_bblayers_conf
   1987     (updated, newlines) = edit_metadata(newlines, [&apos;BBLAYERS&apos;], handle_bblayers)
   1988                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1989   File &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py&quot;, line 1382, in edit_metadata
   1990     if handle_var_end():
   1991        ^^^^^^^^^^^^^^^^
   1992   File &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py&quot;, line 1307, in handle_var_end
   1993     (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
   1994                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1995   File &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/utils.py&quot;, line 1515, in handle_bblayers
   1996     res = edit_cb(layer, canonicalise_path(layer))
   1997           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   1998   File &quot;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 83, in bblayers_edit_cb
   1999     shutil.copy2(pth, destdir)
   2000   File &quot;/usr/lib/python3.12/shutil.py&quot;, line 476, in copy2
   2001     copystat(src, dst, follow_symlinks=follow_symlinks)
   2002   File &quot;/usr/lib/python3.12/shutil.py&quot;, line 382, in copystat
   2003     st = lookup(&quot;stat&quot;)(src, follow_symlinks=follow)
   2004          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   2005 FileNotFoundError: [Errno 2] No such file or directory: &apos;/srv/pokybuild/yocto-worker/oe-selftest-ubuntu/build/scripts/lib/devtool/bbpath.py&apos;

And this does repeat for all following tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101329</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-03-10 09:43:04 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101347</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-03-12 17:45:14 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101367</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-03-13 14:39:56 +0000</bug_when>
    <thetext>Could it be a test removing meta-selftest from bblayers and then breaking future tests that assume it is present?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101570</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-04-07 07:13:50 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104993</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-08 21:35:33 +0000</bug_when>
    <thetext>What do we do with bugs that happen once every ~13 months ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105030</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-09 15:27:38 +0000</bug_when>
    <thetext>Seems to be have gone away.
We&apos;ve changed some things in memory resident bitbake, and devtool path handling.
Re-open if seen again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>