Package: src:aioghost Version: 0.4.16-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:aioghost, 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 ...] /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 0x7fcb0e2ced50> url = URL('https://test.ghost.io/ghost/api/admin/webhooks/'), method = 'post' request_headers = {'Accept-Version': 'v5.0', 'Authorization': 'Ghost eyJhbGciOiJIUzI1NiIsImtpZCI6IjY1MGI3YTlmOGU4YzEyMzQ1Njc4OTBhYiIsInR...6MTc4MDk1NjY0NiwiYXVkIjoiL2FkbWluLyJ9.YM_vzS0AgVSsK6Lu8OH5dlIc09eAHDz2OOnbKQ3Kv6Q', 'Content-Type': 'application/json'} status = 422, body = b'{"errors": [{"message": "Invalid target URL"}]}' content_type = 'application/json' payload = {'errors': [{'message': 'Invalid target URL'}]}, headers = None response_class = <class 'aiohttp.client_reqrep.ClientResponse'> reason = 'Unprocessable Content' 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_error_500 ________________________________ api = <aioghost.client.GhostAdminAPI object at 0x7fcb0deb1b70> @pytest.mark.asyncio async def test_error_500(api: GhostAdminAPI): """Test 500 server error.""" with aioresponses() as m: m.get(f"{API_URL}/ghost/api/admin/site/", status=500, body="Internal error") async with api: with pytest.raises(GhostError, match="API error 500"): > await api.get_site() tests/test_client.py:545: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioghost/client.py:187: in get_site data = await self._get("/ghost/api/admin/site/") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioghost/client.py:165: in _get return await self._request("GET", endpoint, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioghost/client.py:139: in _request async with session.request( /usr/lib/python3/dist-packages/aiohttp/client.py:1683: in __aenter__ self._resp: _RetType_co = await self._coro ^^^^^^^^^^^^^^^^ <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 0x7fcb0e2cf1d0> url = URL('https://test.ghost.io/ghost/api/admin/site/'), method = 'get' request_headers = {'Accept-Version': 'v5.0', 'Authorization': 'Ghost eyJhbGciOiJIUzI1NiIsImtpZCI6IjY1MGI3YTlmOGU4YzEyMzQ1Njc4OTBhYiIsInR...VCJ9.eyJpYXQiOjE3ODA5NTYzNDYsImV4cCI6MTc4MDk1NjY0NiwiYXVkIjoiL2FkbWluLyJ9.YM_vzS0AgVSsK6Lu8OH5dlIc09eAHDz2OOnbKQ3Kv6Q'} status = 500, body = b'Internal error', content_type = 'application/json' payload = None, headers = None response_class = <class 'aiohttp.client_reqrep.ClientResponse'> reason = 'Internal Server Error' 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_context_manager _____________________________ api = <aioghost.client.GhostAdminAPI object at 0x7fcb0ded77e0> @pytest.mark.asyncio async def test_context_manager(api: GhostAdminAPI): """Test async context manager.""" with aioresponses() as m: m.get(f"{API_URL}/ghost/api/admin/site/", payload={"site": {"title": "Test"}}) async with api: > await api.get_site() tests/test_client.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioghost/client.py:187: in get_site data = await self._get("/ghost/api/admin/site/") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioghost/client.py:165: in _get return await self._request("GET", endpoint, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioghost/client.py:139: in _request async with session.request( /usr/lib/python3/dist-packages/aiohttp/client.py:1683: in __aenter__ self._resp: _RetType_co = await self._coro ^^^^^^^^^^^^^^^^ <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 0x7fcb0e2cf890> url = URL('https://test.ghost.io/ghost/api/admin/site/'), method = 'get' request_headers = {'Accept-Version': 'v5.0', 'Authorization': 'Ghost eyJhbGciOiJIUzI1NiIsImtpZCI6IjY1MGI3YTlmOGU4YzEyMzQ1Njc4OTBhYiIsInR...VCJ9.eyJpYXQiOjE3ODA5NTYzNDYsImV4cCI6MTc4MDk1NjY0NiwiYXVkIjoiL2FkbWluLyJ9.YM_vzS0AgVSsK6Lu8OH5dlIc09eAHDz2OOnbKQ3Kv6Q'} status = 200, body = b'{"site": {"title": "Test"}}' content_type = 'application/json', payload = {'site': {'title': 'Test'}} 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 =========================== short test summary info ============================ FAILED tests/test_client.py::test_get_site - TypeError: ClientResponse.__init... FAILED tests/test_client.py::test_validate_credentials_success - TypeError: C... FAILED tests/test_client.py::test_validate_credentials_failure - TypeError: C... FAILED tests/test_client.py::test_get_members_count - TypeError: ClientRespon... FAILED tests/test_client.py::test_get_members_count_empty_history - TypeError... FAILED tests/test_client.py::test_get_mrr - TypeError: ClientResponse.__init_... FAILED tests/test_client.py::test_get_mrr_empty - TypeError: ClientResponse._... FAILED tests/test_client.py::test_get_arr - TypeError: ClientResponse.__init_... FAILED tests/test_client.py::test_get_arr_empty - TypeError: ClientResponse._... FAILED tests/test_client.py::test_get_posts_count - TypeError: ClientResponse... FAILED tests/test_client.py::test_get_latest_post - TypeError: ClientResponse... FAILED tests/test_client.py::test_get_latest_post_none - TypeError: ClientRes... FAILED tests/test_client.py::test_get_newsletters - TypeError: ClientResponse... FAILED tests/test_client.py::test_get_latest_email - TypeError: ClientRespons... FAILED tests/test_client.py::test_get_latest_email_no_clicks - TypeError: Cli... FAILED tests/test_client.py::test_get_latest_email_zero_sent - TypeError: Cli... FAILED tests/test_client.py::test_get_latest_email_none - TypeError: ClientRe... FAILED tests/test_client.py::test_get_comments_count - TypeError: ClientRespo... FAILED tests/test_client.py::test_get_tiers - TypeError: ClientResponse.__ini... FAILED tests/test_client.py::test_get_activitypub_stats - assert 0 == 250 FAILED tests/test_client.py::test_create_webhook - TypeError: ClientResponse.... FAILED tests/test_client.py::test_delete_webhook - TypeError: ClientResponse.... FAILED tests/test_client.py::test_error_401 - TypeError: ClientResponse.__ini... FAILED tests/test_client.py::test_error_404 - TypeError: ClientResponse.__ini... FAILED tests/test_client.py::test_error_422 - TypeError: ClientResponse.__ini... FAILED tests/test_client.py::test_error_500 - TypeError: ClientResponse.__ini... FAILED tests/test_client.py::test_context_manager - TypeError: ClientResponse... ========================= 27 failed, 9 passed in 1.51s ========================= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests 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:3: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

