Bug 1120329 - python-sh fails tests on 1-core VM
Summary: python-sh fails tests on 1-core VM
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other openSUSE Factory
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Alberto Planas Dominguez
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-27 10:03 UTC by Bernhard Wiedemann
Modified: 2019-05-27 12:46 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2018-12-27 10:03:15 UTC
While working on reproducible builds for openSUSE, I found that
python-sh fails a test on 1-core-VMs

Steps To Reproduce
# maybe set build-memory=2048 in ~/.oscrc
osc checkout openSUSE:Factory/python-sh && cd $_
osc build --vm-type=kvm -j1 --noservice


Actual Result:
======================================================================
ERROR: test_general_signal (__main__.FunctionalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 1416, in test_general_signal
    p = python(py.name, _out=agg, _tee=True)
  File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 1427, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 774, in __init__
    self.wait()
  File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 815, in handle_comma
nd_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/python3.6 /tmp/tmpf1e_0i_0

  STDOUT:
0
1
2
3


  STDERR:
Traceback (most recent call last):
  File "/tmp/tmpf1e_0i_0", line 14, in <module>
    print(i)
  File "/tmp/tmpf1e_0i_0", line 8, in sig_handler
    print(10)
RuntimeError: reentrant call inside <_io.BufferedWriter name='<stdout>'>


----------------------------------------------------------------------
Ran 156 tests in 46.164s

FAILED (errors=1, skipped=2)


Filing here because last upstream activity was 18 months ago.
Comment 1 Alberto Planas Dominguez 2019-05-27 12:46:11 UTC
SR#705674 can fix this