<?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>13243</bug_id>
          
          <creation_ts>2019-03-26 23:56:09 +0000</creation_ts>
          <short_desc>devtool test failure in python scanning code</short_desc>
          <delta_ts>2019-06-15 14:20:23 +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>Scripts and Tools</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="New Comer Bugs">newcomer</assigned_to>
          <cc>open.source</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <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>83323</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-03-26 23:56:09 +0000</bug_when>
    <thetext>Failures in several of the devtool tests involving python scanning have started showing up; they appear to be the same underlying issue:

======================================================================
2019-03-24 23:59:31,514 - oe-selftest - INFO - FAIL: devtool.DevtoolAddTests.test_devtool_add_fetch (subunit.RemotedTestCase)
2019-03-24 23:59:31,514 - oe-selftest - INFO - ----------------------------------------------------------------------
2019-03-24 23:59:31,514 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 405, in test_devtool_add_fetch
    result = runCmd(&apos;devtool add %s %s -f %s&apos; % (testrecipe, srcdir, url))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/utils/commands.py&quot;, line 194, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;devtool add python-markupsafe /tmp/devtoolqa0qtw___7/python-markupsafe -f https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz&apos; returned non-zero exit status 1:
NOTE: Starting bitbake server...
NOTE: Creating workspace layer in /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-10944/workspace
WARNING: -f/--fetch option is deprecated - you can now simply specify the URL to fetch as a positional argument instead
NOTE: Starting bitbake server...
NOTE: Fetching https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz...
Loading cache...done.
Loaded 1285 entries from dependency cache.
Parsing recipes...done.
Parsing of 812 .bb files complete (811 cached, 1 parsed). 1286 targets, 43 skipped, 0 masked, 0 errors.
Removing 1 recipes from the core2-64 sysroot...done.
Removing 1 recipes from the qemux86_64 sysroot...done.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = &quot;1.40.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;x86_64-poky-linux&quot;
MACHINE              = &quot;qemux86-64&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.6.1&quot;
TUNE_FEATURES        = &quot;m64 core2&quot;
TARGET_FPU           = &quot;&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;thud-next:d8402a9143617d4cdbd2826a87e15665fe6fd46e&quot;
meta-selftest        = &quot;master:3cf8e1ea39cfb78b1302a6f7e86fa03c8ccf5531&quot;
workspace            = &quot;thud-next:d8402a9143617d4cdbd2826a87e15665fe6fd46e&quot;
Initialising tasks...done.
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
NOTE: Scanning paths for packages &amp; dependencies: markupsafe
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 121, in &lt;module&gt;
    ret = main()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 110, in main
    ret = args.func(args)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create.py&quot;, line 757, in create_recipe
    handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 280, in process
    mapped_deps, unmapped_deps = self.scan_setup_python_deps(srctree, setup_info, setup_non_literals)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 498, in scan_setup_python_deps
    scanned_deps = self.scan_python_dependencies([os.path.join(srctree, p) for p in to_scan])
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 519, in scan_python_dependencies
    dep, filename = line.split(&apos;\t&apos;, 1)
ValueError: not enough values to unpack (expected 2, got 1)
ERROR: Command &apos;recipetool --color=auto create --devtool -o /tmp/devtoolcm1p6mp6 &apos;https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz&apos;  -x /tmp/devtoolqa0qtw___7/python-markupsafe -N python-markupsafe&apos; failed
======================================================================
2019-03-24 23:59:31,514 - oe-selftest - INFO - FAIL: recipetool.RecipetoolTests.test_recipetool_create_github (subunit.RemotedTestCase)
2019-03-24 23:59:31,514 - oe-selftest - INFO - ----------------------------------------------------------------------
2019-03-24 23:59:31,514 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/recipetool.py&quot;, line 455, in test_recipetool_create_github
    result = runCmd([&apos;recipetool&apos;, &apos;create&apos;, &apos;-o&apos;, temprecipe, srcuri])
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/utils/commands.py&quot;, line 194, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;[&apos;recipetool&apos;, &apos;create&apos;, &apos;-o&apos;, &apos;/tmp/recipetoolqaaa43n8sa/recipe&apos;, &apos;https://github.com/mesonbuild/meson;rev=0.32.0&apos;]&apos; returned non-zero exit status 1:
NOTE: Starting bitbake server...
NOTE: Fetching git://github.com/mesonbuild/meson;rev=0.32.0;protocol=https;nobranch=1...
Loading cache...done.
Loaded 1286 entries from dependency cache.
Parsing recipes...done.
Parsing of 812 .bb files complete (811 cached, 1 parsed). 1286 targets, 43 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = &quot;1.40.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;x86_64-poky-linux&quot;
MACHINE              = &quot;qemux86-64&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.6.1&quot;
TUNE_FEATURES        = &quot;m64 core2&quot;
TARGET_FPU           = &quot;&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;thud-next:d8402a9143617d4cdbd2826a87e15665fe6fd46e&quot;
meta-selftest        = &quot;master:3cf8e1ea39cfb78b1302a6f7e86fa03c8ccf5531&quot;
recipetoolqa5e7cur6s = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;
Initialising tasks...done.
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
NOTE: Scanning paths for packages &amp; dependencies: mesonbuild, mesonbuild/modules, mesonbuild/scripts, mesonbuild/backend, mesonbuild/wrap, meson.py, mesonconf.py, mesonintrospect.py, wraptool.py
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 121, in &lt;module&gt;
    ret = main()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 110, in main
    ret = args.func(args)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create.py&quot;, line 757, in create_recipe
    handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 280, in process
    mapped_deps, unmapped_deps = self.scan_setup_python_deps(srctree, setup_info, setup_non_literals)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 498, in scan_setup_python_deps
    scanned_deps = self.scan_python_dependencies([os.path.join(srctree, p) for p in to_scan])
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 519, in scan_python_dependencies
    dep, filename = line.split(&apos;\t&apos;, 1)
ValueError: not enough values to unpack (expected 2, got 1)
======================================================================
2019-03-24 23:59:31,514 - oe-selftest - INFO - FAIL: recipetool.RecipetoolTests.test_recipetool_create_github_tarball (subunit.RemotedTestCase)
2019-03-24 23:59:31,515 - oe-selftest - INFO - ----------------------------------------------------------------------
2019-03-24 23:59:31,515 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 32, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/recipetool.py&quot;, line 471, in test_recipetool_create_github_tarball
    result = runCmd(&apos;recipetool create -o %s %s&apos; % (temprecipe, srcuri))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/utils/commands.py&quot;, line 194, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;recipetool create -o /tmp/recipetoolqaj43o9p87/recipe https://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz&apos; returned non-zero exit status 1:
NOTE: Starting bitbake server...
NOTE: Fetching https://github.com/mesonbuild/meson/releases/download/0.32.0/meson-0.32.0.tar.gz...
Loading cache...done.
Loaded 1287 entries from dependency cache.
Parsing recipes...done.
Parsing of 812 .bb files complete (811 cached, 1 parsed). 1286 targets, 43 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = &quot;1.40.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;x86_64-poky-linux&quot;
MACHINE              = &quot;qemux86-64&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;2.6.1&quot;
TUNE_FEATURES        = &quot;m64 core2&quot;
TARGET_FPU           = &quot;&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;thud-next:d8402a9143617d4cdbd2826a87e15665fe6fd46e&quot;
meta-selftest        = &quot;master:3cf8e1ea39cfb78b1302a6f7e86fa03c8ccf5531&quot;
recipetoolqa5e7cur6s = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;
Initialising tasks...done.
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
NOTE: Scanning paths for packages &amp; dependencies: mesonbuild, mesonbuild/modules, mesonbuild/scripts, mesonbuild/backend, mesonbuild/wrap, meson.py, mesonconf.py, mesonintrospect.py, wraptool.py
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 121, in &lt;module&gt;
    ret = main()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/recipetool&quot;, line 110, in main
    ret = args.func(args)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create.py&quot;, line 757, in create_recipe
    handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 280, in process
    mapped_deps, unmapped_deps = self.scan_setup_python_deps(srctree, setup_info, setup_non_literals)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 498, in scan_setup_python_deps
    scanned_deps = self.scan_python_dependencies([os.path.join(srctree, p) for p in to_scan])
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/scripts/lib/recipetool/create_buildsys_python.py&quot;, line 519, in scan_python_dependencies
    dep, filename = line.split(&apos;\t&apos;, 1)
ValueError: not enough values to unpack (expected 2, got 1)
======================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83324</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-03-26 23:56:27 +0000</bug_when>
    <thetext>Build link:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/115/steps/7/logs/step2d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84219</commentid>
    <comment_count>2</comment_count>
    <who name="Oleksandr Kravchuk">open.source</who>
    <bug_when>2019-06-15 14:20:23 +0000</bug_when>
    <thetext>Fixed by ca9c738053090b41.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>