<?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>7175</bug_id>
          
          <creation_ts>2015-01-16 16:28:14 +0000</creation_ts>
          <short_desc>AUH needs buildhistory support</short_desc>
          <delta_ts>2016-10-26 09:23:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Automated Update Handler</product>
          <component>Automatic Update Handler</component>
          <version>unspecified</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>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          <blocked>7490</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48006</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-16 16:28:14 +0000</bug_when>
    <thetext>When the automatic upgrade helper does a recipe upgrade it should ensure it does a build of the existing version first and then the new version so that it can look at the buildhistory output.

I asked for this functionality to be added earlier, and some code was added but it looks like it was never completed; it doesn&apos;t appear to be called anywhere from what I can see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52717</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-07-29 20:53:40 +0000</bug_when>
    <thetext>At, 

https://lists.yoctoproject.org/pipermail/yocto/2015-July/025815.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52887</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-08-06 20:48:19 +0000</bug_when>
    <thetext>At,

http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/commit/?id=b0cc63b862be4c4c33893a1eb90b2079fea2ecb1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53806</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-09-07 20:25:18 +0000</bug_when>
    <thetext>Hello,

Tested this feature and here are the findings:

AUH commit: b0cc63b862be4c4c33893a1eb90b2079fea2ecb1

Testing steps performed:

1) find a recipe that recently got updated upstream; two candidates were used (bind and mesa):

mesa that got upgraded  with commit 34b59db3e64c07b393cef2a128cf301683758b67
...
    mesa: upgrade 10.5.8 -&gt; 10.6.3
...

2) checkout to a previous commit. 
for mesa: 661734759e73abd86d8184ae1dc4e91ba9cac83d

3) add in local.conf:
INHERIT += &quot;buildhistory&quot; 
BUILDHISTORY_COMMIT = &quot;1&quot;

4) bitbake mesa
and check built version:
build/buildhistory/packages$ cat ./i586-poky-linux/mesa/libgles2-mesa/latest
PE = 2
PV = 10.5.8
...

5) try to upgrade to the known version:
build/auto-upgrade-helper$ ./upgradehelper.py mesa --to_version 10.6.3
ERROR: smtp host not set! Sending emails disabled!
ERROR: &apos;From&apos; address not set! Sending emails disabled!
INFO: ATTEMPT PACKAGE 1/1
INFO: mesa: Upgrading to 10.6.3
INFO: mesa: Loading environment ...
INFO: mesa: Detecting git repository location ...
WARNING: mesa: git repository has uncommited work which will be dropped! Proceed? (y/N)
y
WARNING: mesa: Dropping uncommited work!
INFO: mesa: Cleaning git repository of temporary branch ...
INFO: mesa: Initial buildhistory for [&apos;qemux86&apos;, &apos;qemux86-64&apos;, &apos;qemuarm&apos;, &apos;qemumips&apos;, &apos;qemuppc&apos;] ...
ERROR: mesa: The following git command failed: log --pretty=format:&quot;%H&quot; -1master
ERROR: mesa: Upgrade FAILED! Logs and/or file diffs are available in /media/yp_builds/poky/build/upgrade-helper/work/mesa
INFO: mesa: Auto commit changes ...
Traceback (most recent call last):
  File &quot;./upgradehelper.py&quot;, line 758, in &lt;module&gt;
    updater.run(pkg_list)
  File &quot;./upgradehelper.py&quot;, line 507, in run
    self._commit_changes()
  File &quot;./upgradehelper.py&quot;, line 430, in _commit_changes
    raise e
errors.Error: Failed(other errors)

For bind the situation is the same when trying to upgrade from 9.10.2-p2 (eg. 309982f60aa3226d006cf7748dfce1fb54b32333)  
to 9.10.2.p3 (9527cd040d9dbbbcf8da49f8c86158b7f4bfbcb0)

As per the above, re-opening the feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53817</commentid>
    <comment_count>4</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-09-08 07:12:27 +0000</bug_when>
    <thetext>Hello,

I forgot to add that the machine i tested on with an Ubuntu 15.04</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53845</commentid>
    <comment_count>5</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-09-08 15:22:18 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Hello,
&gt; 
&gt; I forgot to add that the machine i tested on with an Ubuntu 15.04

I didn&apos;t test with Ubuntu 15.04, i used debian 8 and ubuntu 14.04.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54409</commentid>
    <comment_count>6</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-09-21 20:18:03 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Hello,
&gt; 
&gt; I forgot to add that the machine i tested on with an Ubuntu 15.04

Hi Costin, seems to be git user/email setup,

Can you configure git and test again?

$ git config --global user.name &quot;Costin&quot;
$ git config --global user.email &quot;&quot;

If it works i&apos;ll close this ticket and #7488 and you can add a ticket
for add this setup into README also a validation into the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54642</commentid>
    <comment_count>7</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-09-24 17:08:43 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #4)
&gt; &gt; Hello,
&gt; &gt; 
&gt; &gt; I forgot to add that the machine i tested on with an Ubuntu 15.04
&gt; 
&gt; Hi Costin, seems to be git user/email setup,
&gt; 
&gt; Can you configure git and test again?
&gt; 
&gt; $ git config --global user.name &quot;Costin&quot;
&gt; $ git config --global user.email &quot;&quot;
&gt; 
&gt; If it works i&apos;ll close this ticket and #7488 and you can add a ticket
&gt; for add this setup into README also a validation into the code.

Hi Costin,

I confirmed that is git setup problem, i loaded a ticket for it #8390.

You can continue with your tests configuring git.

Cheers,
    alimon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54643</commentid>
    <comment_count>8</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-09-24 17:09:58 +0000</bug_when>
    <thetext>Problem identified don&apos;t block test see #8390.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55649</commentid>
    <comment_count>9</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-10-23 08:21:18 +0000</bug_when>
    <thetext>Hello,

I tested this feature on latest master of poky: 661734759e73abd86d8184ae1dc4e91ba9cac83d
and AUH: 34ae735ed811049f3f4a6a7a82a14de81f097f37
on an Ubuntu machine.

Steps performed as on comment #3.

Marking as verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>