Bugzilla – Bug 1212229
python-pytest: fails to build on ppc64el
Last modified: 2023-10-26 09:50:04 UTC
ALP PowerPC packages to build images are failing to build. In that context the following package has been found to fail to build from source: python-pytest:test The same package version builds in Factory https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/python-pytest With the following error: [ 374s] =================================== FAILURES =================================== [ 374s] ____________________ TestPDB.test_pdb_interaction_exception ____________________ [ 374s] [gw5] linux -- Python 3.10.10 /usr/bin/python3.10 [ 374s] [ 374s] self = <test_debugging.TestPDB object at 0x7fffb3deb610> [ 374s] pytester = <Pytester PosixPath('/tmp/pytest-of-abuild/pytest-1/popen-gw5/test_pdb_interaction_exception0')> [ 374s] [ 374s] def test_pdb_interaction_exception(self, pytester: Pytester) -> None: [ 374s] p1 = pytester.makepyfile( [ 374s] """ [ 374s] import pytest [ 374s] def globalfunc(): [ 374s] pass [ 374s] def test_1(): [ 374s] pytest.raises(ValueError, globalfunc) [ 374s] """ [ 374s] ) [ 374s] child = pytester.spawn_pytest("--pdb %s" % p1) [ 374s] child.expect(".*def test_1") [ 374s] child.expect(".*pytest.raises.*globalfunc") [ 374s] child.expect("Pdb") [ 374s] child.sendline("globalfunc") [ 374s] child.expect(".*function") [ 374s] child.sendeof() [ 374s] > child.expect("1 failed") [ 374s] [ 374s] /home/abuild/rpmbuild/BUILD/pytest-7.3.1/testing/test_debugging.py:316: [ 374s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 374s] /usr/lib/python3.10/site-packages/pexpect/spawnbase.py:343: in expect [ 374s] return self.expect_list(compiled_pattern_list, [ 374s] /usr/lib/python3.10/site-packages/pexpect/spawnbase.py:372: in expect_list [ 374s] return exp.expect_loop(timeout) [ 374s] /usr/lib/python3.10/site-packages/pexpect/expect.py:181: in expect_loop [ 374s] return self.timeout(e) [ 374s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 374s] [ 374s] self = <pexpect.expect.Expecter object at 0x7fffb1016500> [ 374s] err = TIMEOUT('Timeout exceeded.') [ 374s] [ 374s] def timeout(self, err=None): [ 374s] spawn = self.spawn [ 374s] [ 374s] spawn.before = spawn._before.getvalue() [ 374s] spawn.after = TIMEOUT [ 374s] index = self.searcher.timeout_index [ 374s] if index >= 0: [ 374s] spawn.match = TIMEOUT [ 374s] spawn.match_index = index [ 374s] return index [ 374s] else: [ 374s] spawn.match = None [ 374s] spawn.match_index = None [ 374s] msg = str(spawn) [ 374s] msg += '\nsearcher: %s' % self.searcher [ 374s] if err is not None: [ 374s] msg = str(err) + '\n' + msg [ 374s] [ 374s] exc = TIMEOUT(msg) [ 374s] exc.__cause__ = None # in Python 3.x we can use "raise exc from None" [ 374s] > raise exc [ 374s] E pexpect.exceptions.TIMEOUT: Timeout exceeded. [ 374s] E <pexpect.pty_spawn.spawn object at 0x7fffb1017670> [ 374s] E command: /usr/bin/python3.10 [ 374s] E args: ['/usr/bin/python3.10', '-mpytest', '--basetemp=/tmp/pytest-of-abuild/pytest-1/popen-gw5/test_pdb_interaction_exception0/temp-pexpect', '--pdb', '/tmp/pytest-of-abuild/pytest-1/popen-gw5/test_pdb_interaction_exception0/test_pdb_interaction_exception.py'] [ 374s] E buffer (last 100 chars): b' globalfunc at 0x7fff7ffe2dd0>\r\n(Pdb) ' [ 374s] E before (last 100 chars): b' globalfunc at 0x7fff7ffe2dd0>\r\n(Pdb) ' [ 374s] E after: <class 'pexpect.exceptions.TIMEOUT'> [ 374s] E match: None [ 374s] E match_index: None [ 374s] E exitstatus: None [ 374s] E flag_eof: False [ 374s] E pid: 2906 [ 374s] E child_fd: 16 [ 374s] E closed: False [ 374s] E timeout: 10.0 [ 374s] E delimiter: <class 'pexpect.exceptions.EOF'> [ 374s] E logfile: <_io.BufferedWriter name='/tmp/pytest-of-abuild/pytest-1/popen-gw5/test_pdb_interaction_exception0/spawn.out'> [ 374s] E logfile_read: None [ 374s] E logfile_send: None [ 374s] E maxread: 2000 [ 374s] E ignorecase: False [ 374s] E searchwindowsize: None [ 374s] E delaybeforesend: 0.05 [ 374s] E delayafterclose: 0.1 [ 374s] E delayafterterminate: 0.1 [ 374s] E searcher: searcher_re: [ 374s] E 0: re.compile(b'1 failed') [ 374s] [ 374s] /usr/lib/python3.10/site-packages/pexpect/expect.py:144: TIMEOUT [ 374s] =========================== short test summary info ============================ [ 374s] FAILED testing/test_debugging.py::TestPDB::test_pdb_interaction_exception - p... [ 374s] ====== 1 failed, 3341 passed, 64 skipped, 12 xfailed in 182.76s (0:03:02) ====== [ 374s] error: Bad exit status from /var/tmp/rpm-tmp.iQ4WJF (%check) [ 374s] Full log: https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-pytest:test/standard/ppc64le
Request created disabling tests that can cause timeout when running in OBS: https://build.suse.de/request/show/301081
It should be working right now.