<?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>15621</bug_id>
          
          <creation_ts>2024-10-15 16:14:30 +0000</creation_ts>
          <short_desc>AB-INT: insane do_package_qa intermittent failures</short_desc>
          <delta_ts>2024-10-15 16:33:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <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>99865</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-15 16:14:30 +0000</bug_when>
    <thetext>ERROR: nativesdk-util-linux-2.40.2-r0 do_package_qa: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_package_qa(d)
     0003:
File: &apos;/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass&apos;, lineno: 1168, function: do_package_qa
     1164:            oe.qa.handle_error(&quot;pkgname&quot;,
     1165:                    &quot;%s doesn&apos;t match the [a-z0-9.+-]+ regex&quot; % package, d)
     1166:
     1167:        checks = parse_test_matrix(&quot;QAPATHTEST&quot;, skip, d)
 *** 1168:        package_qa_walk(checks, package, d)
     1169:
     1170:        checks = parse_test_matrix(&quot;QAPKGTEST&quot;, skip, d)
     1171:        for func in checks:
     1172:            func(package, d)
File: &apos;/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass&apos;, lineno: 810, function: package_qa_walk
     0806:        elf = elves.get(path)
     0807:        if elf:
     0808:            elf.open()
     0809:        for func in checkfuncs:
 *** 0810:            func(path, package, d, elf)
     0811:        if elf:
     0812:            elf.close()
     0813:
     0814:def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
File: &apos;/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass&apos;, lineno: 438, function: package_qa_check_buildpaths
     0434:    explicitly ignored.
     0435:    &quot;&quot;&quot;
     0436:    import stat
     0437:    # Ignore symlinks/devs/fifos
 *** 0438:    mode = os.lstat(path).st_mode
     0439:    if stat.S_ISLNK(mode) or stat.S_ISBLK(mode) or stat.S_ISFIFO(mode) or stat.S_ISCHR(mode) or stat.S_ISSOCK(mode):
     0440:        return
     0441:
     0442:    tmpdir = bytes(d.getVar(&apos;TMPDIR&apos;), encoding=&quot;utf-8&quot;)
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/srv/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-util-linux/2.40.2/packages-split/nativesdk-util-linux-rfkill/DEBIAN&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99868</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-15 16:19:13 +0000</bug_when>
    <thetext>From RP:

Two levels of probems. The cachedpath code returns False instead of
exceptions so there was unexpected API changes. The recent insane
changes also stopped handling DEBIAN files correctly leading to races.
This is perhaps the best backtrace we have:

https://valkyrie.yoctoproject.org//#/builders/43/builds/246

Who/Plan: RP has a partial revert for the first part to fix builds.
Ross is aware and working on the second.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99873</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-10-15 16:33:42 +0000</bug_when>
    <thetext>Fixed in oe-core 22e4486d65e4874bf48d89160d69118f318278e8.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>