<?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>10283</bug_id>
          
          <creation_ts>2016-09-15 02:08:20 +0000</creation_ts>
          <short_desc>Consume TaskArtifacts metadata event created in bitbake</short_desc>
          <delta_ts>2025-06-11 09:01:44 +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>Toaster</product>
          <component>toaster</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>   </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          <dependson>9869</dependson>
          <blocked>7240</blocked>
    
    <blocked>7502</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>stanciux.mihail</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>66174</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-09-15 02:08:20 +0000</bug_when>
    <thetext>bitbake now generates TaskArtifacts metadata event for every artifact created.  Rather than walking the file system, toaster can now use the events generated as part of the change made for Bug 9869</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68541</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2016-11-23 16:21:17 +0000</bug_when>
    <thetext>Would need to restructure build info helper. Would improve reliability and readability, especially around file types. Does not directly affect user interface.

This is the best way, versus guessing the file paths and file name types (e.g. ARM has a device tree, kernel files compress differently), regex cannot guess everything.
 
Worth considering because might affect new layer types, especially commercialized ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70248</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-01-30 05:43:24 +0000</bug_when>
    <thetext>I have instrumented the TaskArtifacts event handler, and I am getting the data I am expected for the kernel, rootfs, and eSDK. This may be a good fix for 2.3.

The exception is the SDK, because the manifest file name is not as expected &quot;manifest-qemux86x86_64-core-image-minimal&quot; (see below):

* Task Artifacts data:

NOTE: EVENT_NM:TaskArtifacts({
  &apos;task&apos;: &apos;/&lt;pokydir&gt;/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_deploy&apos;, 
  &apos;artifacts&apos;: [
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/modules--4.8.12+git0+926c93ae07_021b4aef55-r0-qemux86-20170126071216.tgz&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/bzImage-qemux86.bin&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/modules-qemux86.tgz&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/bzImage&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/bzImage--4.8.12+git0+926c93ae07_021b4aef55-r0-qemux86-20170126071216.bin&apos;
	]})


NOTE: EVENT_NM:TaskArtifacts({
  &apos;task&apos;: &apos;/&lt;pokydir&gt;/meta/recipes-core/images/core-image-minimal.bb:do_image_complete&apos;, 
  &apos;artifacts&apos;: [
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170126093206.rootfs.manifest&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86.ext4&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86.manifest&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86.tar.bz2&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170126093206.rootfs.tar.bz2&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/images/qemux86/core-image-minimal-qemux86-20170126093206.rootfs.ext4&apos;
	]})


NOTE: EVENT_NM:TaskArtifacts({
  &apos;task&apos;: &apos;/&lt;pokydir&gt;/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext&apos;, 
  &apos;artifacts&apos;: [
	&apos;/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2.host.manifest&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2.target.manifest&apos;, 
	&apos;/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2.sh&apos;
	]})

* SDK Manifest name issue:

[build]$ ls /&lt;builddir&gt;/tmp/sstate-control | grep populate_sdk
manifest-qemux86-core-image-minimal.populate_sdk_ext
manifest-qemux86x86_64-core-image-minimal.populate_sdk
manifest-x86_64_linux-buildtools-tarball.populate_sdk
manifest-x86_64_linux-uninative-tarball.populate_sdk
[build]$ 
[build]$ cat /&lt;builddir&gt;/tmp/sstate-control/manifest-qemux86x86_64-core-image-minimal.populate_sdk
/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.2+snapshot.host.manifest
/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.2+snapshot.testdata.json
/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.2+snapshot.target.manifest
/&lt;builddir&gt;/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.2+snapshot.sh
[build]$ 
[build]$ ls /&lt;builddir&gt;/tmp/sstate-control | grep x86x86
index-qemux86x86_64
manifest-qemux86x86_64-core-image-minimal.populate_sdk
[build]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72195</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-04-08 04:08:33 +0000</bug_when>
    <thetext>1) The SDK and ESDK artifacts via TaskArtifacts have been implemented in 10850. 

The trick around the SDK manifest name was that the meta data used to create the file&apos;s name (stamp-extra-info) is lost from the data_smart environment by the time TaskArtifacts executes, so that has to be hardcoded.

  do_populate_sdk[stamp-extra-info] = &quot;${MACHINE}${SDKMACHINE}&quot;
  do_deploy[stamp-extra-info] = &quot;${MACHINE}&quot;
  do_image_complete[stamp-extra-info] = &quot;${MACHINE}&quot;
  do_populate_sdk_ext[stamp-extra-info] = &quot;${MACHINE}&quot;

2) We will implement do_deploy and do_image_complete in the next release, as well as remove the dead do_populate_sdk[_ext] hooks and obsolete handlers (scan_image_artifacts and scan_sdk_artifacts).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76248</commentid>
    <comment_count>4</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-08-29 15:58:50 +0000</bug_when>
    <thetext>Moving this to YP-2.5 since it is not blocking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96932</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:45 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>