Package: src:python-tailscale Version: 0.8.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-tailscale, 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:171: TypeError ______________ test_http_auth_error_invalidates_oauth_token[401] _______________ status_code = 401 @pytest.mark.parametrize("status_code", [401, 403]) async def test_http_auth_error_invalidates_oauth_token(status_code: int) -> None: """Test HTTP 401/403 invalidates the OAuth token.""" with aioresponses() as mocked: mocked.post( OAUTH_URL, status=200, body='{"access_token": "short-lived-token", "expires_in": 3600}', content_type="application/json", ) mocked.get( f"{URL}/test", status=status_code, body="Access denied!", content_type="text/plain", ) async with aiohttp.ClientSession() as session: tailscale = Tailscale( tailnet="frenck", oauth_client_id="client", oauth_client_secret="notsosecret", # noqa: S106 session=session, ) with pytest.raises(TailscaleAuthenticationError): > await tailscale._request("test") tests/test_tailscale.py:1176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tailscale/tailscale.py:196: in _request await self._check_api_key() tailscale/tailscale.py:94: in _check_api_key await self._get_oauth_token_task tailscale/tailscale.py:121: in _get_oauth_token response = await self._request( tailscale/tailscale.py:205: in _request response = await self.session.request( <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 0x7f97359f9cd0> url = URL('https://api.tailscale.com/api/v2/oauth/token'), method = 'post' request_headers = {'Accept': 'application/json'}, status = 200 body = b'{"access_token": "short-lived-token", "expires_in": 3600}' 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_http_auth_error_invalidates_oauth_token[403] _______________ status_code = 403 @pytest.mark.parametrize("status_code", [401, 403]) async def test_http_auth_error_invalidates_oauth_token(status_code: int) -> None: """Test HTTP 401/403 invalidates the OAuth token.""" with aioresponses() as mocked: mocked.post( OAUTH_URL, status=200, body='{"access_token": "short-lived-token", "expires_in": 3600}', content_type="application/json", ) mocked.get( f"{URL}/test", status=status_code, body="Access denied!", content_type="text/plain", ) async with aiohttp.ClientSession() as session: tailscale = Tailscale( tailnet="frenck", oauth_client_id="client", oauth_client_secret="notsosecret", # noqa: S106 session=session, ) with pytest.raises(TailscaleAuthenticationError): > await tailscale._request("test") tests/test_tailscale.py:1176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tailscale/tailscale.py:196: in _request await self._check_api_key() tailscale/tailscale.py:94: in _check_api_key await self._get_oauth_token_task tailscale/tailscale.py:121: in _get_oauth_token response = await self._request( tailscale/tailscale.py:205: in _request response = await self.session.request( <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 0x7f97359fa090> url = URL('https://api.tailscale.com/api/v2/oauth/token'), method = 'post' request_headers = {'Accept': 'application/json'}, status = 200 body = b'{"access_token": "short-lived-token", "expires_in": 3600}' 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 ---------------------------- 34 snapshots passed. 11 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_tailscale.py::test_json_request - TypeError: ClientResponse... FAILED tests/test_tailscale.py::test_internal_session - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_post_request - TypeError: ClientResponse... FAILED tests/test_tailscale.py::test_delete_request - TypeError: ClientRespon... FAILED tests/test_tailscale.py::test_http_error404 - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_http_error401 - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_devices - TypeError: ClientResponse.__in... FAILED tests/test_tailscale.py::test_devices_snapshot - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_devices_empty_created - TypeError: Clien... FAILED tests/test_tailscale.py::test_device - TypeError: ClientResponse.__ini... FAILED tests/test_tailscale.py::test_device_snapshot - TypeError: ClientRespo... FAILED tests/test_tailscale.py::test_delete_device - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_authorize_device - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_deauthorize_device - TypeError: ClientRe... FAILED tests/test_tailscale.py::test_expire_device_key - TypeError: ClientRes... FAILED tests/test_tailscale.py::test_set_device_key_expiry - TypeError: Clien... FAILED tests/test_tailscale.py::test_rename_device - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_set_device_tags - TypeError: ClientRespo... FAILED tests/test_tailscale.py::test_device_routes - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_device_routes_snapshot - TypeError: Clie... FAILED tests/test_tailscale.py::test_set_device_routes - TypeError: ClientRes... FAILED tests/test_tailscale.py::test_set_device_ipv4_address - TypeError: Cli... FAILED tests/test_tailscale.py::test_dns_nameservers - TypeError: ClientRespo... FAILED tests/test_tailscale.py::test_dns_nameservers_snapshot - TypeError: Cl... FAILED tests/test_tailscale.py::test_set_dns_nameservers - TypeError: ClientR... FAILED tests/test_tailscale.py::test_dns_preferences - TypeError: ClientRespo... FAILED tests/test_tailscale.py::test_dns_preferences_snapshot - TypeError: Cl... FAILED tests/test_tailscale.py::test_set_dns_preferences - TypeError: ClientR... FAILED tests/test_tailscale.py::test_dns_search_paths - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_dns_search_paths_snapshot - TypeError: C... FAILED tests/test_tailscale.py::test_set_dns_search_paths - TypeError: Client... FAILED tests/test_tailscale.py::test_split_dns - TypeError: ClientResponse.__... FAILED tests/test_tailscale.py::test_set_split_dns - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_update_split_dns - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_users - TypeError: ClientResponse.__init... FAILED tests/test_tailscale.py::test_users_snapshot - TypeError: ClientRespon... FAILED tests/test_tailscale.py::test_user - TypeError: ClientResponse.__init_... FAILED tests/test_tailscale.py::test_user_snapshot - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_keys - TypeError: ClientResponse.__init_... FAILED tests/test_tailscale.py::test_keys_snapshot - TypeError: ClientRespons... FAILED tests/test_tailscale.py::test_key - TypeError: ClientResponse.__init__... FAILED tests/test_tailscale.py::test_key_snapshot - TypeError: ClientResponse... FAILED tests/test_tailscale.py::test_create_key - TypeError: ClientResponse._... FAILED tests/test_tailscale.py::test_delete_key - TypeError: ClientResponse._... FAILED tests/test_tailscale.py::test_tailnet_settings - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_tailnet_settings_snapshot - TypeError: C... FAILED tests/test_tailscale.py::test_update_tailnet_settings - TypeError: Cli... FAILED tests/test_tailscale.py::test_key_from_oauth - TypeError: ClientRespon... FAILED tests/test_tailscale.py::test_key_from_oauth_with_race_condition - Typ... FAILED tests/test_tailscale.py::test_new_key_from_oauth_on_manual_invalidation FAILED tests/test_tailscale.py::test_oauth_key_expiration - TypeError: Client... FAILED tests/test_tailscale.py::test_key_from_storage - TypeError: ClientResp... FAILED tests/test_tailscale.py::test_expired_key_from_storage - TypeError: Cl... FAILED tests/test_tailscale.py::test_bad_oauth - TypeError: ClientResponse.__... FAILED tests/test_tailscale.py::test_too_short_oauth_expiration - TypeError: ... FAILED tests/test_tailscale.py::test_http_auth_error_invalidates_oauth_token[401] FAILED tests/test_tailscale.py::test_http_auth_error_invalidates_oauth_token[403] ======================== 57 failed, 51 passed in 3.47s ========================= 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:6: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

