Package: src:python-go2rtc-client
Version: 0.4.0-1
Severity: serious
Tags: ftbfs forky sid
User: [email protected]
Usertags: aiohttp-3.14

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-go2rtc-client, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" 
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14  

[... snipped ...]

rest_client = <go2rtc_client.rest.Go2RtcRestClient object at 0x7f5c05f303d0>
video_codecs = ['h264', 'h265'], audio_codecs = ['opus', 'pcma']
microphone_codecs = ['pcmu']
query_string = 
'?src=camera.12mp_fluent&video_codec_filter=h264%2Ch265&audio_codec_filter=opus%2Cpcma&microphone_codec_filter=pcmu'
expected_params = {'audio_codec_filter': 'opus,pcma', 
'microphone_codec_filter': 'pcmu', 'src': 'camera.12mp_fluent', 
'video_codec_filter': 'h264,h265'}

    @pytest.mark.parametrize(
        (
            "video_codecs",
            "audio_codecs",
            "microphone_codecs",
            "query_string",
            "expected_params",
        ),
        [
            (
                ["h264"],
                None,
                None,
                "?src=camera.12mp_fluent&video_codec_filter=h264",
                {"src": "camera.12mp_fluent", "video_codec_filter": "h264"},
            ),
            (
                None,
                ["opus"],
                None,
                "?src=camera.12mp_fluent&audio_codec_filter=opus",
                {"src": "camera.12mp_fluent", "audio_codec_filter": "opus"},
            ),
            (
                None,
                None,
                ["pcmu"],
                "?src=camera.12mp_fluent&microphone_codec_filter=pcmu",
                {"src": "camera.12mp_fluent", "microphone_codec_filter": 
"pcmu"},
            ),
            (
                ["h264", "h265"],
                ["opus", "pcma"],
                ["pcmu"],
                
"?src=camera.12mp_fluent&video_codec_filter=h264%2Ch265&audio_codec_filter=opus%2Cpcma&microphone_codec_filter=pcmu",
                {
                    "src": "camera.12mp_fluent",
                    "video_codec_filter": "h264,h265",
                    "audio_codec_filter": "opus,pcma",
                    "microphone_codec_filter": "pcmu",
                },
            ),
        ],
        ids=[
            "video filter only",
            "audio filter only",
            "microphone filter only",
            "all filters",
        ],
    )
    async def test_preload_enable_with_filters(
        responses: aioresponses,
        rest_client: Go2RtcRestClient,
        video_codecs: list[str] | None,
        audio_codecs: list[str] | None,
        microphone_codecs: list[str] | None,
        query_string: str,
        expected_params: dict[str, str],
    ) -> None:
        """Test enable preload with codec filters."""
        url = f"{URL}{_PreloadClient.PATH}"
        camera = "camera.12mp_fluent"
    
        responses.put(url + query_string, status=200)
>       await rest_client.preload.enable(
            camera,
            video_codec_filter=video_codecs,
            audio_codec_filter=audio_codecs,
            microphone_codec_filter=microphone_codecs,
        )

tests/test_rest.py:347: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
go2rtc_client/exceptions.py:56: in _func
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
go2rtc_client/rest.py:184: in enable
    await self._client.request(
go2rtc_client/rest.py:62: in request
    resp = await self._session.request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<string>:3: in _request
    ???
/usr/lib/python3.13/unittest/mock.py:2332: in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:512: in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:456: in match
    response_or_exc = await matcher.build_response(
/usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response
    resp = self._build_response(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <aioresponses.core.RequestMatch object at 0x7f5c06669a90>
url = 
URL('http://localhost:1984/api/preload?audio_codec_filter=opus%252Cpcma&microphone_codec_filter=pcmu&src=camera.12mp_fluent&video_codec_filter=h264%252Ch265')
method = 'put', request_headers = {}, status = 200, body = b''
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>, reason = 'OK'

    def _build_response(self, url: 'Union[URL, str]',
                        method: str = hdrs.METH_GET,
                        request_headers: Optional[Dict] = None,
                        status: int = 200,
                        body: Union[str, bytes] = '',
                        content_type: str = 'application/json',
                        payload: Optional[Dict] = None,
                        headers: Optional[Dict] = None,
                        response_class: Optional[Type[ClientResponse]] = None,
                        reason: Optional[str] = None) -> ClientResponse:
        if response_class is None:
            response_class = ClientResponse
        if payload is not None:
            body = json.dumps(payload)
        if not isinstance(body, bytes):
            body = str.encode(body)
        if request_headers is None:
            request_headers = {}
        loop = Mock()
        loop.get_debug = Mock()
        loop.get_debug.return_value = True
        kwargs = {}  # type: Dict[str, Any]
        kwargs['request_info'] = RequestInfo(
            url=url,
            method=method,
            headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
        )
        kwargs['writer'] = None
        kwargs['continue100'] = None
        kwargs['timer'] = TimerNoop()
        kwargs['traces'] = []
        kwargs['loop'] = loop
        kwargs['session'] = None
    
        # We need to initialize headers manually
        _headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
        if headers:
            _headers.update(headers)
        raw_headers = self._build_raw_headers(_headers)
>       resp = response_class(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       TypeError: ClientResponse.__init__() missing 1 required keyword-only 
argument: 'stream_writer'

/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
_____________________________ test_preload_disable _____________________________

responses = <aioresponses.core.aioresponses object at 0x7f5c0648a4d0>
rest_client = <go2rtc_client.rest.Go2RtcRestClient object at 0x7f5c05e5e9d0>

    async def test_preload_disable(
        responses: aioresponses,
        rest_client: Go2RtcRestClient,
    ) -> None:
        """Test disable preload."""
        url = f"{URL}{_PreloadClient.PATH}"
        camera = "camera.12mp_fluent"
        params = {"src": camera}
        responses.delete(url + f"?src={camera}", status=200)
>       await rest_client.preload.disable(camera)

tests/test_rest.py:368: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
go2rtc_client/exceptions.py:56: in _func
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
go2rtc_client/rest.py:193: in disable
    await self._client.request(
go2rtc_client/rest.py:62: in request
    resp = await self._session.request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<string>:3: in _request
    ???
/usr/lib/python3.13/unittest/mock.py:2332: in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:512: in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/aioresponses/core.py:456: in match
    response_or_exc = await matcher.build_response(
/usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response
    resp = self._build_response(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <aioresponses.core.RequestMatch object at 0x7f5c0666bb90>
url = URL('http://localhost:1984/api/preload?src=camera.12mp_fluent')
method = 'delete', request_headers = {}, status = 200, body = b''
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>, reason = 'OK'

    def _build_response(self, url: 'Union[URL, str]',
                        method: str = hdrs.METH_GET,
                        request_headers: Optional[Dict] = None,
                        status: int = 200,
                        body: Union[str, bytes] = '',
                        content_type: str = 'application/json',
                        payload: Optional[Dict] = None,
                        headers: Optional[Dict] = None,
                        response_class: Optional[Type[ClientResponse]] = None,
                        reason: Optional[str] = None) -> ClientResponse:
        if response_class is None:
            response_class = ClientResponse
        if payload is not None:
            body = json.dumps(payload)
        if not isinstance(body, bytes):
            body = str.encode(body)
        if request_headers is None:
            request_headers = {}
        loop = Mock()
        loop.get_debug = Mock()
        loop.get_debug.return_value = True
        kwargs = {}  # type: Dict[str, Any]
        kwargs['request_info'] = RequestInfo(
            url=url,
            method=method,
            headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
        )
        kwargs['writer'] = None
        kwargs['continue100'] = None
        kwargs['timer'] = TimerNoop()
        kwargs['traces'] = []
        kwargs['loop'] = loop
        kwargs['session'] = None
    
        # We need to initialize headers manually
        _headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
        if headers:
            _headers.update(headers)
        raw_headers = self._build_raw_headers(_headers)
>       resp = response_class(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       TypeError: ClientResponse.__init__() missing 1 required keyword-only 
argument: 'stream_writer'

/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
--------------------------- snapshot report summary ----------------------------
9 snapshots unused.

Re-run pytest with --snapshot-update to delete unused snapshots.
=========================== short test summary info ============================
FAILED tests/test_rest.py::test_application_info - TypeError: ClientResponse....
FAILED tests/test_rest.py::test_streams_get[one stream] - TypeError: ClientRe...
FAILED tests/test_rest.py::test_streams_get[empty] - TypeError: ClientRespons...
FAILED tests/test_rest.py::test_streams_get[without producers] - TypeError: C...
FAILED tests/test_rest.py::test_streams_add_list - TypeError: ClientResponse....
FAILED tests/test_rest.py::test_streams_add_str - TypeError: ClientResponse._...
FAILED tests/test_rest.py::test_version_supported[0.0.0-expected_result0] - T...
FAILED tests/test_rest.py::test_version_supported[1.9.5-expected_result1] - T...
FAILED tests/test_rest.py::test_version_supported[1.9.6-expected_result2] - T...
FAILED tests/test_rest.py::test_version_supported[1.9.13-expected_result3] - ...
FAILED tests/test_rest.py::test_version_supported[1.9.14-expected_result4] - ...
FAILED tests/test_rest.py::test_version_supported[2.0.0-expected_result5] - T...
FAILED tests/test_rest.py::test_version_supported[BLAH-expected_result6] - Ty...
FAILED tests/test_rest.py::test_webrtc_offer - TypeError: ClientResponse.__in...
FAILED tests/test_rest.py::test_get_jpeg_snapshot[No height and no width] - T...
FAILED tests/test_rest.py::test_get_jpeg_snapshot[Only height] - TypeError: C...
FAILED tests/test_rest.py::test_get_jpeg_snapshot[Only width] - TypeError: Cl...
FAILED tests/test_rest.py::test_get_jpeg_snapshot[Height and width] - TypeErr...
FAILED tests/test_rest.py::test_schemes - TypeError: ClientResponse.__init__(...
FAILED tests/test_rest.py::test_preload_list[one stream preloaded] - TypeErro...
FAILED tests/test_rest.py::test_preload_list[no stream preloaded] - TypeError...
FAILED tests/test_rest.py::test_preload_enable_no_filters - TypeError: Client...
FAILED tests/test_rest.py::test_preload_enable_with_filters[video filter only]
FAILED tests/test_rest.py::test_preload_enable_with_filters[audio filter only]
FAILED tests/test_rest.py::test_preload_enable_with_filters[microphone filter 
only]
FAILED tests/test_rest.py::test_preload_enable_with_filters[all filters] - Ty...
FAILED tests/test_rest.py::test_preload_disable - TypeError: ClientResponse._...
======================== 27 failed, 19 passed in 2.27s =========================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to