Package: src:python-aiounifi Version: 79-3 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-aiounifi, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean make: pyversions: No such file or directory py3versions: no X-Python3-Version in control file, using supported versions dh clean --buildsystem=pybuild --with python3 dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary make: pyversions: No such file or directory py3versions: no X-Python3-Version in control file, using supported versions dh binary --buildsystem=pybuild --with python3 dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild [... snipped ...] async def test_wlans(mock_aioresponse, unifi_controller, unifi_called_with): """Test that different types of ports work.""" wlans = unifi_controller.wlans > await wlans.update() tests/test_wlans.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiounifi/interfaces/api_handlers.py:103: in update raw = await self.controller.request(self.api_request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aiounifi/controller.py:65: in request return await self.connectivity.request(api_request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aiounifi/interfaces/connectivity.py:97: in request response, bytes_data = await self._request( aiounifi/interfaces/connectivity.py:126: in _request async with self.config.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 0x7ff1aab1cdd0> url = URL('https://host:8443/api/s/default/rest/wlanconf'), method = 'get' request_headers = {}, status = 200 body = b'{"meta": {"rc": "OK"}, "data": [{"_id": "012345678910111213141516", "bc_filter_enabled": false, "bc_filter_list": []...mp", "wpa_mode": "wpa2", "x_iapp_key": "12345678910111216141516171819204", "x_passphrase": "password in clear text"}]}' content_type = 'application/json' payload = {'data': [{'_id': '012345678910111213141516', 'bc_filter_enabled': False, 'bc_filter_list': [], 'dtim_mode': 'default'...101112161415160', 'bc_filter_enabled': True, 'bc_filter_list': [], 'dtim_mode': 'default', ...}], 'meta': {'rc': 'OK'}} 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 ------------------------------ Captured log setup ------------------------------ DEBUG asyncio:selector_events.py:64 Using selector: EpollSelector ------------------------------ Captured log call ------------------------------- DEBUG aiounifi.interfaces.connectivity:connectivity.py:122 sending (to https://host:8443/api/s/default/rest/wlanconf) get, None, {} =============================== warnings summary =============================== tests/test_controller.py::test_websocket /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_controller.py:577: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.13.12-final-0 ---------- Name Stmts Miss Cover Missing ----------------------------------------------------------------------------- aiounifi/__init__.py 2 0 100% aiounifi/__main__.py 60 60 0% 3-155 aiounifi/controller.py 48 1 98% 61 aiounifi/errors.py 11 0 100% aiounifi/interfaces/__init__.py 0 0 100% aiounifi/interfaces/api_handlers.py 99 1 99% 104 aiounifi/interfaces/clients.py 18 0 100% aiounifi/interfaces/clients_all.py 6 0 100% aiounifi/interfaces/connectivity.py 116 62 47% 47, 53-56, 71-87, 101-102, 105-112, 134-159, 164-169, 194-228 aiounifi/interfaces/devices.py 11 0 100% aiounifi/interfaces/dpi_restriction_apps.py 14 2 86% 24, 30 aiounifi/interfaces/dpi_restriction_groups.py 9 0 100% aiounifi/interfaces/events.py 31 0 100% aiounifi/interfaces/messages.py 43 0 100% aiounifi/interfaces/outlets.py 22 0 100% aiounifi/interfaces/port_forwarding.py 9 0 100% aiounifi/interfaces/ports.py 26 0 100% aiounifi/interfaces/sites.py 6 0 100% aiounifi/interfaces/system_information.py 6 0 100% aiounifi/interfaces/traffic_routes.py 17 6 65% 23, 27, 33-38 aiounifi/interfaces/traffic_rules.py 17 6 65% 23, 27, 31-36 aiounifi/interfaces/vouchers.py 11 2 82% 22, 37 aiounifi/interfaces/wlans.py 15 3 80% 19, 25, 31 aiounifi/models/__init__.py 0 0 100% aiounifi/models/api.py 39 9 77% 44, 49-54, 69-74 aiounifi/models/client.py 236 39 83% 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 256, 261, 266, 271, 276, 281, 286, 291, 296, 301, 306, 311, 316, 321, 326, 331, 336, 341, 346, 351, 356, 361, 366, 371 aiounifi/models/configuration.py 17 0 100% aiounifi/models/device.py 689 103 85% 664-681, 699-716, 740-768, 789-807, 822, 827, 832, 837, 842, 847, 852, 857, 862, 867, 872, 877, 882, 887, 892, 897, 902, 907, 912, 917, 922, 927, 932, 937, 942, 952, 957, 962-964, 969, 974, 979, 984-985, 990, 995, 1000, 1005, 1010, 1015, 1020, 1025, 1030, 1035-1037, 1042, 1047, 1051 aiounifi/models/dpi_restriction_app.py 44 7 84% 38, 53, 58, 63, 68, 78, 83 aiounifi/models/dpi_restriction_group.py 35 5 86% 38, 43, 48, 53, 58 aiounifi/models/event.py 179 0 100% aiounifi/models/message.py 66 0 100% aiounifi/models/outlet.py 39 11 72% 15, 28, 33, 38, 49, 58, 63, 68, 73, 78, 82 aiounifi/models/port.py 58 16 72% 22, 27, 44, 49, 54, 59, 64, 69, 74, 79, 84, 89, 94, 99, 104, 108 aiounifi/models/port_forward.py 58 13 78% 41-43, 58, 63, 68, 73, 78, 83, 88, 96, 101, 106 aiounifi/models/site.py 39 7 82% 32, 44, 49, 54, 59, 64, 69 aiounifi/models/system_information.py 85 10 88% 77, 82, 87, 92, 97, 102, 107, 112, 117, 122 aiounifi/models/traffic_route.py 88 11 88% 115, 120, 128, 133, 138, 143, 148, 153, 158, 163, 168 aiounifi/models/traffic_rule.py 78 6 92% 114, 119, 124, 129, 134, 139 aiounifi/models/voucher.py 116 25 78% 134, 139, 144, 152-154, 159, 164, 169, 174, 179, 184, 189, 194, 199-201, 206-208, 213, 218, 223, 228-230 aiounifi/models/wlan.py 176 37 79% 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 255, 260, 265, 270, 275, 280, 285, 290 ----------------------------------------------------------------------------- TOTAL 2639 442 83% FAIL Required test coverage of 95.0% not reached. Total coverage: 83.25% =========================== short test summary info ============================ FAILED tests/test_clients.py::test_clients[client_payload0-reference_data0] FAILED tests/test_clients.py::test_clients[client_payload1-reference_data1] FAILED tests/test_clients.py::test_clients[client_payload2-reference_data2] FAILED tests/test_clients.py::test_client_commands[block-0-command0] - TypeEr... FAILED tests/test_clients.py::test_client_commands[unblock-0-command1] - Type... FAILED tests/test_clients.py::test_client_commands[reconnect-0-command2] - Ty... FAILED tests/test_clients.py::test_client_commands[remove_clients-mac3-command3] FAILED tests/test_clients.py::test_message_client_removed[client_payload0] - ... FAILED tests/test_controller.py::test_check_unifi[True] - TypeError: ClientRe... FAILED tests/test_controller.py::test_check_unifi[False] - TypeError: ClientR... FAILED tests/test_controller.py::test_login[True] - TypeError: ClientResponse... FAILED tests/test_controller.py::test_login[False] - TypeError: ClientRespons... FAILED tests/test_controller.py::test_controller_login[True] - TypeError: Cli... FAILED tests/test_controller.py::test_controller_login[False] - TypeError: Cl... FAILED tests/test_controller.py::test_relogin_success - TypeError: ClientResp... FAILED tests/test_controller.py::test_relogin_fails - TypeError: ClientRespon... FAILED tests/test_controller.py::test_controller[site_payload0] - TypeError: ... FAILED tests/test_controller.py::test_unifios_controller[True-site_payload0] FAILED tests/test_controller.py::test_unifios_controller_login_html_response FAILED tests/test_controller.py::test_unifios_controller_no_csrf_token - Type... FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior0-LoginRequired] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior1-Forbidden] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior2-ResponseError] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior3-ResponseError] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior4-BadGateway] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior5-ServiceUnavailable] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior7-LoginRequired] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior8-Unauthorized] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior9-NoPermission] FAILED tests/test_controller.py::test_controller_raise_expected_exception[unwanted_behavior10-TwoFaTokenRequired] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequest-/api/s/default-input0-LoginRequired] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequest-/api/s/default-input1-Unauthorized] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequest-/api/s/default-input2-NoPermission] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequest-/api/s/default-input3-TwoFaTokenRequired] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequest-/api/s/default-input4-AiounifiException] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequestV2-/v2/api/site/default-input5-LoginRequired] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequestV2-/v2/api/site/default-input6-Unauthorized] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequestV2-/v2/api/site/default-input7-NoPermission] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequestV2-/v2/api/site/default-input8-TwoFaTokenRequired] FAILED tests/test_controller.py::test_api_request_error_handling[ApiRequestV2-/v2/api/site/default-input9-AiounifiException] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior0-LoginRequired] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior1-Forbidden] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior2-ResponseError] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior3-ResponseError] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior4-BadGateway] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior5-ServiceUnavailable] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior7-LoginRequired] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior8-Unauthorized] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior9-NoPermission] FAILED tests/test_controller.py::test_api_request_generic_error_handling[unwanted_behavior10-TwoFaTokenRequired] FAILED tests/test_devices.py::test_device[device_payload0-reference_data0] - ... FAILED tests/test_devices.py::test_device[device_payload1-reference_data1] - ... FAILED tests/test_devices.py::test_device[device_payload2-reference_data2] - ... FAILED tests/test_devices.py::test_device[device_payload3-reference_data3] - ... FAILED tests/test_devices.py::test_device[device_payload4-reference_data4] - ... FAILED tests/test_devices.py::test_device[device_payload5-reference_data5] - ... FAILED tests/test_devices.py::test_device[device_payload6-reference_data6] - ... FAILED tests/test_devices.py::test_device_commands[upgrade-0-command0] - Type... FAILED tests/test_devices.py::test_device_requests[DeviceRestartRequest-data0-command0] FAILED tests/test_devices.py::test_device_requests[DeviceRestartRequest-data1-command1] FAILED tests/test_devices.py::test_device_requests[DeviceUpgradeRequest-data2-command2] FAILED tests/test_devices.py::test_device_requests[DevicePowerCyclePortRequest-data3-command3] FAILED tests/test_devices.py::test_sub_device_requests[device_payload0-DeviceSetOutletRelayRequest-data0-command0] FAILED tests/test_devices.py::test_sub_device_requests[device_payload1-DeviceSetOutletRelayRequest-data1-command1] FAILED tests/test_devices.py::test_sub_device_requests[device_payload2-DeviceSetOutletCycleEnabledRequest-data2-command2] FAILED tests/test_devices.py::test_sub_device_requests[device_payload3-DeviceSetOutletCycleEnabledRequest-data3-command3] FAILED tests/test_devices.py::test_sub_device_requests[device_payload4-DeviceSetPoePortModeRequest-data4-command4] FAILED tests/test_devices.py::test_sub_device_requests[device_payload5-DeviceSetPoePortModeRequest-data5-command5] FAILED tests/test_devices.py::test_sub_device_requests[device_payload6-DeviceSetPoePortModeRequest-data6-command6] FAILED tests/test_devices.py::test_sub_device_requests[device_payload7-DeviceSetPoePortModeRequest-data7-command7] FAILED tests/test_devices.py::test_set_poe_request_raise_error[device_payload0] FAILED tests/test_devices.py::test_led_status_request[device_payload0-data0-command0] FAILED tests/test_devices.py::test_led_status_request[device_payload1-data1-command1] FAILED tests/test_devices.py::test_led_status_request[device_payload2-data2-command2] FAILED tests/test_devices.py::test_led_status_request_exception[device_payload0-data0] FAILED tests/test_devices.py::test_led_status_request_exception[device_payload1-data1] FAILED tests/test_devices.py::test_update_stats[device_payload0] - TypeError:... FAILED tests/test_devices.py::test_storage[device_payload0] - TypeError: Clie... FAILED tests/test_devices.py::test_temperatures[device_payload0] - TypeError:... FAILED tests/test_dpi.py::test_dpi_apps[dpi_app_payload0] - TypeError: Client... FAILED tests/test_dpi.py::test_dpi_groups[dpi_group_payload0] - TypeError: Cl... FAILED tests/test_outlets.py::test_outlet[device_payload0-test_data0] - TypeE... FAILED tests/test_outlets.py::test_outlet[device_payload1-test_data1] - TypeE... FAILED tests/test_outlets.py::test_outlet[device_payload2-test_data2] - TypeE... FAILED tests/test_outlets.py::test_outlet[device_payload3-test_data3] - TypeE... FAILED tests/test_port_forward.py::test_port_forward[port_forward_payload0] FAILED tests/test_ports.py::test_port[device_payload0] - TypeError: ClientRes... FAILED tests/test_sites.py::test_sites[site_payload0] - TypeError: ClientResp... FAILED tests/test_system_information.py::test_sys_info_request - TypeError: C... FAILED tests/test_system_information.py::test_system_information[system_information_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_request[True-True] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_request[False-True] FAILED tests/test_traffic_routes.py::test_traffic_route_save[True-6468ecd4c1dd1932ad2f801c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[True-655565af1e1c2754a39388a4-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[True-655566f91e1c2754a393892c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[False-6468ecd4c1dd1932ad2f801c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[False-655565af1e1c2754a39388a4-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[False-655566f91e1c2754a393892c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[None-6468ecd4c1dd1932ad2f801c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[None-655565af1e1c2754a39388a4-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_save[None-655566f91e1c2754a393892c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[True-6468ecd4c1dd1932ad2f801c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[True-655565af1e1c2754a39388a4-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[True-655566f91e1c2754a393892c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[False-6468ecd4c1dd1932ad2f801c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[False-655565af1e1c2754a39388a4-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_traffic_route_enable_disable[False-655566f91e1c2754a393892c-True-traffic_route_payload0] FAILED tests/test_traffic_routes.py::test_no_traffic_routes[True] - TypeError... FAILED tests/test_traffic_routes.py::test_traffic_routes[traffic_route_payload0] FAILED tests/test_traffic_rules.py::test_traffic_rule_enable_request[True-True] FAILED tests/test_traffic_rules.py::test_traffic_rule_enable_request[False-True] FAILED tests/test_traffic_rules.py::test_traffic_rule_toggle[True-True-traffic_rule_payload0] FAILED tests/test_traffic_rules.py::test_traffic_rule_toggle[False-True-traffic_rule_payload0] FAILED tests/test_traffic_rules.py::test_traffic_rule_enable_disable[True-True-traffic_rule_payload0] FAILED tests/test_traffic_rules.py::test_traffic_rule_enable_disable[False-True-traffic_rule_payload0] FAILED tests/test_traffic_rules.py::test_no_traffic_rules[True] - TypeError: ... FAILED tests/test_traffic_rules.py::test_traffic_rules[traffic_rule_payload0] FAILED tests/test_vouchers.py::test_voucher_create - TypeError: ClientRespons... FAILED tests/test_vouchers.py::test_voucher_delete - TypeError: ClientRespons... FAILED tests/test_vouchers.py::test_no_vouchers - TypeError: ClientResponse._... FAILED tests/test_vouchers.py::test_vouchers[voucher_payload0] - TypeError: C... FAILED tests/test_wlans.py::test_wlan_password_change - TypeError: ClientResp... FAILED tests/test_wlans.py::test_wlan_enable[True] - TypeError: ClientRespons... FAILED tests/test_wlans.py::test_wlan_enable[False] - TypeError: ClientRespon... FAILED tests/test_wlans.py::test_no_wlans - TypeError: ClientResponse.__init_... FAILED tests/test_wlans.py::test_wlans[wlan_payload0] - TypeError: ClientResp... ================== 126 failed, 33 passed, 1 warning in 14.50s ================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -v 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:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

