Package: src:python-bond-async
Version: 0.2.1-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-bond-async, 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 ...]

        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_increase_position ____________________________

bond = <bond_async.bond.Bond object at 0x7fcd9e1aef20>

    @pytest.mark.asyncio
    async def test_increase_position(bond: Bond):
        """Tests increase_position action delegates to API."""
        with aioresponses() as response:
    
            def callback(_url, **kwargs):
                assert kwargs.get("json") == {"argument": 50}
                return CallbackResult()
    
            response.put(
                
"http://test-host/v2/groups/test-group-id/actions/IncreasePosition";,
                callback=callback,
            )
>           await bond.group_action("test-group-id", 
> Action.increase_position(50))

tests/test_groups.py:474: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
bond_async/bond.py:166: in group_action
    await self.__call(put)
bond_async/bond.py:206: in __call
    return await handler(request_session)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bond_async/bond.py:159: in put
    async with session.put(
/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 0x7fcd9ee744d0>
url = URL('http://test-host/v2/groups/test-group-id/actions/IncreasePosition')
method = 'GET'
request_headers = {'BOND-Token': 'test-token', 'BOND-UUID': 'ff1e1a00ae42822a'}
status = 200, body = b'', content_type = 'application/json', payload = None
headers = None, response_class = <class 'aiohttp.client_reqrep.ClientResponse'>
reason = None

    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_decrease_position ____________________________

bond = <bond_async.bond.Bond object at 0x7fcd9e1adfd0>

    @pytest.mark.asyncio
    async def test_decrease_position(bond: Bond):
        """Tests decrease_position action delegates to API."""
        with aioresponses() as response:
    
            def callback(_url, **kwargs):
                assert kwargs.get("json") == {"argument": 50}
                return CallbackResult()
    
            response.put(
                
"http://test-host/v2/groups/test-group-id/actions/DecreasePosition";,
                callback=callback,
            )
>           await bond.group_action("test-group-id", 
> Action.decrease_position(50))

tests/test_groups.py:490: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
bond_async/bond.py:166: in group_action
    await self.__call(put)
bond_async/bond.py:206: in __call
    return await handler(request_session)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bond_async/bond.py:159: in put
    async with session.put(
/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 0x7fcd9ea5a5d0>
url = URL('http://test-host/v2/groups/test-group-id/actions/DecreasePosition')
method = 'GET'
request_headers = {'BOND-Token': 'test-token', 'BOND-UUID': 'ff6ec2009a9c5bae'}
status = 200, body = b'', content_type = 'application/json', payload = None
headers = None, response_class = <class 'aiohttp.client_reqrep.ClientResponse'>
reason = None

    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
=========================== short test summary info ============================
FAILED tests/test_bond.py::test_optional_overrides - TypeError: ClientRespons...
FAILED tests/test_bond.py::test_msg_id_in_request_header - TypeError: ClientR...
FAILED tests/test_bond.py::test_version - TypeError: ClientResponse.__init__(...
FAILED tests/test_bond.py::test_bond_type - TypeError: ClientResponse.__init_...
FAILED tests/test_bond.py::test_bridge - TypeError: ClientResponse.__init__()...
FAILED tests/test_bond.py::test_token - TypeError: ClientResponse.__init__() ...
FAILED tests/test_bond.py::test_devices - TypeError: ClientResponse.__init__(...
FAILED tests/test_bond.py::test_device - TypeError: ClientResponse.__init__()...
FAILED tests/test_bond.py::test_device_properties - TypeError: ClientResponse...
FAILED tests/test_bond.py::test_device_state - TypeError: ClientResponse.__in...
FAILED tests/test_bond.py::test_turn_on - TypeError: ClientResponse.__init__(...
FAILED tests/test_bond.py::test_turn_off - TypeError: ClientResponse.__init__...
FAILED tests/test_bond.py::test_open - TypeError: ClientResponse.__init__() m...
FAILED tests/test_bond.py::test_tilt_open - TypeError: ClientResponse.__init_...
FAILED tests/test_bond.py::test_close - TypeError: ClientResponse.__init__() ...
FAILED tests/test_bond.py::test_tilt_close - TypeError: ClientResponse.__init...
FAILED tests/test_bond.py::test_hold - TypeError: ClientResponse.__init__() m...
FAILED tests/test_bond.py::test_set_speed - TypeError: ClientResponse.__init_...
FAILED tests/test_bond.py::test_set_speed_belief - TypeError: ClientResponse....
FAILED tests/test_bond.py::test_set_brightness_belief - TypeError: ClientResp...
FAILED tests/test_bond.py::test_set_power_state_belief - TypeError: ClientRes...
FAILED tests/test_bond.py::test_set_light_state_belief - TypeError: ClientRes...
FAILED tests/test_bond.py::test_turn_light_on - TypeError: ClientResponse.__i...
FAILED tests/test_bond.py::test_turn_light_off - TypeError: ClientResponse.__...
FAILED tests/test_bond.py::test_set_brightness - TypeError: ClientResponse.__...
FAILED tests/test_bond.py::test_set_color_temperature - TypeError: ClientResp...
FAILED tests/test_bond.py::test_increase_color_temperature - TypeError: Clien...
FAILED tests/test_bond.py::test_decrease_color_temperature - TypeError: Clien...
FAILED tests/test_bond.py::test_set_direction_forward - TypeError: ClientResp...
FAILED tests/test_bond.py::test_set_direction_reverse - TypeError: ClientResp...
FAILED tests/test_bond.py::test_set_flame - TypeError: ClientResponse.__init_...
FAILED tests/test_bond.py::test_set_position - TypeError: ClientResponse.__in...
FAILED tests/test_bond.py::test_increase_position - TypeError: ClientResponse...
FAILED tests/test_bond.py::test_decrease_position - TypeError: ClientResponse...
FAILED tests/test_bond.py::test_set_bluelight_brightness - TypeError: ClientR...
FAILED tests/test_groups.py::test_groups_supported - TypeError: ClientRespons...
FAILED tests/test_groups.py::test_groups_unsupported - TypeError: ClientRespo...
FAILED tests/test_groups.py::test_groups - TypeError: ClientResponse.__init__...
FAILED tests/test_groups.py::test_group - TypeError: ClientResponse.__init__(...
FAILED tests/test_groups.py::test_group_properties - TypeError: ClientRespons...
FAILED tests/test_groups.py::test_group_state - TypeError: ClientResponse.__i...
FAILED tests/test_groups.py::test_turn_on - TypeError: ClientResponse.__init_...
FAILED tests/test_groups.py::test_turn_off - TypeError: ClientResponse.__init...
FAILED tests/test_groups.py::test_open - TypeError: ClientResponse.__init__()...
FAILED tests/test_groups.py::test_tilt_open - TypeError: ClientResponse.__ini...
FAILED tests/test_groups.py::test_close - TypeError: ClientResponse.__init__(...
FAILED tests/test_groups.py::test_tilt_close - TypeError: ClientResponse.__in...
FAILED tests/test_groups.py::test_hold - TypeError: ClientResponse.__init__()...
FAILED tests/test_groups.py::test_set_speed - TypeError: ClientResponse.__ini...
FAILED tests/test_groups.py::test_set_speed_belief - TypeError: ClientRespons...
FAILED tests/test_groups.py::test_set_brightness_belief - TypeError: ClientRe...
FAILED tests/test_groups.py::test_set_power_state_belief - TypeError: ClientR...
FAILED tests/test_groups.py::test_set_light_state_belief - TypeError: ClientR...
FAILED tests/test_groups.py::test_turn_light_on - TypeError: ClientResponse._...
FAILED tests/test_groups.py::test_turn_light_off - TypeError: ClientResponse....
FAILED tests/test_groups.py::test_set_brightness - TypeError: ClientResponse....
FAILED tests/test_groups.py::test_set_color_temperature - TypeError: ClientRe...
FAILED tests/test_groups.py::test_increase_color_temperature - TypeError: Cli...
FAILED tests/test_groups.py::test_decrease_color_temperature - TypeError: Cli...
FAILED tests/test_groups.py::test_set_direction_forward - TypeError: ClientRe...
FAILED tests/test_groups.py::test_set_direction_reverse - TypeError: ClientRe...
FAILED tests/test_groups.py::test_set_flame - TypeError: ClientResponse.__ini...
FAILED tests/test_groups.py::test_set_position - TypeError: ClientResponse.__...
FAILED tests/test_groups.py::test_increase_position - TypeError: ClientRespon...
FAILED tests/test_groups.py::test_decrease_position - TypeError: ClientRespon...
======================== 65 failed, 14 passed in 3.93s =========================
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:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to