Package: src:aiowebdav2
Version: 0.6.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:aiowebdav2, 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 ...]

            "https://webdav.example.com/test_dir/test.txt";,
            "GET",
            status=200,
            body=b"buffer content",
            headers={"content-length": "14"},
        )
        responses.add(
            "https://webdav.example.com/test_dir/test.txt";,
            "PUT",
            headers={"Accept": "*/*"},
            status=201,
        )
    
        resource = client.resource("/test_dir/test.txt")
        buff = io.BytesIO()
>       await resource.read_from(buff)

tests/test_resource.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
aiowebdav2/client.py:1339: in read_from
    await self.client.download_from(buff=buff, remote_path=self.urn.path())
aiowebdav2/client.py:493: in download_from
    response = await self.execute_request(action="download", path=urn.path())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aiowebdav2/client.py:236: in execute_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 0x7f279bfdf350>
url = URL('https://webdav.example.com/test_dir/test.txt'), method = 'get'
request_headers = {}, status = 200, body = b'buffer content'
content_type = 'application/json', payload = None
headers = {'content-length': '14'}
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_resource_get_set_property ________________________

client = <aiowebdav2.client.Client object at 0x7f279b79f250>
responses = <aioresponses.core.aioresponses object at 0x7f279b4efed0>

    async def test_resource_get_set_property(
        client: Client, responses: aioresponses
    ) -> None:
        """Test resource get set property."""
        responses.add(
            "https://webdav.example.com/test_dir/test.txt";,
            "PROPFIND",
            headers={"Accept": "*/*", "Depth": "0"},
            content_type="application/xml",
            status=200,
            body=load_responses("get_property.xml"),
        )
        responses.add(
            "https://webdav.example.com/test_dir/test.txt";,
            "PROPPATCH",
            headers={"Accept": "*/*"},
            status=207,
        )
    
        resource = client.resource("/test_dir/test.txt")
>       prop = await resource.get_property(
            PropertyRequest(namespace="test", name="aProperty")
        )

tests/test_resource.py:209: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
aiowebdav2/client.py:1365: in get_property
    return await self.client.get_property(self.urn.path(), requested_property)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aiowebdav2/client.py:987: in get_property
    result = await self.get_properties(remote_path, [requested_property])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aiowebdav2/client.py:998: in get_properties
    response = await self.execute_request(
aiowebdav2/client.py:236: in execute_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 0x7f279affcf50>
url = URL('https://webdav.example.com/test_dir/test.txt'), method = 'propfind'
request_headers = {'Accept': '*/*', 'Content-Type': 'text/xml', 'Depth': '0'}
status = 200
body = b'<?xml version="1.0" encoding="utf-8"?>\n<d:multistatus 
xmlns:d="DAV:">\n    <d:response>\n        
<d:href>/test_dir/...2">anotherValue</anotherProperty>\n            </d:prop>\n 
       </d:propstat>\n    </d:response>\n</d:multistatus>\n'
content_type = 'application/xml', payload = None
headers = {'Accept': '*/*', 'Depth': '0'}
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: 57 warnings
tests/test_resource.py: 6 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/aiowebdav2/client.py:201: 
DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; 
use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead
    return BasicAuth(self._username, self._password, encoding="utf-8")

tests/test_client.py: 57 warnings
tests/test_resource.py: 6 warnings
  /usr/lib/python3.13/copyreg.py:99: DeprecationWarning: BasicAuth is 
deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() 
with headers={'Authorization': ...} instead
    return cls.__new__(cls, *args)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_client.py::test_list_files[/-<?xml version 
[too-long-redacted] esponse>\n\n</D:multistatus>\n]
FAILED tests/test_client.py::test_list_files[/remote.php/web 
[too-long-redacted] :response>\n</d:multistatus>\n]
FAILED tests/test_client.py::test_list_files[/remote.php/web 
[too-long-redacted] :response>\n</d:multistatus>\n]
FAILED tests/test_client.py::test_list_files_empty - TypeError: ClientRespons...
FAILED tests/test_client.py::test_list_files_resource_not_found - TypeError: ...
FAILED tests/test_client.py::test_list_files_recursive - TypeError: ClientRes...
FAILED tests/test_client.py::test_list_with_infos - TypeError: ClientResponse...
FAILED tests/test_client.py::test_with_properties - TypeError: ClientResponse...
FAILED tests/test_client.py::test_info - TypeError: ClientResponse.__init__()...
FAILED tests/test_client.py::test_clean - TypeError: ClientResponse.__init__(...
FAILED tests/test_client.py::test_get_property - TypeError: ClientResponse.__...
FAILED tests/test_client.py::test_set_property - TypeError: ClientResponse.__...
FAILED tests/test_client.py::test_mkdir - TypeError: ClientResponse.__init__(...
FAILED tests/test_client.py::test_free - TypeError: ClientResponse.__init__()...
FAILED tests/test_client.py::test_free_not_supported - TypeError: ClientRespo...
FAILED tests/test_client.py::test_quota - TypeError: ClientResponse.__init__(...
FAILED tests/test_client.py::test_quota_not_supported - TypeError: ClientResp...
FAILED tests/test_client.py::test_quota_used_only - TypeError: ClientResponse...
FAILED tests/test_client.py::test_upload_iter - TypeError: ClientResponse.__i...
FAILED tests/test_client.py::test_upload_iter_progress - TypeError: ClientRes...
FAILED tests/test_client.py::test_upload_iter_progress_no_content_length - Ty...
FAILED tests/test_client.py::test_upload_iter_progress_unsupported_buffer - T...
FAILED tests/test_client.py::test_download_iter - TypeError: ClientResponse._...
FAILED tests/test_client.py::test_move - TypeError: ClientResponse.__init__()...
FAILED tests/test_client.py::test_check - TypeError: ClientResponse.__init__(...
FAILED tests/test_client.py::test_copy - TypeError: ClientResponse.__init__()...
FAILED tests/test_client.py::test_is_dir_not_supported - TypeError: ClientRes...
FAILED tests/test_client.py::test_get_properties - TypeError: ClientResponse....
FAILED tests/test_client.py::test_unauthorized - TypeError: ClientResponse.__...
FAILED tests/test_client.py::test_access_denied - TypeError: ClientResponse._...
FAILED tests/test_client.py::test_upload_iter_content_length - TypeError: Cli...
FAILED tests/test_client.py::test_upload_iter_not_enough_space - TypeError: C...
FAILED tests/test_client.py::test_upload_iter_parent_missing - TypeError: Cli...
FAILED tests/test_client.py::test_execute_request_locked - TypeError: ClientR...
FAILED tests/test_client.py::test_execute_request_method_not_supported - Type...
FAILED tests/test_client.py::test_execute_request_generic_error - TypeError: ...
FAILED tests/test_client.py::test_list_with_infos_recursive - TypeError: Clie...
FAILED tests/test_client.py::test_list_with_properties_none - TypeError: Clie...
FAILED tests/test_client.py::test_stream_with_progress_sync_and_async - TypeE...
FAILED tests/test_client.py::test_download_from_with_progress - TypeError: Cl...
FAILED tests/test_client.py::test_download_dispatch_file_and_dir - TypeError:...
FAILED tests/test_client.py::test_download_directory_removes_existing - TypeE...
FAILED tests/test_client.py::test_upload_dispatch_file_and_dir - TypeError: C...
FAILED tests/test_client.py::test_upload_directory_validations - TypeError: C...
FAILED tests/test_client.py::test_upload_directory_uses_filename_not_full_path
FAILED tests/test_client.py::test_upload_file_progress_and_force - TypeError:...
FAILED tests/test_client.py::test_copy_directory_adds_depth - TypeError: Clie...
FAILED tests/test_client.py::test_lock_and_lock_client_headers - TypeError: C...
FAILED tests/test_client.py::test_lock_with_timeout_header - TypeError: Clien...
FAILED tests/test_client.py::test_is_local_more_recent - TypeError: ClientRes...
FAILED tests/test_client.py::test_is_local_more_recent_error - TypeError: Cli...
FAILED tests/test_client.py::test_push_pull_sync - TypeError: ClientResponse....
FAILED tests/test_client.py::test_publish_unpublish - TypeError: ClientRespon...
FAILED tests/test_client.py::test_download_directory_concurrent - TypeError: ...
FAILED tests/test_client.py::test_upload_directory_concurrent - TypeError: Cl...
FAILED tests/test_resource.py::test_resource_is_dir_and_info - TypeError: Cli...
FAILED tests/test_resource.py::test_resource_rename_move_copy - TypeError: Cl...
FAILED tests/test_resource.py::test_resource_clean_check_publish_unpublish - ...
FAILED tests/test_resource.py::test_resource_read_write_paths - TypeError: Cl...
FAILED tests/test_resource.py::test_resource_read_write_buffers - TypeError: ...
FAILED tests/test_resource.py::test_resource_get_set_property - TypeError: Cl...
================= 61 failed, 43 passed, 126 warnings in 3.89s ==================
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:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to