Test fails in 32 bits environment

Bug #1728734 reported by Thomas Goirand on 2017-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.concurrency
Low
Unassigned

Bug Description

Hi,

Under 32 bits x86, aka i386 arch in Debian/Ubuntu (ie, not in x86_64), the unit test suite of oslo.concurrency fails as per what's below. It'd be nice to get this fixed, as I'd prefer not to have to blacklist these tests just to get rebuild of the oslo.concurrency Debian package pass i386 rebuilds.

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_address_space
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_address_space
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 814, in test_address_space
    self.check_limit(prlimit, 'RLIMIT_AS', prlimit.address_space)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1073741824, 1073741824)' != '(1073741824L, 1073741824L)'

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_core_size
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_core_size
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 819, in test_core_size
    self.check_limit(prlimit, 'RLIMIT_CORE', prlimit.core_file_size)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1024, 1024)' != '(1024L, 1024L)'

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_cpu_time
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_cpu_time
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 824, in test_cpu_time
    self.check_limit(prlimit, 'RLIMIT_CPU', prlimit.cpu_time)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1024, 1024)' != '(1024L, 1024L)'

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_data_size
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_data_size
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 829, in test_data_size
    self.check_limit(prlimit, 'RLIMIT_DATA', max_memory)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1073741824, 1073741824)' != '(1073741824L, 1073741824L)'

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_file_size
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_file_size
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 834, in test_file_size
    self.check_limit(prlimit, 'RLIMIT_FSIZE', prlimit.file_size)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1024, 1024)' != '(1024L, 1024L)'

======================================================================
FAIL: oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_resident_set_size
oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_resident_set_size
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_concurrency/tests/unit/test_processutils.py", line 844, in test_resident_set_size
    self.check_limit(prlimit, 'RLIMIT_RSS', max_memory)
  File "oslo_concurrency/tests/unit/test_processutils.py", line 810, in check_limit
    self.assertEqual(str(expected), stdout.rstrip())
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '(1073741824, 1073741824)' != '(1073741824L, 1073741824L)'

Ben Nemec (bnemec) on 2018-04-09
Changed in oslo.concurrency:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.