Bug 10765

Summary: patchtest: patchtest guest execution yields a 'Too many open files' message before halting
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Daniela Plascencia <daniela.plascencia>
Component: PatchtestAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: bluelightning, daniela.plascencia, leonardo.sandoval.gonzalez
Version: 2.3   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Daniela Plascencia 2016-12-05 16:49:28 UTC
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't be tested.
Comment 1 Daniela Plascencia 2016-12-21 16:03:17 UTC
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 "/patchtest/patchtest/patchtest", line 154, in _runner
    result = runner.run(suite)
  File "/usr/lib/python2.7/unittest/runner.py", line 149, in run
    startTestRun()
  File "/patchtest/patchtest/patchtest", line 101, in startTestRun
    self.repo.merge()
  File "/patchtest/patchtest/lib/patchtestrepo.py", line 161, in merge
    'updateenv': {'PTRESOURCE':self._patch.path}})
  File "/patchtest/patchtest/lib/patchtestrepo.py", line 116, in _exec
    raise ce
CmdException
None
patchtest failed, removing patchtest branch
Comment 2 Leonardo Sandoval Gonzalez 2016-12-21 16:22:52 UTC
(In reply to comment #1)
> 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 "/patchtest/patchtest/patchtest", line 154, in _runner
>     result = runner.run(suite)
>   File "/usr/lib/python2.7/unittest/runner.py", line 149, in run
>     startTestRun()
>   File "/patchtest/patchtest/patchtest", line 101, in startTestRun
>     self.repo.merge()
>   File "/patchtest/patchtest/lib/patchtestrepo.py", line 161, in merge
>     'updateenv': {'PTRESOURCE':self._patch.path}})
>   File "/patchtest/patchtest/lib/patchtestrepo.py", line 116, in _exec
>     raise ce
> CmdException
> None
> 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.
Comment 3 Daniela Plascencia 2016-12-21 23:00:16 UTC
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