Package: src:python-homeassistant-analytics Version: 0.9.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-homeassistant-analytics, 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 ...] status = 200 body = b'{\n "3_day_blinds": {\n "title": "3 Day Blinds",\n "description": "Connect and control your 3 Day Blinds devi...Me Z-Way.",\n "quality_scale": "",\n "iot_class": "Local Push",\n "integration_type": "integration"\n }\n}\n' 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_integration_environment[rc-https://rc.home-assistant.io/integrations.json] _ homeassistant_analytics_client = HomeassistantAnalyticsClient(session=<aiohttp.client.ClientSession object at 0x7ff5b08dce10>, request_timeout=10, api_host='analytics.home-assistant.io', _close_session=False, _etags={}) responses = <aioresponses.core.aioresponses object at 0x7ff5b086add0> environment = <Environment.RC: 'rc'> url = 'https://rc.home-assistant.io/integrations.json' @pytest.mark.parametrize( ("environment", "url"), [ (None, f"{HOMEASSISTANT_URL}/integrations.json"), (Environment.CURRENT, f"{HOMEASSISTANT_URL}/integrations.json"), (Environment.RC, "https://rc.home-assistant.io/integrations.json"), (Environment.NEXT, "https://next.home-assistant.io/integrations.json"), ], ) async def test_integration_environment( homeassistant_analytics_client: HomeassistantAnalyticsClient, responses: aioresponses, environment: Environment, url: str, ) -> None: """Test retrieving integrations from different environments.""" responses.get( url, status=200, body=load_fixture("integrations.json"), ) > assert await > homeassistant_analytics_client.get_integrations(environment) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_python_homeassistant_analytics.py:228: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_homeassistant_analytics/python_homeassistant_analytics.py:113: in get_integrations response = await self._request( python_homeassistant_analytics/python_homeassistant_analytics.py:62: in _request response = await self.session.get( <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 0x7ff5b086b150> url = URL('https://rc.home-assistant.io/integrations.json'), method = 'get' request_headers = {'Accept': 'application/json, text/plain, */*', 'User-Agent': 'PythonHomeassistantAnalytics/0.5.0'} status = 200 body = b'{\n "3_day_blinds": {\n "title": "3 Day Blinds",\n "description": "Connect and control your 3 Day Blinds devi...Me Z-Way.",\n "quality_scale": "",\n "iot_class": "Local Push",\n "integration_type": "integration"\n }\n}\n' 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_integration_environment[next-https://next.home-assistant.io/integrations.json] _ homeassistant_analytics_client = HomeassistantAnalyticsClient(session=<aiohttp.client.ClientSession object at 0x7ff5b08df390>, request_timeout=10, api_host='analytics.home-assistant.io', _close_session=False, _etags={}) responses = <aioresponses.core.aioresponses object at 0x7ff5b0918460> environment = <Environment.NEXT: 'next'> url = 'https://next.home-assistant.io/integrations.json' @pytest.mark.parametrize( ("environment", "url"), [ (None, f"{HOMEASSISTANT_URL}/integrations.json"), (Environment.CURRENT, f"{HOMEASSISTANT_URL}/integrations.json"), (Environment.RC, "https://rc.home-assistant.io/integrations.json"), (Environment.NEXT, "https://next.home-assistant.io/integrations.json"), ], ) async def test_integration_environment( homeassistant_analytics_client: HomeassistantAnalyticsClient, responses: aioresponses, environment: Environment, url: str, ) -> None: """Test retrieving integrations from different environments.""" responses.get( url, status=200, body=load_fixture("integrations.json"), ) > assert await > homeassistant_analytics_client.get_integrations(environment) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_python_homeassistant_analytics.py:228: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_homeassistant_analytics/python_homeassistant_analytics.py:113: in get_integrations response = await self._request( python_homeassistant_analytics/python_homeassistant_analytics.py:62: in _request response = await self.session.get( <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 0x7ff5b091a9c0> url = URL('https://next.home-assistant.io/integrations.json'), method = 'get' request_headers = {'Accept': 'application/json, text/plain, */*', 'User-Agent': 'PythonHomeassistantAnalytics/0.5.0'} status = 200 body = b'{\n "3_day_blinds": {\n "title": "3 Day Blinds",\n "description": "Connect and control your 3 Day Blinds devi...Me Z-Way.",\n "quality_scale": "",\n "iot_class": "Local Push",\n "integration_type": "integration"\n }\n}\n' 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 ---------------------------- 5 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_python_homeassistant_analytics.py::test_putting_in_own_session FAILED tests/test_python_homeassistant_analytics.py::test_creating_own_session FAILED tests/test_python_homeassistant_analytics.py::test_unexpected_server_response FAILED tests/test_python_homeassistant_analytics.py::test_analytics - TypeErr... FAILED tests/test_python_homeassistant_analytics.py::test_etags - TypeError: ... FAILED tests/test_python_homeassistant_analytics.py::test_current_analytics FAILED tests/test_python_homeassistant_analytics.py::test_integrations - Type... FAILED tests/test_python_homeassistant_analytics.py::test_custom_integrations FAILED tests/test_python_homeassistant_analytics.py::test_addons - TypeError:... FAILED tests/test_python_homeassistant_analytics.py::test_integration_environment[None-https://home-assistant.io/integrations.json] FAILED tests/test_python_homeassistant_analytics.py::test_integration_environment[current-https://home-assistant.io/integrations.json] FAILED tests/test_python_homeassistant_analytics.py::test_integration_environment[rc-https://rc.home-assistant.io/integrations.json] FAILED tests/test_python_homeassistant_analytics.py::test_integration_environment[next-https://next.home-assistant.io/integrations.json] ========================= 13 failed, 2 passed in 1.61s ========================= 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 --------------------------------------------------------------------------------

