Bug 9742 - test_buildhistory_diff fails on master with python3
Summary: test_buildhistory_diff fails on master with python3
Status: RESOLVED DUPLICATE of bug 9716
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Benjamin Esquivel
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-09 15:05 UTC by Valentin Hangan
Modified: 2016-06-09 15:11 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Hangan 2016-06-09 15:05:22 UTC
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 "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/oescripts.py", line 52, in test_buildhistory_diff
    result = runCmd("buildhistory-diff -p %s" % get_bb_var('BUILDHISTORY_DIR'))
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 110, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'buildhistory-diff -p /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp_buildhistory_20160609181418' 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: "include selftest.inc" in local.conf
2016-06-09 20:57:17,795 - selftest - INFO - Adding: "include bblayers.inc" 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 "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f
    return func(*args, **kwargs)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/oescripts.py", line 52, in test_buildhistory_diff
    result = runCmd("buildhistory-diff -p %s" % get_bb_var('BUILDHISTORY_DIR'))
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 110, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'buildhistory-diff -p /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp_buildhistory_20160609205720' 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
Comment 1 Benjamin Esquivel 2016-06-09 15:11:06 UTC
This bug has been already reported in bug 9716

*** This bug has been marked as a duplicate of bug 9716 ***