<?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>15190</bug_id>
          
          <creation_ts>2023-08-14 15:25:54 +0000</creation_ts>
          <short_desc>Race between fitimage and runtime_test.TestImage.test_testimage_install</short_desc>
          <delta_ts>2023-08-17 14:36:59 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          
          
          
          <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>96254</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-08-14 15:25:54 +0000</bug_when>
    <thetext>We occasionally see issues with runtime_test.TestImage.test_testimage_install where socat isn&apos;t found.

https://autobuilder.yocto.io/pub/failed-builds-data/socat/log.do_testimage.3424338

is the test image log and it shows it installing an arm socat package into the target and trying to run it getting an exec error, unsurprisingly as it is an x86_64 image.

The package seems to be found via a symlink out the recipe&apos;s package data into the main tmp/deploy/rpm directory:

okybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo$ ls -la
total 504
drwxr-xr-x  6 pokybuild pokybuild   4096 Aug 14 05:02 .
drwxr-xr-x 20 pokybuild pokybuild   4096 Aug 14 05:02 ..
drwxr-xr-x  2 pokybuild pokybuild   4096 Aug 14 04:55 all
drwxr-xr-x  2 pokybuild pokybuild 393216 Aug 14 04:55 core2-64
drwxr-xr-x  2 pokybuild pokybuild 102400 Aug 14 04:55 qemux86_64
drwxr-xr-x  2 pokybuild pokybuild   4096 Aug 14 05:02 repodata
lrwxrwxrwx  1 pokybuild pokybuild     85 Aug 14 05:02 rpm -&gt; /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/deploy/rpm
pokybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo$ ls -la /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/deploy/rpm
total 944
drwxr-xr-x 8 pokybuild pokybuild   4096 Aug 14 05:03 .
drwxr-xr-x 8 pokybuild pokybuild   4096 Aug 14 04:54 ..
drwxr-xr-x 2 pokybuild pokybuild  57344 Aug 14 04:38 beaglebone_yocto
drwxr-xr-x 2 pokybuild pokybuild 401408 Aug 14 05:03 core2_64
drwxr-xr-x 2 pokybuild pokybuild 401408 Aug 11 09:07 cortexa8hf_neon
drwxr-xr-x 2 pokybuild pokybuild   4096 May  5 14:36 noarch
-rw-r--r-- 2 pokybuild pokybuild   1700 Mar 26 04:24 PACKAGEFEED-GPG-KEY-poky-mickledore
drwxr-xr-x 2 pokybuild pokybuild   4096 Aug 14 04:43 qemuarm
drwxr-xr-x 2 pokybuild pokybuild  77824 Aug 11 08:29 qemux86_64
pokybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo$ cd /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/deploy/rpm
pokybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/deploy/rpm$ find -name socat*
./cortexa8hf_neon/socat-dev-1.7.4.4-r0.cortexa8hf_neon.rpm
./cortexa8hf_neon/socat-1.7.4.4-r0.cortexa8hf_neon.rpm
./cortexa8hf_neon/socat-dbg-1.7.4.4-r0.cortexa8hf_neon.rpm
./cortexa8hf_neon/socat-src-1.7.4.4-r0.cortexa8hf_neon.rpm
./cortexa8hf_neon/socat-doc-1.7.4.4-r0.cortexa8hf_neon.rpm
./core2_64/socat-dev-1.7.4.4-r0.core2_64.rpm
./core2_64/socat-src-1.7.4.4-r0.core2_64.rpm
./core2_64/socat-doc-1.7.4.4-r0.core2_64.rpm
./core2_64/socat-1.7.4.4-r0.core2_64.rpm
./core2_64/socat-dbg-1.7.4.4-r0.core2_64.rpm
pokybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo$ find -name socat*
./core2-64/socat-dev_1.7.4.4-r0_amd64.deb
./core2-64/socat-src_1.7.4.4-r0_amd64.deb
./core2-64/socat-dbg_1.7.4.4-r0_amd64.deb
./core2-64/socat-doc_1.7.4.4-r0_amd64.deb
./core2-64/socat_1.7.4.4-r0_amd64.deb
pokybuild@debian11-ty-3:~/yocto-worker/oe-selftest-debian/build/build-st-2844859/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0/oe-rootfs-repo$ 

I&apos;d hypothesise that since fitimage contains the only beaglebone-yocto build and this matches the beaglebone package architecture, the command to reproduce would be:

oe-selftest -j 1 -r fitimage runtime_test.TestImage.test_testimage_install,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96255</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-08-14 15:33:19 +0000</bug_when>
    <thetext>I confirmed the reproducer did reproduce the issue on the worker in question. Only remaining potential issue with reproducing may be timestamp order on the rpms as I don&apos;t know how it picks one when it returns two possibilities from a repo query but we should be able to debug and fix it from here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96258</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-08-15 13:19:43 +0000</bug_when>
    <thetext>Stripped down to two tests, the reproducer is:

oe-selftest -j 1 -r fitimage.FitImageTests.test_initramfs_bundle runtime_test.TestImage.test_testimage_install</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96259</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-08-15 13:49:58 +0000</bug_when>
    <thetext>I suspect it is testexport triggering the BB_LIMITED_DEPS code in lib/oe/package_manager/__init__.py which generates the symlink</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96267</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-08-17 14:36:59 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=d724ec6f040dc4eb5965a791b93d9956f37206a2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>