[Bug 1848237] Re: amd64-only test running on i386
Andreas Hasenack
andreas at canonical.com
Wed Oct 16 14:01:52 UTC 2019
Heh, so do I (ticket 3822), I pinged sil2100 about it and he said he
will take a look later.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-pyeclib in Ubuntu.
https://bugs.launchpad.net/bugs/1848237
Title:
amd64-only test running on i386
Status in python-pyeclib package in Ubuntu:
New
Status in six package in Ubuntu:
Invalid
Bug description:
Some tests in d/t/control are not meant to be run on non-amd64 architectures. The test script tries to detect this and skip them:
arch = platform.machine()
if sys.argv[1].startswith('isa_') and arch == 'x86_64':
print("Skipping {} test for {} architecture".format(sys.argv[1], arch))
else:
...
In eoan, at some point during the development cycle, the VM running i386 tests is actually on an amd64 kernel:
"""
...
-name adt-eoan-i386-python-pyeclib-20191014-091043 --image adt/ubuntu-eoan-i386-server
...
Get:5 http://ftpmaster.internal/ubuntu eoan-proposed/universe Sources [127 kB]
Get:6 http://ftpmaster.internal/ubuntu eoan-proposed/main amd64 Packages [18.0 kB]
Get:7 http://ftpmaster.internal/ubuntu eoan-proposed/main i386 Packages [12.9 kB]
...
linux-generic:amd64 is already the newest version (5.3.0.18.21).
...
utopkgtest [09:11:51]: testbed running kernel: Linux 5.3.0-18-generic #19-Ubuntu SMP Tue Oct 8 20:14:06 UTC 2019
autopkgtest [09:11:51]: testbed dpkg architecture: i386
"""
In such an environment, platform.machine() will return "x86_64", and the test will be run, but fail:
autopkgtest [09:22:26]: test command7: python debian/tests/encode-decode.py isa_l_rs_vand
autopkgtest [09:22:26]: test command7: [-----------------------
Traceback (most recent call last):
File "debian/tests/encode-decode.py", line 15, in <module>
ec = ECDriver(k=3, m=3, hd=3, ec_type=sys.argv[1])
File "/usr/lib/python2.7/dist-packages/pyeclib/ec_iface.py", line 212, in __init__
validate=int(self.validate)
File "/usr/lib/python2.7/dist-packages/pyeclib/utils.py", line 73, in create_instance
instance = object_class(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pyeclib/core.py", line 61, in __init__
validate)
pyeclib.ec_iface.ECBackendInstanceNotAvailable: pyeclib_c_init ERROR: Backend instance not found. Please inspect syslog for liberasurecode error report.
init: autopkgtest [09:22:26]: test command7: -----------------------]
It's probably best to use "dpkg --architecture" for this check.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pyeclib/+bug/1848237/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list