<?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>13421</bug_id>
          
          <creation_ts>2019-06-26 15:15:14 +0000</creation_ts>
          <short_desc>File race when calling devtool.setUpModule</short_desc>
          <delta_ts>2020-07-30 07:28:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>0.0.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13803</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tim.orling</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>84319</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-26 15:15:14 +0000</bug_when>
    <thetext>2019-06-26 13:58:47,769 - oe-selftest - INFO - ERROR: setUpModule (devtool) [ (subunit.RemotedTestCase)

testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 67, in setUpModule
    bb.utils.edit_bblayers_conf(bblayers_conf, None, None, bblayers_edit_cb)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/utils.py&quot;, line 1413, in edit_bblayers_conf
    (updated, newlines) = edit_metadata(newlines, [&apos;BBLAYERS&apos;], handle_bblayers)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/utils.py&quot;, line 1243, in edit_metadata
    if handle_var_end():
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/utils.py&quot;, line 1168, in handle_var_end
    (newvalue, newop, indent, minbreak) = varfunc(in_var, full_value, op, newlines)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/utils.py&quot;, line 1378, in handle_bblayers
    res = edit_cb(layer, canonicalise_path(layer))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/devtool.py&quot;, line 59, in bblayers_edit_cb
    shutil.copytree(pth, destdir)
  File &quot;/usr/lib/python3.5/shutil.py&quot;, line 359, in copytree
    raise Error(errors)
shutil.Error: [(&apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475138870608&apos;, &apos;/tmp/devtoolqaaestfq_g/core-copy/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475138870608&apos;, &quot;[Errno 2] No such file or directory: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/buil
d/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475138870608&apos;&quot;), (&apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475134369424&apos;, &apos;/tmp/devtoolqaaestfq_g/core-copy/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475134369424&apos;, &quot;[Errno 2] No such file or directory: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oe/__pycache__/package_manager.cpython-35.pyc.140475134369424&apos;&quot;)]


https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/256/steps/7/logs/step2d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84325</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-27 14:44:15 +0000</bug_when>
    <thetext>Likely need to exclude __pycache__ from the copy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86691</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-03-10 21:38:34 +0000</bug_when>
    <thetext>Any news on this defect Robert? Can you reproduce it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87853</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-07-30 07:28:33 +0000</bug_when>
    <thetext>Marking as duplicate of more recently filed #13803

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

    </bug>

</bugzilla>