tests fail on resource.setrlimit

Bug #1883125 reported by Matej on 2020-06-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Undecided
Unassigned

Bug Description

When running the test suite for 3.1.0 (with Python 3.8 on openSUSE/Factory) I get:

[ 506s] ======================================================================
[ 506s] ERROR: breezy.tests.blackbox.test_big_file.TestAdd.test_clone
[ 506s] ----------------------------------------------------------------------
[ 506s] Traceback (most recent call last):
[ 506s] testtools.testresult.real._StringException: Empty attachments:
[ 506s] log
[ 506s]
[ 506s] Traceback (most recent call last):
[ 506s] File "/home/abuild/rpmbuild/BUILDROOT/breezy-3.1.0-0.x86_64/usr/lib64/python3.8/site-packages/breezy/tests/blackbox/test_big_file.py", line 72, in setUp
[ 506s] resource.setrlimit(RESOURCE, (LIMIT, -1))
[ 506s] ValueError: not allowed to raise maximum limit
[ 506s]
[ 506s] ======================================================================
[ 506s] ERROR: breezy.tests.blackbox.test_big_file.TestAdd.test_allocate
[ 506s] ----------------------------------------------------------------------
[ 506s] Traceback (most recent call last):
[ 506s] testtools.testresult.real._StringException: Empty attachments:
[ 506s] log
[ 506s]
[ 506s] Traceback (most recent call last):
[ 506s] File "/home/abuild/rpmbuild/BUILDROOT/breezy-3.1.0-0.x86_64/usr/lib64/python3.8/site-packages/breezy/tests/blackbox/test_big_file.py", line 72, in setUp
[ 506s] resource.setrlimit(RESOURCE, (LIMIT, -1))
[ 506s] ValueError: not allowed to raise maximum limit
[ 506s]
[ 506s] ======================================================================
[ 506s] ERROR: breezy.tests.blackbox.test_big_file.TestAdd.test_add
[ 506s] ----------------------------------------------------------------------
[ 506s] Traceback (most recent call last):
[ 506s] testtools.testresult.real._StringException: Empty attachments:
[ 506s] log
[ 506s]
[ 506s] Traceback (most recent call last):
[ 506s] File "/home/abuild/rpmbuild/BUILDROOT/breezy-3.1.0-0.x86_64/usr/lib64/python3.8/site-packages/breezy/tests/blackbox/test_big_file.py", line 72, in setUp
[ 506s] resource.setrlimit(RESOURCE, (LIMIT, -1))
[ 506s] ValueError: not allowed to raise maximum limit
[ 506s]
[ 506s] ======================================================================
[ 506s] ERROR: breezy.tests.blackbox.test_big_file.TestAdd.test_make_file_big
[ 506s] ----------------------------------------------------------------------
[ 506s] Traceback (most recent call last):
[ 506s] testtools.testresult.real._StringException: Empty attachments:
[ 506s] log
[ 506s]
[ 506s] Traceback (most recent call last):
[ 506s] File "/home/abuild/rpmbuild/BUILDROOT/breezy-3.1.0-0.x86_64/usr/lib64/python3.8/site-packages/breezy/tests/blackbox/test_big_file.py", line 72, in setUp
[ 506s] resource.setrlimit(RESOURCE, (LIMIT, -1))
[ 506s] ValueError: not allowed to raise maximum limit
[ 506s]
[ 506s] ======================================================================
[ 506s] ERROR: breezy.tests.blackbox.test_big_file.TestAdd.test_commit
[ 506s] ----------------------------------------------------------------------
[ 506s] Traceback (most recent call last):
[ 506s] testtools.testresult.real._StringException: Empty attachments:
[ 506s] log
[ 506s]
[ 506s] Traceback (most recent call last):
[ 506s] File "/home/abuild/rpmbuild/BUILDROOT/breezy-3.1.0-0.x86_64/usr/lib64/python3.8/site-packages/breezy/tests/blackbox/test_big_file.py", line 72, in setUp
[ 506s] resource.setrlimit(RESOURCE, (LIMIT, -1))
[ 506s] ValueError: not allowed to raise maximum limit
[ 506s]
[ 506s] ----------------------------------------------------------------------
[ 506s] Ran 31492 tests in 463.100s
[ 506s]
[ 506s] FAILED (errors=5, known_failure_count=67)
[ 506s] 4334 tests skipped

I run the build in the limited chroot (prescribed for building openSUSE packages), so it is possible that some resources is not available.

Any ideas, what to do (aside from attaching @unittest.skip to all those tests)?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers