Package: src:python-aioazuredevops
Version: 2.2.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-aioazuredevops, 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 ...]

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/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 0x7f463cc8e510>
url = 
URL('https://dev.azure.com/testorg/testproject/_apis/work/teamsettings/iterations?api-version=7.2-preview')
method = 'get', request_headers = {}, status = 200
body = b'{"count": 1, "value": [{"id": "abc123", "name": "Sprint 1", "path": 
"testname\\\\Sprint 1", "attributes": {"startDat..."startDate": 
"2021-01-01T00:00:00Z", "finishDate": "2021-01-31T00:00:00Z", "timeFrame": 
"future"}, "url": "testurl"}]}'
content_type = 'application/json'
payload = {'count': 1, 'value': [{'attributes': {'finishDate': 
'2021-01-31T00:00:00Z', 'startDate': '2021-01-01T00:00:00Z', 
'tim...2021-01-01T00:00:00Z', 'timeFrame': 'future'}, 'id': 'abc123', 'name': 
'Sprint 3', 'path': 'testname\\Sprint 3', ...}]}
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_work_item_types_states_filter ______________________

devops_client = <aioazuredevops.client.DevOpsClient object at 0x7f463cda74d0>
mock_aioresponse = <aioresponses.core.aioresponses object at 0x7f463cdaa410>
snapshot = SnapshotAssertion(name='snapshot', num_executions=0)

    @pytest.mark.asyncio
    async def test_work_item_types_states_filter(
        devops_client: DevOpsClient,
        mock_aioresponse: aioresponses,
        snapshot: SnapshotAssertion,
    ) -> None:
        """Test the get_work_item_types method."""
>       work_item_types = await devops_client.get_work_item_types(
            organization=ORGANIZATION,
            project=PROJECT,
        )

tests/test_helper.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
aioazuredevops/client.py:630: in get_work_item_types
    response: aiohttp.ClientResponse = await self._get(
aioazuredevops/client.py:73: in _get
    return await self._session.get(url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<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 0x7f463cc99850>
url = 
URL('https://dev.azure.com/testorg/testproject/_apis/wit/workitemtypes?api-version=7.2-preview')
method = 'get', request_headers = {}, status = 200
body = b'{"count": 1, "value": [{"name": "testname", "referenceName": 
"testreferenceName", "description": "testdescription", ...c3d84c", "category": 
"Resolved"}, {"name": "Closed", "color": "339933", "category": "Completed"}], 
"url": "testurl"}]}'
content_type = 'application/json'
payload = {'count': 1, 'value': [{'color': 'testcolor', 'description': 
'testdescription', 'fieldInstances': [], 'fields': [], ...}]}
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_work_items_by_type_and_state _______________________

devops_client = <aioazuredevops.client.DevOpsClient object at 0x7f463c9a2b60>
mock_aioresponse = <aioresponses.core.aioresponses object at 0x7f463cc99d90>
snapshot = SnapshotAssertion(name='snapshot', num_executions=0)

    @pytest.mark.asyncio
    async def test_work_items_by_type_and_state(
        devops_client: DevOpsClient,
        mock_aioresponse: aioresponses,
        snapshot: SnapshotAssertion,
    ) -> None:
        """Test the get_work_item_types method."""
>       work_item_types = await devops_client.get_work_item_types(
            organization=ORGANIZATION,
            project=PROJECT,
        )

tests/test_helper.py:110: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
aioazuredevops/client.py:630: in get_work_item_types
    response: aiohttp.ClientResponse = await self._get(
aioazuredevops/client.py:73: in _get
    return await self._session.get(url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<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 0x7f463cebb650>
url = 
URL('https://dev.azure.com/testorg/testproject/_apis/wit/workitemtypes?api-version=7.2-preview')
method = 'get', request_headers = {}, status = 200
body = b'{"count": 1, "value": [{"name": "testname", "referenceName": 
"testreferenceName", "description": "testdescription", ...c3d84c", "category": 
"Resolved"}, {"name": "Closed", "color": "339933", "category": "Completed"}], 
"url": "testurl"}]}'
content_type = 'application/json'
payload = {'count': 1, 'value': [{'color': 'testcolor', 'description': 
'testdescription', 'fieldInstances': [], 'fields': [], ...}]}
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
=============================== warnings summary ===============================
tests/test_client.py::test_authorize
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/aioazuredevops/client.py:77: 
DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; 
use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead
    "Authorization": aiohttp.BasicAuth("", self._pat).encode(),

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------------------------- snapshot report summary ----------------------------
18 snapshots unused.

Re-run pytest with --snapshot-update to delete unused snapshots.
=========================== short test summary info ============================
FAILED tests/test_client.py::test_authorize - TypeError: ClientResponse.__ini...
FAILED tests/test_client.py::test_get_project - TypeError: ClientResponse.__i...
FAILED tests/test_client.py::test_get_builds - TypeError: ClientResponse.__in...
FAILED tests/test_client.py::test_get_build - TypeError: ClientResponse.__ini...
FAILED tests/test_client.py::test_get_iterations - TypeError: ClientResponse....
FAILED tests/test_client.py::test_get_iteration - TypeError: ClientResponse._...
FAILED tests/test_client.py::test_get_iteration_work_items - TypeError: Clien...
FAILED tests/test_client.py::test_get_work_items_ids - TypeError: ClientRespo...
FAILED tests/test_client.py::test_get_work_items - TypeError: ClientResponse....
FAILED tests/test_client.py::test_get_work_item_types - TypeError: ClientResp...
FAILED tests/test_helper.py::test_current_iteration - TypeError: ClientRespon...
FAILED tests/test_helper.py::test_previous_iteration - TypeError: ClientRespo...
FAILED tests/test_helper.py::test_next_iteration - TypeError: ClientResponse....
FAILED tests/test_helper.py::test_work_item_types_states_filter - TypeError: ...
FAILED tests/test_helper.py::test_work_items_by_type_and_state - TypeError: C...
=================== 15 failed, 1 passed, 1 warning in 0.73s ====================
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
--------------------------------------------------------------------------------

Reply via email to