<?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>9742</bug_id>
          
          <creation_ts>2016-06-09 15:05:22 +0000</creation_ts>
          <short_desc>test_buildhistory_diff fails on master with python3</short_desc>
          <delta_ts>2016-06-09 15:11:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9716</dup_id>
          
          <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="Valentin Hangan">valentinx.hangan</reporter>
          <assigned_to name="Benjamin Esquivel">benjamin.esquivel</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>62824</commentid>
    <comment_count>0</comment_count>
    <who name="Valentin Hangan">valentinx.hangan</who>
    <bug_when>2016-06-09 15:05:22 +0000</bug_when>
    <thetext>On poky commit: 6c5d7f1fb276cbe0a461ece6c8f0ca17a478fa8c 

test_buildhistory_diff is failing.

Tested on Ubuntu 15.10, Fedora 23, CentOS 7.2 , OpenSUSE 13.2

2016-06-09 18:14:15 - test_buildhistory_diff (oeqa.selftest.oescripts.BuildhistoryDiffTests) ... FAIL

======================================================================
FAIL: test_buildhistory_diff (oeqa.selftest.oescripts.BuildhistoryDiffTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py&quot;, line 109, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/oescripts.py&quot;, line 52, in test_buildhistory_diff
    result = runCmd(&quot;buildhistory-diff -p %s&quot; % get_bb_var(&apos;BUILDHISTORY_DIR&apos;))
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 110, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;buildhistory-diff -p /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp_buildhistory_20160609181418&apos; returned non-zero exit status 1:
Please install GitPython (python-git) 0.3.1 or later in order to use this script



Try to install GitPython on those machine but seems that we have latest version of python-git.

Rerun test but and test is failing. 

autobuilder@ubuntuAB:~/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build$ oe-selftest --run-tests-by id 295
2016-06-09 20:57:09,341 - selftest - INFO - Running bitbake -e to get BBPATH
DEBUG: tc id missing for test_bmap
DEBUG: tc id missing for test_sstate_noop_samesigs
DEBUG: tc id missing for test_bmap
2016-06-09 20:57:12,126 - selftest - INFO - Checking that everything is in order before running the tests
2016-06-09 20:57:13,427 - selftest - INFO - Running bitbake -p
2016-06-09 20:57:17,793 - selftest - INFO - Loading tests from: oeqa.selftest.oescripts.BuildhistoryDiffTests.test_buildhistory_diff
2016-06-09 20:57:17,795 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2016-06-09 20:57:17,795 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf
2016-06-09 20:57:17 - test_buildhistory_diff (oeqa.selftest.oescripts.BuildhistoryDiffTests) ... FAIL
 
======================================================================
FAIL: test_buildhistory_diff (oeqa.selftest.oescripts.BuildhistoryDiffTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py&quot;, line 109, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/oescripts.py&quot;, line 52, in test_buildhistory_diff
    result = runCmd(&quot;buildhistory-diff -p %s&quot; % get_bb_var(&apos;BUILDHISTORY_DIR&apos;))
  File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 110, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;buildhistory-diff -p /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp_buildhistory_20160609205720&apos; returned non-zero exit status 1:
Please install GitPython (python-git) 0.3.1 or later in order to use this script
 
----------------------------------------------------------------------
Ran 1 test in 68.401s
 
FAILED (failures=1)
2016-06-09 20:58:26,197 - selftest - INFO - Finished
2016-06-09 20:58:26,197 - selftest - INFO - Removing the include from local.conf
2016-06-09 20:58:26,198 - selftest - INFO - Removing the include from bblayers.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62828</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-06-09 15:11:06 +0000</bug_when>
    <thetext>This bug has been already reported in bug 9716

*** This bug has been marked as a duplicate of bug 9716 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>