Package: src:python-airgradient Version: 0.9.2-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-airgradient, 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.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 0x7f12067bbc50> url = URL('http://192.168.0.30/config'), method = 'put' request_headers = {'Accept': 'application/json', 'User-Agent': 'PythonAirGradient/0.1.0'} status = 200, body = b'Success', content_type = 'application/json' payload = None, headers = {'Content-Type': 'plain/text'} 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_latest_version ______________________________ responses = <aioresponses.core.aioresponses object at 0x7f120663cdd0> client = AirGradientClient(host='192.168.0.30', session=<aiohttp.client.ClientSession object at 0x7f120637ec10>, request_timeout=10, _close_session=False) snapshot = SnapshotAssertion(name='snapshot', num_executions=0) async def test_latest_version( responses: aioresponses, client: AirGradientClient, snapshot: SnapshotAssertion ) -> None: """Test getting latest firmware version.""" responses.get( "http://hw.airgradient.com/sensors/airgradient:84fce612f5b8/generic/os/firmware", status=200, body=load_fixture("version.json"), ) > assert snapshot == await > client.get_latest_firmware_version("84fce612f5b8") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_airgradient.py:268: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ airgradient/airgradient.py:172: in get_latest_firmware_version response = await self._request(url) ^^^^^^^^^^^^^^^^^^^^^^^^ airgradient/airgradient.py:62: 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 0x7f12067bbdd0> url = URL('http://hw.airgradient.com/sensors/airgradient:84fce612f5b8/generic/os/firmware') method = 'get' request_headers = {'Accept': 'application/json', 'User-Agent': 'PythonAirGradient/0.1.0'} status = 200, body = b'{"targetVersion":"3.1.4"}\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_version_parse_error ___________________________ responses = <aioresponses.core.aioresponses object at 0x7f120663ce50> client = AirGradientClient(host='192.168.0.30', session=<aiohttp.client.ClientSession object at 0x7f120637d310>, request_timeout=10, _close_session=False) async def test_version_parse_error( responses: aioresponses, client: AirGradientClient, ) -> None: """Test version parse error.""" responses.get( "http://hw.airgradient.com/sensors/airgradient:84fce612f5b8/generic/os/firmware", status=200, body="{}", ) with pytest.raises(AirGradientParseError): > await client.get_latest_firmware_version("84fce612f5b8") tests/test_airgradient.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ airgradient/airgradient.py:172: in get_latest_firmware_version response = await self._request(url) ^^^^^^^^^^^^^^^^^^^^^^^^ airgradient/airgradient.py:62: 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 0x7f12067ba390> url = URL('http://hw.airgradient.com/sensors/airgradient:84fce612f5b8/generic/os/firmware') method = 'get' request_headers = {'Accept': 'application/json', 'User-Agent': 'PythonAirGradient/0.1.0'} 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 ---------------------------- 6 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_airgradient.py::test_putting_in_own_session - TypeError: Cl... FAILED tests/test_airgradient.py::test_creating_own_session - TypeError: Clie... FAILED tests/test_airgradient.py::test_unexpected_server_response - TypeError... FAILED tests/test_airgradient.py::test_unexpected_server_json_response - Type... FAILED tests/test_airgradient.py::test_current_fixtures[current_measures.json] FAILED tests/test_airgradient.py::test_current_fixtures[current_measures_2.json] FAILED tests/test_airgradient.py::test_current_fixtures[measures_after_boot.json] FAILED tests/test_airgradient.py::test_current_fixtures[current_measures_zero.json] FAILED tests/test_airgradient.py::test_config - TypeError: ClientResponse.__i... FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data0] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data1] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data2] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data3] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data4] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data5] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data6] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data7] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data8] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data9] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data10] FAILED tests/test_airgradient.py::test_setting_config[<lambda>-expected_data11] FAILED tests/test_airgradient.py::test_latest_version - TypeError: ClientResp... FAILED tests/test_airgradient.py::test_version_parse_error - TypeError: Clien... ======================== 23 failed, 10 passed in 1.93s ========================= 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 --------------------------------------------------------------------------------

