Package: src:mitmproxy
Version: 4.0.4-3
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
cat: debian/mitmproxy.manpages: No such file or directory
dh build-indep --with python3 --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python3.6 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_mitmproxy/build/mitmproxy
copying mitmproxy/connections.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_mitmproxy/build/mitmproxy
copying mitmproxy/websocket.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_mitmproxy/build/mitmproxy

[... snipped ...]


    def test_verification_w_confdir(self, tdata):
        self.options.update(
            ssl_insecure=False,
            ssl_verify_upstream_trusted_confdir=tdata.path(
                "mitmproxy/data/servercert/"
            ),
            ssl_verify_upstream_trusted_ca=None,
        )
>       assert self._request().status_code == 242
E       assert 502 == 242
E        +  where 502 = Response(502 Bad Gateway, text/html, 
307b).status_code
E        +    where Response(502 Bad Gateway, text/html, 307b) = 
<bound method TestHTTPSUpstreamServerVerificationWTrustedCert._request of 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5d4ab710>>()
E        +      where <bound method 
TestHTTPSUpstreamServerVerificationWTrustedCert._request of 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5d4ab710>> = 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5d4ab710>._request

test/mitmproxy/proxy/test_server.py:320: AssertionError
_ 
TestHTTPSUpstreamServerVerificationWTrustedCert.test_verification_w_pemfile 
__

self = 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5c2e5390>
tdata = <mitmproxy.utils.data.Data object at 0x7f1e5c2e58d0>

    def test_verification_w_pemfile(self, tdata):
        self.options.update(
            ssl_insecure=False,
            ssl_verify_upstream_trusted_confdir=None,
            ssl_verify_upstream_trusted_ca=tdata.path(
                "mitmproxy/data/servercert/trusted-root.pem"
            ),
        )
>       assert self._request().status_code == 242
E       assert 502 == 242
E        +  where 502 = Response(502 Bad Gateway, text/html, 
307b).status_code
E        +    where Response(502 Bad Gateway, text/html, 307b) = 
<bound method TestHTTPSUpstreamServerVerificationWTrustedCert._request of 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5c2e5390>>()
E        +      where <bound method 
TestHTTPSUpstreamServerVerificationWTrustedCert._request of 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5c2e5390>> = 
<test.mitmproxy.proxy.test_server.TestHTTPSUpstreamServerVerificationWTrustedCert
 object at 0x7f1e5c2e5390>._request

test/mitmproxy/proxy/test_server.py:330: AssertionError
=============================== warnings summary 
===============================
.pybuild/cpython3_3.6_mitmproxy/build/test/mitmproxy/tools/console/test_master.py::TestMaster::()::test_basic
  /usr/lib/python3/dist-packages/_pytest/python.py:195: RuntimeWarning: 
coroutine 'TestMaster.test_basic' was never awaited
    testfunction(**testargs)

-- Docs: http://doc.pytest.org/en/latest/warnings.html
====== 5 failed, 805 passed, 545 deselected, 1 warnings in 43.08 
seconds =======
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_mitmproxy/build; python3.6 -m pytest 
"-k-TestHARDump -k-TestScripts -k-test_mitmweb -k-test_mitmdump"
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.6 returned 
exit code 13
make: *** [debian/rules:11: build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/mitmproxy.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and 
affects,
so that this is still visible in the BTS web page for this package.

Thanks.

Reply via email to