Bug 7729

Summary: Some devtool unittests fail
Product: [QA/Testing] Runtime Testing Reporter: Lucian Musat <georgex.l.musat>
Component: generalAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: High CC: alexandru.c.georgescu
Version: 1.9   
Target Milestone: 1.9 M1   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Lucian Musat 2015-05-07 11:30:35 UTC
On the latests weekly testrun we have some automated devtool tests failing.
Commit: b2b59b14ecfe13ba794d92f97d1403d6503c7407
AB Link: http://autobuilder.yoctoproject.org/pub/nightly/20150505-2
Image type: core-image-sato-sdk


FAIL: test_devtool_add_fetch (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 185, in test_devtool_add_fetch
    result = runCmd('devtool add %s %s -f %s' % (testrecipe, srcdir, url))
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 103, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'devtool add python-markupsafe /tmp/devtoolqaAlthB1/python-markupsafe -f https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz' returned non-zero exit status 1:
NOTE: Creating workspace layer in /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/workspace
Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/devtool", line 252, in <module>
    ret = main()
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/devtool", line 245, in main
    ret = args.func(args, config, basepath, workspace)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/lib/devtool/standard.py", line 98, in add
    stdout, stderr = exec_build_env_command(config.init_path, basepath, 'recipetool --color=%s create -o %s "%s" %s' % (color, recipefile, source, extracmdopts))
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/lib/devtool/__init__.py", line 49, in exec_build_env_command
    return bb.process.run('%s%s' % (init_prefix, cmd), **options)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/process.py", line 132, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
ExecutionError: Execution of 'recipetool --color=auto create -o /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/workspace/recipes/python-markupsafe/python-markupsafe.bb "https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz" -x /tmp/devtoolqaAlthB1/python-markupsafe' failed with exit code 1:
NOTE: Fetching https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz...
WARNING: Failed to fetch URL https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz:
2015-05-06 11:53:23 ERROR 404: Not Found.

Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/recipetool", line 94, in <module>
    ret = main()
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/recipetool", line 87, in main
    ret = args.func(args)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/lib/recipetool/create.py", line 126, in create_recipe
    checksums = fetch_source(args.source, srctree, srcrev)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/lib/recipetool/create.py", line 84, in fetch_source
    raise bb.build.FuncFailed(e)
FuncFailed: Function failed: Fetcher failure for URL: 'https://pypi.python.org/packages/source/J/MarkupSafe/MarkupSafe-0.23.tar.gz'. Unable to fetch URL from any source.


======================================================================
FAIL: test_devtool_modify_invalid (oeqa.selftest.devtool.DevtoolTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/devtool.py", line 331, in test_devtool_modify_invalid
    bitbake('%s -e' % testrecipe)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 125, in bitbake
    return runCmd(cmd, ignore_status, timeout, **options)
  File "/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 103, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, result.output))
AssertionError: Command 'bitbake  gcc-source -e' returned non-zero exit status 1:
Loading cache...done.
Loaded 1289 entries from dependency cache.
ERROR: Nothing PROVIDES 'gcc-source'. Close matches:
  gcc-source-4.9.2
  gcc-source-4.8.4

Lava link: http://yocto-lava.rb.intel.com/dashboard/streams/anonymous/oe-selftest-fedora/bundles/151b3500b8bc048f6da7c47e1b9b11fa3474caf7/d1de5eb1-5fee-4cbd-a394-bf0050ca2d71/?sort=-result#table
Comment 2 Alexandru Georgescu 2015-06-23 10:50:00 UTC
Verified with 8ef99a00dc75c6eed87aa1bc1528614a2a27eddf