Description
Synapse's testsuite fails with Twisted 25.5.0. I bisected the root cause to commit twisted/twisted@e8090c4. However, the current form of the failures starts appearing with commit twisted/twisted@2dc339a.
Complete error.log
Steps to reproduce
- Install Twisted 25.5.0
- run tests
- observe failures
Homeserver
homeserver
Synapse Version
1.131.0
Installation Method
Other (please mention below)
Database
sqlite
Workers
Single process
Platform
Gentoo
Configuration
No response
Relevant log output
[snip ...]
tests.test_server.JsonResourceTests.test_no_handler
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/test_server.py", line 331, in test_good_response
channel = make_request(
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/server.py", line 432, in make_request
req = request(channel, site)
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0-python3_13/install/usr/lib/python3.13/site-packages/synapse/http/site.py", line 91, in __init__
super().__init__(channel, *args, **kw)
File "/usr/lib/python3.13/site-packages/twisted/web/server.py", line 107, in __init__
parsePOSTFormSubmissionBool = channel.site._parsePOSTFormSubmission
builtins.AttributeError: 'FakeSite' object has no attribute '_parsePOSTFormSubmission'
tests.test_server.WrapHtmlRequestHandlerTests.test_good_response
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/test_server.py", line 394, in test_head_request
channel = make_request(
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/server.py", line 432, in make_request
req = request(channel, site)
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0-python3_13/install/usr/lib/python3.13/site-packages/synapse/http/site.py", line 91, in __init__
super().__init__(channel, *args, **kw)
File "/usr/lib/python3.13/site-packages/twisted/web/server.py", line 107, in __init__
parsePOSTFormSubmissionBool = channel.site._parsePOSTFormSubmission
builtins.AttributeError: 'FakeSite' object has no attribute '_parsePOSTFormSubmission'
tests.test_server.WrapHtmlRequestHandlerTests.test_head_request
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/test_server.py", line 351, in test_redirect_exception
channel = make_request(
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/server.py", line 432, in make_request
req = request(channel, site)
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0-python3_13/install/usr/lib/python3.13/site-packages/synapse/http/site.py", line 91, in __init__
super().__init__(channel, *args, **kw)
File "/usr/lib/python3.13/site-packages/twisted/web/server.py", line 107, in __init__
parsePOSTFormSubmissionBool = channel.site._parsePOSTFormSubmission
builtins.AttributeError: 'FakeSite' object has no attribute '_parsePOSTFormSubmission'
tests.test_server.WrapHtmlRequestHandlerTests.test_redirect_exception
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/test_server.py", line 373, in test_redirect_exception_with_cookie
channel = make_request(
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0/tests/server.py", line 432, in make_request
req = request(channel, site)
File "/var/tmp/portage/net-im/synapse-1.131.0/work/synapse-1.131.0-python3_13/install/usr/lib/python3.13/site-packages/synapse/http/site.py", line 91, in __init__
super().__init__(channel, *args, **kw)
File "/usr/lib/python3.13/site-packages/twisted/web/server.py", line 107, in __init__
parsePOSTFormSubmissionBool = channel.site._parsePOSTFormSubmission
builtins.AttributeError: 'FakeSite' object has no attribute '_parsePOSTFormSubmission'
tests.test_server.WrapHtmlRequestHandlerTests.test_redirect_exception_with_cookie
-------------------------------------------------------------------------------
Ran 4074 tests in 176.816s
FAILED (skips=309, failures=64, errors=38, successes=3664)
Anything else that would be useful to know?
Gentoo package works fine with Twisted 24.11.0, but we are skipping test_recovery test with this patch https://github.com/gentoo/gentoo/blob/dee8d327eeb6621e93cbab54bb73b141912c05d1/net-im/synapse/files/synapse-1.123.0-skip-recovery-test.patch.
Description
Synapse's testsuite fails with Twisted 25.5.0. I bisected the root cause to commit twisted/twisted@e8090c4. However, the current form of the failures starts appearing with commit twisted/twisted@2dc339a.
Complete error.log
Steps to reproduce
Homeserver
homeserver
Synapse Version
1.131.0
Installation Method
Other (please mention below)
Database
sqlite
Workers
Single process
Platform
Gentoo
Configuration
No response
Relevant log output
Anything else that would be useful to know?
Gentoo package works fine with Twisted 24.11.0, but we are skipping
test_recoverytest with this patch https://github.com/gentoo/gentoo/blob/dee8d327eeb6621e93cbab54bb73b141912c05d1/net-im/synapse/files/synapse-1.123.0-skip-recovery-test.patch.