<?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>7966</bug_id>
          
          <creation_ts>2015-07-07 21:19:43 +0000</creation_ts>
          <short_desc>buildhistory should write git SHAs</short_desc>
          <delta_ts>2015-09-03 12:07:00 +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>devtools / tool chain</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>52197</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-07 21:19:43 +0000</bug_when>
    <thetext>It would be awesome if buildhistory could detect if it were running in a git repo and write the layer SHAs to the repo somewhere, like bitbake does when it starts up.

When my buildhistory log is &quot;bitbake core-image-sato&quot; 20 times it would help to differentiate what build was what.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52198</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-07-07 22:14:08 +0000</bug_when>
    <thetext>Unless I&apos;m misunderstanding the request, it already does this in two places - metadata-revs at the root of the buildhistory repo (machine-readable, written out on every build), and build-id.txt under the directory for an image (only written when building an image, and the format is the same as bitbake&apos;s preamble output).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52200</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-07 22:33:48 +0000</bug_when>
    <thetext>You&apos;re not mistaken.  Would it be convenient/possible/useful to put this into the commit log to?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53578</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-08-31 21:43:43 +0000</bug_when>
    <thetext>Implemented in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=734411a9e633f5b1459216e4cc5175f267d8a668</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53676</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-03 12:07:00 +0000</bug_when>
    <thetext>Verified on master: 
cat buildhistory/metadata-revs
meta              = master:71b0568fa43285f0946fae93fb43cea5f3bbecec
meta-yocto        = master:71b0568fa43285f0946fae93fb43cea5f3bbecec
meta-yocto-bsp    = master:71b0568fa43285f0946fae93fb43cea5f3bbece</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>