reassign 1008355 python-ldap
retitle 1008355 python-ldap: _slaptest.py fails with "slapd exited before 
opening port", breaking other package builds
notfound 3.0.0-1
found 1008355 3.2.0-4
thanks

Hi,

On Sat, Mar 26, 2022 at 09:35:43PM +0100, Lucas Nussbaum wrote:
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> Relevant part (hopefully):
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > dh_auto_test -- --system=custom --test-args="PYTHONPATH=. {interpreter} 
> > /usr/bin/django-admin test --settings tests.settings"
> > I: pybuild pybuild:298: cp -r /<<PKGBUILDDIR>>/tests 
> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-auth-ldap/build
> > I: pybuild base:237: PYTHONPATH=. python3.10 /usr/bin/django-admin test 
> > --settings tests.settings
> > Creating test database for alias 'default'...
> > System check identified no issues (0 silenced).
> > E
> > ======================================================================
> > ERROR: setUpClass (tests.tests.LDAPTest)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/tests/tests.py", line 140, in setUpClass
> >     cls.server.start()
> >   File "/usr/lib/python3/dist-packages/slapdtest/_slapdtest.py", line 445, 
> > in start
> >     self._start_slapd()
> >   File "/usr/lib/python3/dist-packages/slapdtest/_slapdtest.py", line 420, 
> > in _start_slapd
> >     raise RuntimeError("slapd exited before opening port")
> > RuntimeError: slapd exited before opening port
> > 
> > ----------------------------------------------------------------------
> > Ran 0 tests in 1.517s

This error comes from python3-ldap's slaptest:

|$  python3
|Python 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0] on linux
|Type "help", "copyright", "credits" or "license" for more information.
|>>> import slapdtest
|>>> server = slapdtest.SlapdObject()
|>>> server.start()
|Traceback (most recent call last):
|  File "<stdin>", line 1, in <module>
|  File "/usr/lib/python3/dist-packages/slapdtest/_slapdtest.py", line 445, in 
start
|    self._start_slapd()
|  File "/usr/lib/python3/dist-packages/slapdtest/_slapdtest.py", line 420, in 
_start_slapd
|    raise RuntimeError("slapd exited before opening port")
|RuntimeError: slapd exited before opening port
|>>> 

Not sure what the actual problem is, but one problem is that
python3-ldap is not exercising the upstream test suite; if I install
slapd and ldap-utils and run "pybuild --test" in python-ldap-3.2.0's
source directory, I also end up with erorrs like:

|======================================================================
|ERROR: setUpClass (Tests.t_ldap_sasl.TestSasl)
|----------------------------------------------------------------------
|Traceback (most recent call last):
|  File "/build/python-ldap-3.2.0/Tests/t_ldap_sasl.py", line 50, in setUpClass
|    super(TestSasl, cls).setUpClass()
|  File "/build/python-ldap-3.2.0/Lib/slapdtest/_slapdtest.py", line 594, in 
setUpClass
|    cls.server.start()
|  File "/build/python-ldap-3.2.0/Lib/slapdtest/_slapdtest.py", line 445, in 
start
|    self._start_slapd()
|  File "/build/python-ldap-3.2.0/Lib/slapdtest/_slapdtest.py", line 420, in 
_start_slapd
|    raise RuntimeError("slapd exited before opening port")
|RuntimeError: slapd exited before opening port
|
|----------------------------------------------------------------------
|Ran 104 tests in 22.132s
|
|FAILED (errors=11, skipped=6, expected failures=3)
|Test failed: <unittest.runner.TextTestResult run=104 errors=11 failures=0>
|error: Test failed: <unittest.runner.TextTestResult run=104 errors=11 
failures=0>
|E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: 
python3.10 setup.py test 



Michael

Reply via email to