Source: matrix-synapse
Version: 1.146.0-3
Severity: serious

matrix-synapse's autopkgtests fail in unstable:

[ERROR]
Traceback (most recent call last):
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
128, in new
    return code(orig, *args, **kwargs)
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
222, in setUp
    return orig()
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
397, in setUp
    self.hs = self.make_homeserver(self.reactor, self.clock)
  File 
"/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/handlers/test_saml.py", 
line 123, in make_homeserver
    hs = self.setup_test_homeserver()
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
671, in setup_test_homeserver
    config_obj = make_homeserver_config_obj(config)
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
178, in make_homeserver_config_obj
    config_obj = _parse_config_dict(json.dumps(config, sort_keys=True))
  File "/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py", line 
163, in _parse_config_dict
    config_obj.parse_config_dict(json.loads(config), "", "")
  File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line 929, in 
parse_config_dict
    self.invoke_all(
  File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line 448, in 
invoke_all
    res[config_class.section] = getattr(config, func_name)(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/synapse/config/saml2.py", line 85, in 
read_config
    check_requirements("saml2")
  File "/usr/lib/python3/dist-packages/synapse/util/check_dependencies.py", 
line 371, in check_requirements
    raise DependencyException(deps_unfulfilled)
synapse.util.check_dependencies.DependencyException: ['pytz']

tests.handlers.test_saml.SamlHandlerTestCase.test_attribute_requirements
tests.handlers.test_saml.SamlHandlerTestCase.test_attribute_requirements_one_of
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_redirect
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_existing_user
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_invalid_localpart
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_user
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_user_retries

This seems to be because python3-pysaml2 no longer depends on pytz 
(correctly, from its point of view), but matrix-synapse's saml2 extra 
specifies a higher minimum version of pytz than saml2 used to need.  I 
think the best thing to do would be to add a direct build-dependency on 
python3-pytz to matrix-synapse until such time as upstream drops that 
requirement from the saml2 extra.

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

Reply via email to