Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941903 - dev-python/twisted-24.7.0 - fails 6 Exception tests in twisted.conch.test.test_manhole tests (test_ExceptionWithCustomExcepthook, test_Exception)
Summary: dev-python/twisted-24.7.0 - fails 6 Exception tests in twisted.conch.test.tes...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-10-20 21:49 UTC by ernsteiswuerfel
Modified: 2024-10-23 20:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (ppc, 24.7.0) (twisted-24.7.0:20241020-212808.log,8.01 KB, text/plain)
2024-10-20 21:49 UTC, ernsteiswuerfel
Details
emerge --info (file_941903.txt,6.00 KB, text/plain)
2024-10-20 21:50 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 24.7.0) (twisted-24.7.0:20241023-192806.log.xz,93.75 KB, application/x-xz)
2024-10-23 20:00 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-10-20 21:49:57 UTC
Created attachment 906473 [details]
build.log (ppc, 24.7.0)

[...]
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:105: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  b"3des-cbc": (algorithms.TripleDES, 24, modes.CBC),
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:106: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0.
  b"blowfish-cbc": (algorithms.Blowfish, 16, modes.CBC),
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:110: CryptographyDeprecationWarning: CAST5 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.CAST5 and will be removed from this module in 45.0.0.
  b"cast128-cbc": (algorithms.CAST5, 16, modes.CBC),
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:114: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  b"3des-ctr": (algorithms.TripleDES, 24, modes.CTR),
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:115: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0.
  b"blowfish-ctr": (algorithms.Blowfish, 16, modes.CTR),
/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:116: CryptographyDeprecationWarning: CAST5 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.CAST5 and will be removed from this module in 45.0.0.
  b"cast128-ctr": (algorithms.CAST5, 16, modes.CTR),
libEGL warning: MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

LLVM ERROR: Relocation type not implemented yet!
/var/tmp/portage/dev-python/twisted-24.7.0/temp/environment: line 3977:    90 Aborted                 "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" twisted
 * ERROR: dev-python/twisted-24.7.0::gentoo failed (test phase):
Comment 1 ernsteiswuerfel archtester 2024-10-20 21:50:33 UTC
Created attachment 906474 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-20 23:14:48 UTC
This is a clang / llvm bug. Can you report it upstream if you can hit it with Clang 19?

But first, you will need to try extract whatever command failed and ideally preprocessed sources...
Comment 3 ernsteiswuerfel archtester 2024-10-21 00:58:26 UTC
Interesting thing is I didn't even used llvm/clang to build, nor do I know where it would be involved in this python network module testing.

On a 2nd look the
"LLVM ERROR: Relocation type not implemented yet!" might be connected to the message above
"libEGL warning: MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)". But zink is masked on ppc mesa and I don't know what this might have to do with these tests either.

Anyhow, I'll take a look at whether updating to llvm-19 changes something here.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-21 01:01:48 UTC
Yeah, it must be from Mesa, but I wonder why Mesa is even involvde here.. does Twisted even have GUI tests?
Comment 5 ernsteiswuerfel archtester 2024-10-23 19:54:07 UTC
Two insights:

1.) Whether twisted has GUI tests or not it does run tests on it's own display:
[...]
>>> Test phase: dev-python/twisted-24.7.0
 * Starting Xvfb ...
 * Xvfb started on DISPLAY=:2
 * python3_12: running distutils-r1_run_phase python_test

2.) I had 'llvm' flag unmasked via use.mask, so mesa was built with +llvm (which is masked on ppc32). In turn this must have lead to the "LLVM ERROR: Relocation type not implemented yet!" I was getting here. I started scratching my head as this LLVM ERROR suddendly turned up in other testsuits (e.g. pillow)... Now as I deleted the llvm unmasking this LLVM error is gone and I get the regular twisted test failures.

Updating bug accordingly...
Comment 6 ernsteiswuerfel archtester 2024-10-23 20:00:04 UTC
Created attachment 906607 [details]
build.log.xz (ppc, 24.7.0)

[...]
twisted.web.test.test_tap.ServiceTests.test_HTTPSFailureOnMissingSSL
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/test/test_manhole.py", line 237, in finished
    self._assertBuffer(
  File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/test/test_recvline.py", line 476, in _assertBuffer
    self.assertEqual(receivedLines, expectedLines)
  File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/trial/_synctest.py", line 444, in assertEqual
    super().assertEqual(first, second, msg)
  File "/usr/lib/python3.12/unittest/case.py", line 885, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.12/unittest/case.py", line 1091, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/usr/lib/python3.12/unittest/case.py", line 1073, in assertSequenceEqual
    self.fail(msg)
twisted.trial.unittest.FailTest: Lists differ: [b">>[32 chars]", b'Exception: foo bar baz', b'>>> done', b''[91 chars] b''] != [b">>[32 chars]", b'Traceback (most recent call last):', b'  [164 chars] b'']

First differing element 1:
b'Exception: foo bar baz'
b'Traceback (most recent call last):'

  [b">>> raise Exception('foo bar baz')",
+  b'Traceback (most recent call last):',
+  b'  File "<console>", line 1, in <module>',
   b'Exception: foo bar baz',
   b'>>> done',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
   b'',
-  b'',
-  b'',
   b'']

twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_ExceptionWithCustomExcepthook
twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_ExceptionWithCustomExcepthook
twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_Exception
twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_ExceptionWithCustomExcepthook
-------------------------------------------------------------------------------
Ran 11452 tests in 59.354s

FAILED (skips=502, failures=6, successes=10944)
Comment 7 ernsteiswuerfel archtester 2024-10-23 20:07:25 UTC
twisted.conch.test.test_manhole
  ManholeLoopbackSSHTests
    test_ExceptionWithCustomExcepthook ...                               [FAIL]
twisted.conch.test.test_manhole
  ManholeLoopbackTelnetTests
    test_Exception ...                                                   [FAIL]
twisted.conch.test.test_manhole
  ManholeLoopbackTelnetTests
    test_ExceptionWithCustomExcepthook ...                               [FAIL]
  ManholeLoopbackSSHTests
    test_Exception ...                                                   [FAIL]
twisted.conch.test.test_manhole
  ManholeLoopbackStdioTests
    test_Exception ...                                                   [FAIL]
twisted.conch.test.test_manhole
  ManholeLoopbackStdioTests
    test_ExceptionWithCustomExcepthook ...                               [FAIL]