<?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>11821</bug_id>
          
          <creation_ts>2017-07-24 03:42:34 +0000</creation_ts>
          <short_desc>nightly-oe-selftest 2.4_M1-574-g2ec756257e failed</short_desc>
          <delta_ts>2017-09-26 16:32:34 +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>core</component>
          <version>2.4</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <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>75236</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-07-24 03:42:34 +0000</bug_when>
    <thetext>builddir : /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest
buildername : nightly-oe-selftest
buildnumber : 404
commit-description : 2.4_M1-574-g2ec756257e


error message.

017-07-23 15:25:53,161 - oe-selftest - INFO - oe-selftest - FAIL - Required tests failed
Traceback (most recent call last):
  File &quot;/usr/lib/python3.5/weakref.py&quot;, line 624, in _exitfunc
    f()
  File &quot;/usr/lib/python3.5/weakref.py&quot;, line 548, in __call__
    return info.func(*info.args, **(info.kwargs or {}))
  File &quot;/usr/lib/python3.5/tempfile.py&quot;, line 936, in _cleanup
    _rmtree(name)
  File &quot;/usr/lib/python3.5/shutil.py&quot;, line 480, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File &quot;/usr/lib/python3.5/shutil.py&quot;, line 438, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File &quot;/usr/lib/python3.5/shutil.py&quot;, line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: &apos;S.gpg-agent.browser&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75342</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-07-27 14:46:24 +0000</bug_when>
    <thetext>I think this happens when the gpg signing test runs out of memory (perhaps due to high parallelisation) and then there is a cleanup issue. May be easily reproduced with constrained memory with large numbers of parallelism.

There are two issues:

a) Look at memory usage with signing and try and reduce it (or reduce parallelism when signing enabled)
b) Resovle the seltest file cleanup error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75638</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-04 00:40:58 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; builddir : /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest
&gt; buildername : nightly-oe-selftest
&gt; buildnumber : 404
&gt; commit-description : 2.4_M1-574-g2ec756257e
&gt; 

Armin, Can you post the URL from where you took the log? Due to the nature of the AB, where old builds are removed, the URL may not exist anymore, so if you have the whole log locally, attach it.

&gt; 
&gt; error message.
&gt; 
&gt; 017-07-23 15:25:53,161 - oe-selftest - INFO - oe-selftest - FAIL - Required
&gt; tests failed
&gt; Traceback (most recent call last):
&gt;   File &quot;/usr/lib/python3.5/weakref.py&quot;, line 624, in _exitfunc
&gt;     f()
&gt;   File &quot;/usr/lib/python3.5/weakref.py&quot;, line 548, in __call__
&gt;     return info.func(*info.args, **(info.kwargs or {}))
&gt;   File &quot;/usr/lib/python3.5/tempfile.py&quot;, line 936, in _cleanup
&gt;     _rmtree(name)
&gt;   File &quot;/usr/lib/python3.5/shutil.py&quot;, line 480, in rmtree
&gt;     _rmtree_safe_fd(fd, path, onerror)
&gt;   File &quot;/usr/lib/python3.5/shutil.py&quot;, line 438, in _rmtree_safe_fd
&gt;     onerror(os.unlink, fullname, sys.exc_info())
&gt;   File &quot;/usr/lib/python3.5/shutil.py&quot;, line 436, in _rmtree_safe_fd
&gt;     os.unlink(name, dir_fd=topfd)
&gt; FileNotFoundError: [Errno 2] No such file or directory: &apos;S.gpg-agent.browser&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76159</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-25 17:52:11 +0000</bug_when>
    <thetext>sorry. can not find it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76408</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-08-31 15:32:29 +0000</bug_when>
    <thetext>Armin answered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76620</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-07 14:07:09 +0000</bug_when>
    <thetext>Problem is reproducible on debian 9 (stretch), same error observed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76794</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-13 15:35:29 +0000</bug_when>
    <thetext>fixed by:

commit f44dfe63a49675e51a72ba271771c1c26650cb43
Author: Leonardo Sandoval &lt;leonardo.sandoval.gonzalez@linux.intel.com&gt;
Date:   Thu Sep 7 15:52:54 2017 -0500

    selftest/cases/signing: ignore removal errors when cleaning temporary gpg directory
    
    The high-level method tempfile.TemporaryDirectory give us no way to
    ignore erros on removal thus use tempfile.mkdtemp instead. Ignoring possible issues
    on removal is neccesary because it contains gpg sockets that are automatically removed
    by the system once the process terminates, otherwise the following log is observed:
    
      ..
      ..
      File &quot;/usr/lib/python3.5/shutil.py&quot;, line 436, in _rmtree_safe_fd
        os.unlink(name, dir_fd=topfd)
      FileNotFoundError: [Errno 2] No such file or directory: &apos;S.gpg-agent.browser&apos;
    
    [YOCTO #11821]
    
    (From OE-Core rev: 7e3a7cd2426feac757def81850dc44156cd0f33e)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76852</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-14 16:05:52 +0000</bug_when>
    <thetext>Unfortunately, the issue is still present [1] on main autobuilders, so reopening

[1] https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/516/steps/Running%20oe-selftest/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76978</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-20 14:57:34 +0000</bug_when>
    <thetext>There is another place (runtime test) where the temporal working dir gpg folder clean-up is needed so patch is needed in this area. Due to M4 freeze, moving to next milestone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77149</commentid>
    <comment_count>9</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-26 16:32:34 +0000</bug_when>
    <thetext>There was a need for a second patch, the same idea as the first but targeted for another code area. Patch now in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6550d66de338ed34de536e8c79ef66135cc88317</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>