Package: src:python-gios Version: 7.1.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-gios, 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 ...] sensor_3759: dict[str, Any], sensor_3760: dict[str, Any], sensor_3761: dict[str, Any], sensor_3762: dict[str, Any], sensor_3764: dict[str, Any], sensor_3765: dict[str, Any], sensor_14688: dict[str, Any], ) -> None: """Test with valid data and valid first sensor's value.""" indexes["AqIndex"]["Nazwa kategorii indeksu"] = "Brak indeksu" indexes["AqIndex"]["Status indeksu ogólnego dla stacji pomiarowej"] = False session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=0&size=500", payload=stations, ) session_mock.get( f"https://api.gios.gov.pl/pjp-api/v1/rest/station/sensors/{VALID_STATION_ID}", payload=station, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3759", payload=sensor_3759, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3760", payload=sensor_3760, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3761", payload=sensor_3761, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3762", payload=sensor_3762, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3764", payload=sensor_3764, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/3765", payload=sensor_3765, status=HTTPStatus.BAD_REQUEST.value, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/data/getData/14688", payload=sensor_14688, ) session_mock.get( f"https://api.gios.gov.pl/pjp-api/v1/rest/aqindex/getIndex/{VALID_STATION_ID}", payload=indexes, ) > gios = await Gios.create(session, VALID_STATION_ID) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_init.py:521: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ gios/__init__.py:57: in create await instance.initialize() gios/__init__.py:68: in initialize stations = await self._get_stations() ^^^^^^^^^^^^^^^^^^^^^^^^^^ gios/__init__.py:163: in _get_stations first = await self._async_get( gios/__init__.py:211: in _async_get async with self.session.get(url) as resp: ^^^^^^^^^^^^^^^^^^^^^ /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 0x7f1db822bc50> url = URL('https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=0&size=500') method = 'get', request_headers = {}, status = 200 body = b'{"@context": {"Lista stacji pomiar\\u00f3w": {"@id": "https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll"}, "li...age=0&size=500", "first": "https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=0&size=500"}, "totalPages": 1}' content_type = 'application/json' payload = {'@context': {'Lista stacji pomiarów': {'@id': 'https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll'}, 'links': 'h...SO 639-2 / ISO 639-3)', 'dc:title': 'Lista stacji pomiarowych', 'schema:contentType': 'application/ld+json', ...}, ...} 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_multiple_pages ______________________________ session = <aiohttp.client.ClientSession object at 0x7f1db7cde850> session_mock = <aioresponses.core.aioresponses object at 0x7f1db80f7110> stations = {'@context': {'Lista stacji pomiarów': {'@id': 'https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll'}, 'links': 'h...SO 639-2 / ISO 639-3)', 'dc:title': 'Lista stacji pomiarowych', 'schema:contentType': 'application/ld+json', ...}, ...} @pytest.mark.asyncio async def test_multiple_pages( session: aiohttp.ClientSession, session_mock: aioresponses, stations: dict[str, Any], ) -> None: """Test that all pages are fetched when totalPages > 1.""" stations_list: list[dict[str, Any]] = stations["Lista stacji pomiarowych"] page_0_payload = { "Lista stacji pomiarowych": stations_list[:1], "totalPages": 2, } page_1_payload = { "Lista stacji pomiarowych": stations_list[1:], "totalPages": 2, } session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=0&size=500", payload=page_0_payload, ) session_mock.get( "https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=1&size=500", payload=page_1_payload, ) > gios = await Gios.create(session) ^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_init.py:553: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ gios/__init__.py:57: in create await instance.initialize() gios/__init__.py:68: in initialize stations = await self._get_stations() ^^^^^^^^^^^^^^^^^^^^^^^^^^ gios/__init__.py:163: in _get_stations first = await self._async_get( gios/__init__.py:211: in _async_get async with self.session.get(url) as resp: ^^^^^^^^^^^^^^^^^^^^^ /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 0x7f1db822be90> url = URL('https://api.gios.gov.pl/pjp-api/v1/rest/station/findAll?page=0&size=500') method = 'get', request_headers = {}, status = 200 body = b'{"Lista stacji pomiarowych": [{"Identyfikator stacji": 552, "Kod stacji": "MzWarKondrat", "Nazwa stacji": "Warszawa,...arszawa", "Powiat": "Warszawa", "Wojew\\u00f3dztwo": "MAZOWIECKIE", "Ulica": "ul. Kondratowicza 8"}], "totalPages": 2}' content_type = 'application/json' payload = {'Lista stacji pomiarowych': [{'Gmina': 'Warszawa', 'Identyfikator miasta': 1006, 'Identyfikator stacji': 552, 'Kod stacji': 'MzWarKondrat', ...}], 'totalPages': 2} 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 ---------------------------- 7 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_init.py::test_init_only - TypeError: ClientResponse.__init_... FAILED tests/test_init.py::test_valid_data_first_value - TypeError: ClientRes... FAILED tests/test_init.py::test_api_error - TypeError: ClientResponse.__init_... FAILED tests/test_init.py::test_valid_data_second_value - TypeError: ClientRe... FAILED tests/test_init.py::test_no_indexes_data - TypeError: ClientResponse._... FAILED tests/test_init.py::test_no_sensor_data_1 - TypeError: ClientResponse.... FAILED tests/test_init.py::test_invalid_sensor_data_2 - TypeError: ClientResp... FAILED tests/test_init.py::test_no_station_data - TypeError: ClientResponse._... FAILED tests/test_init.py::test_no_stations_data - TypeError: ClientResponse.... FAILED tests/test_init.py::test_invalid_station_id - TypeError: ClientRespons... FAILED tests/test_init.py::test_no_common_index - TypeError: ClientResponse._... FAILED tests/test_init.py::test_multiple_pages - TypeError: ClientResponse.__... ============================== 12 failed in 0.67s ============================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/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:3: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

