<?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>12780</bug_id>
          
          <creation_ts>2018-06-11 08:06:28 +0000</creation_ts>
          <short_desc>[2.3.4 rc1] Random warning message appear ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=23 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;</short_desc>
          <delta_ts>2018-12-08 21:56:45 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.3.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://centaurus02.png.intel.com:8010/#/builders/18/builds/138/steps/6/logs/stdio</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mohamad Noor Alim">mohamad.noor.alim.hussin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          <qa_contact name="Mohamad Noor Alim">mohamad.noor.alim.hussin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80756</commentid>
    <comment_count>0</comment_count>
    <who name="Mohamad Noor Alim">mohamad.noor.alim.hussin</who>
    <bug_when>2018-06-11 08:06:28 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80757</commentid>
    <comment_count>1</comment_count>
    <who name="Mohamad Noor Alim">mohamad.noor.alim.hussin</who>
    <bug_when>2018-06-11 08:45:09 +0000</bug_when>
    <thetext>Warning message appear during runing oe-selftest. These warning messages appear at 2 test cases.
- oeqa.selftest.devtool.DevtoolTests
- oeqa.selftest.recipetool.RecipetoolTests

The warning messages as follows:

test_devtool_update_recipe_local_files (oeqa.selftest.devtool.DevtoolTests) ... OK (44.602s)WARNING: /home/ab/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/parse/ast.py:40: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=20 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;
  self.filename = filename

test_recipetool_create (oeqa.selftest.recipetool.RecipetoolTests)WARNING: /home/ab/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/cache.py:449: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=23 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;
  value = pickled.load()

WARNING: /home/ab/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/cache.py:449: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=23 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;
  value = pickled.load()

WARNING: /home/ab/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/data_smart.py:598: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=23 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;
  self.overridedata[shortvar] = list(self.overridedata[shortvar])

WARNING: /home/ab/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/parse/ast.py:40: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=23 mode=&apos;w&apos; encoding=&apos;UTF-8&apos;&gt;
  self.filename = filename</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82203</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-11-13 18:06:44 +0000</bug_when>
    <thetext>Just to update, I don&apos;t think it is these two test cases which trigger this, the warning sometimes appears and sometimes does not. It seems to be of a much reduced frequency compared to when this was originally reported and the traceback isn&apos;t accurate, we can&apos;t tell what the original file was :(.

I&apos;d love it if someone had a reliable reproducer for this, without one we&apos;re a bit stuck to know where this is coming from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82454</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-12-08 21:56:45 +0000</bug_when>
    <thetext>Since these and various other fixes, we&apos;ve not seen these warnings:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=df63ae7edd544c5d86b549345ad1ca1c9deacc41
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f33fb239d60953aa3014bf694ab6d115054e5ab5
(this is only ever likely to be totally fixed in master)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>