<?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>10765</bug_id>
          
          <creation_ts>2016-12-05 16:49:28 +0000</creation_ts>
          <short_desc>patchtest: patchtest guest execution yields a &apos;Too many open files&apos; message before halting</short_desc>
          <delta_ts>2017-12-06 17:30:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniela Plascencia">daniela.plascencia</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>daniela.plascencia</cc>
    
    <cc>leonardo.sandoval.gonzalez</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>68837</commentid>
    <comment_count>0</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2016-12-05 16:49:28 +0000</bug_when>
    <thetext>When executing patchtest on guest, the suite starts testing mboxes located at $BASE/mboxes, but after testing around half of them, the guest stops the patchtest execution with the following message:

/patchtest/mboxes/4134.1.mbox

/patchtest/mboxes/4135.1.mbox
/patchtest/patchtest/scripts/test-mboxes: line 86: /patchtest/results/4135.1.mbox.log: Too many open files
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal

Right after halting, $BASE/results contains empty.json and .log files for the mboxes that couldn&apos;t be tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69265</commentid>
    <comment_count>1</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2016-12-21 16:03:17 +0000</bug_when>
    <thetext>When manually executed in guest, the following exception is raised before the suite tests all the mboxes, causing it to stop.

----------------------------------------------------------------------
Ran 4 tests in 0.197s

OK
Traceback (most recent call last):
  File &quot;/patchtest/patchtest/patchtest&quot;, line 154, in _runner
    result = runner.run(suite)
  File &quot;/usr/lib/python2.7/unittest/runner.py&quot;, line 149, in run
    startTestRun()
  File &quot;/patchtest/patchtest/patchtest&quot;, line 101, in startTestRun
    self.repo.merge()
  File &quot;/patchtest/patchtest/lib/patchtestrepo.py&quot;, line 161, in merge
    &apos;updateenv&apos;: {&apos;PTRESOURCE&apos;:self._patch.path}})
  File &quot;/patchtest/patchtest/lib/patchtestrepo.py&quot;, line 116, in _exec
    raise ce
CmdException
None
patchtest failed, removing patchtest branch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69267</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-21 16:22:52 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; When manually executed in guest, the following exception is raised before
&gt; the suite tests all the mboxes, causing it to stop.
&gt; 
&gt; ----------------------------------------------------------------------
&gt; Ran 4 tests in 0.197s
&gt; 
&gt; OK
&gt; Traceback (most recent call last):
&gt;   File &quot;/patchtest/patchtest/patchtest&quot;, line 154, in _runner
&gt;     result = runner.run(suite)
&gt;   File &quot;/usr/lib/python2.7/unittest/runner.py&quot;, line 149, in run
&gt;     startTestRun()
&gt;   File &quot;/patchtest/patchtest/patchtest&quot;, line 101, in startTestRun
&gt;     self.repo.merge()
&gt;   File &quot;/patchtest/patchtest/lib/patchtestrepo.py&quot;, line 161, in merge
&gt;     &apos;updateenv&apos;: {&apos;PTRESOURCE&apos;:self._patch.path}})
&gt;   File &quot;/patchtest/patchtest/lib/patchtestrepo.py&quot;, line 116, in _exec
&gt;     raise ce
&gt; CmdException
&gt; None
&gt; patchtest failed, removing patchtest branch

This is not related to the reported issue. Please file a bug and make sure you provide enough info; also indicate if pt execution @ host has the same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69298</commentid>
    <comment_count>3</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2016-12-21 23:00:16 +0000</bug_when>
    <thetext>The message no longer appears using the script [1] to create and launch the guest machine. Resolving this as NOTABUG.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/patchtest/tree/scripts/create-guest?h=create-guest</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>