Package: src:python-nextdns Version: 3.3.0-2 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-nextdns, 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 I: pybuild base:385: python3.14 setup.py clean /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. [... snipped ...] with aioresponses() as session_mock: session_mock.get(ENDPOINTS[ATTR_PROFILES], payload=profiles_data) session_mock.patch( ENDPOINTS[ATTR_LOGS].format(profile_id=PROFILE_ID), status=HTTPStatus.NO_CONTENT.value, ) > nextdns = await NextDns.create(session, "fakeapikey") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_init.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nextdns/__init__.py:95: in create await instance.initialize() nextdns/__init__.py:102: in initialize self._profiles = list(self._parse_profiles(await self.get_profiles())) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:193: in async_wrapped return await copy(fn, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:112: in __call__ do = await self.iter(retry_state=retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:157: in iter result = await action(retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/_utils.py:111: in inner return call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/__init__.py:393: in <lambda> self._add_action_func(lambda rs: rs.outcome.result()) ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/concurrent/futures/_base.py:449: in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:116: in __call__ result = await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ nextdns/__init__.py:114: in get_profiles return cast(list[dict[str, str]], await self._http_request("get", url)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nextdns/__init__.py:453: in _http_request resp = await self._session.request(method, url, headers=self._headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <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 0x7eff36a77350> url = URL('https://api.nextdns.io/profiles'), method = 'get' request_headers = {'Content-Type': 'application/json', 'X-Api-Key': 'fakeapikey'} status = 200 body = b'{"data": [{"id": "fakepr", "fingerprint": "fakeprofile12", "name": "Fake Profile"}]}' content_type = 'application/json' payload = {'data': [{'fingerprint': 'fakeprofile12', 'id': 'fakepr', 'name': 'Fake Profile'}]} 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_set_logs_location_with_invalid_value ___________________ profiles_data = {'data': [{'fingerprint': 'fakeprofile12', 'id': 'fakepr', 'name': 'Fake Profile'}]} @pytest.mark.asyncio async def test_set_logs_location_with_invalid_value( profiles_data: dict[str, Any], ) -> None: """Test set_logs_location() method with invalid value.""" session = aiohttp.ClientSession() with aioresponses() as session_mock: session_mock.get(ENDPOINTS[ATTR_PROFILES], payload=profiles_data) > nextdns = await NextDns.create(session, "fakeapikey") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_init.py:496: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nextdns/__init__.py:95: in create await instance.initialize() nextdns/__init__.py:102: in initialize self._profiles = list(self._parse_profiles(await self.get_profiles())) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:193: in async_wrapped return await copy(fn, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:112: in __call__ do = await self.iter(retry_state=retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.pyUnclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36b00b90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36aa91d0> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36aab890> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36aab750> :157: in iter result = await action(retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/_utils.py:111: in inner return call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/tenacity/__init__.py:393: in <lambda> self._add_action_func(lambda rs: rs.outcome.result()) ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/concurrent/futures/_base.py:449: in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3/dist-packages/tenacity/asyncio/__init__.py:116: in __call__ result = await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ nextdns/__init__.py:114: in get_profiles return cast(list[dict[str, str]], await self._http_request("get", url)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nextdns/__init__.py:453: in _http_request resp = await self._session.request(method, url, headers=self._headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <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 0x7eff36a77890> url = URL('https://api.nextdns.io/profiles'), method = 'get' request_headers = {'Content-Type': 'application/json', 'X-Api-Key': 'fakeapikey'} status = 200 body = b'{"data": [{"id": "fakepr", "fingerprint": "fakeprofile12", "name": "Fake Profile"}]}' content_type = 'application/json' payload = {'data': [{'fingerprint': 'fakeprofile12', 'id': 'fakepr', 'name': 'Fake Profile'}]} 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 ---------------------------- 6 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_init.py::test_valid_data - TypeError: ClientResponse.__init... FAILED tests/test_init.py::test_profile_id_not_found - TypeError: ClientRespo... FAILED tests/test_init.py::test_profile_name_not_found - TypeError: ClientRes... FAILED tests/test_init.py::test_clear_logs - TypeError: ClientResponse.__init... FAILED tests/test_init.py::test_get_logs - TypeError: ClientResponse.__init__... FAILED tests/test_init.py::test_set_setting[block_page-https://api.nextdns.io/profiles/fakepr/settings/blockPage] FAILED tests/test_init.py::test_set_setting[block_tinder-https://api.nextdns.io/profiles/fakepr/parentalControl/services/tinder] FAILED tests/test_init.py::test_set_setting[block_piracy-https://api.nextdns.io/profiles/fakepr/parentalControl/categories/piracy] FAILED tests/test_init.py::test_set_parental_contrl_service - TypeError: Clie... FAILED tests/test_init.py::test_set_parental_contrl_category - TypeError: Cli... FAILED tests/test_init.py::test_set_not_supported_setting - TypeError: Client... FAILED tests/test_init.py::test_invalid_api_key - TypeError: ClientResponse._... FAILED tests/test_init.py::test_retry_success[TimeoutError] - TypeError: Clie... FAILED tests/test_init.py::test_retry_success[exception1] - TypeError: Client... FAILED tests/test_init.py::test_retry_after_524 - TypeError: ClientResponse._... FAILED tests/test_init.py::test_too_many_requests - TypeError: ClientResponse... FAILED tests/test_init.py::test_error_with_html - TypeError: ClientResponse._... FAILED tests/test_init.py::test_set_logs_retention - TypeError: ClientRespons... FAILED tests/test_init.py::test_set_logs_retention_with_invalid_value - TypeE... FAILED tests/test_init.py::test_set_logs_location - TypeError: ClientResponse... FAILED tests/test_init.py::test_set_logs_location_with_invalid_value - TypeEr... ========================= 21 failed, 2 passed in 1.39s ========================= Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36aa9a90> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7eff36aa9090> E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nextdns/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:5: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

