Package: src:cookidoo-api
Version: 0.17.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:cookidoo-api, 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 ...]

            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
_ 
TestRemoveCustomRecipeFromCalendar.test_parse_exception[401-CookidooAuthException]
 _

self = <tests.test_cookidoo.TestRemoveCustomRecipeFromCalendar object at 
0x7fa65f0f7790>
mocked = <aioresponses.core.aioresponses object at 0x7fa65cdaccd0>
cookidoo = <cookidoo_api.cookidoo.Cookidoo object at 0x7fa65c821b00>
status = <HTTPStatus.UNAUTHORIZED: 401>
exception = <class 'cookidoo_api.exceptions.CookidooAuthException'>

    @pytest.mark.parametrize(
        ("status", "exception"),
        [
            (HTTPStatus.OK, CookidooParseException),
            (HTTPStatus.UNAUTHORIZED, CookidooAuthException),
        ],
    )
    async def test_parse_exception(
        self,
        mocked: aioresponses,
        cookidoo: Cookidoo,
        status: HTTPStatus,
        exception: type[CookidooException],
    ) -> None:
        """Test parse exceptions."""
        mocked.delete(
            
"https://cookidoo.ch/planning/de-CH/api/my-day/2025-08-11/recipes/01K2CTJ9Y1BABRG5MXK44CFZS4?recipeSource=CUSTOMER";,
            status=status,
            body="not json",
            content_type="application/json",
        )
    
        with pytest.raises(exception):
>           await cookidoo.remove_custom_recipe_from_calendar(
                datetime.fromisoformat("2025-08-11").date(),
                "01K2CTJ9Y1BABRG5MXK44CFZS4",
            )

tests/test_cookidoo.py:3083: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
cookidoo_api/cookidoo.py:3151: in remove_custom_recipe_from_calendar
    async with self._session.delete(
/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 0x7fa65f19bf50>
url = 
URL('https://cookidoo.ch/planning/de-CH/api/my-day/2025-08-11/recipes/01K2CTJ9Y1BABRG5MXK44CFZS4?recipeSource=CUSTOMER')
method = 'delete', request_headers = {'ACCEPT': 'application/json'}
status = <HTTPStatus.UNAUTHORIZED: 401>, body = b'not json'
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>
reason = 'Unauthorized'

    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_cookidoo.py::TestLogin::test_login_success - TypeError: Cli...
FAILED tests/test_cookidoo.py::TestLogin::test_login_page_unreachable - TypeE...
FAILED tests/test_cookidoo.py::TestLogin::test_login_page_parse_error - TypeE...
FAILED tests/test_cookidoo.py::TestLogin::test_login_invalid_credentials - Ty...
FAILED 
tests/test_cookidoo.py::TestCookiePersistence::test_corrupted_cookies_recovery
FAILED tests/test_cookidoo.py::TestGetUserInfo::test_get_user_info - TypeErro...
FAILED tests/test_cookidoo.py::TestGetUserInfo::test_unauthorized - TypeError...
FAILED 
tests/test_cookidoo.py::TestGetUserInfo::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetUserInfo::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestGetActiveSubscription::test_get_active_subscription
FAILED 
tests/test_cookidoo.py::TestGetActiveSubscription::test_get_inactive_subscription
FAILED tests/test_cookidoo.py::TestGetActiveSubscription::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestGetActiveSubscription::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetActiveSubscription::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetRecipeDetails::test_get_recipe_details
FAILED tests/test_cookidoo.py::TestGetRecipeDetails::test_unauthorized - Type...
FAILED 
tests/test_cookidoo.py::TestGetRecipeDetails::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetRecipeDetails::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetCustomRecipe::test_get_custom_recipe - ...
FAILED tests/test_cookidoo.py::TestGetCustomRecipe::test_unauthorized - TypeE...
FAILED 
tests/test_cookidoo.py::TestGetCustomRecipe::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetCustomRecipe::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestAddCustomRecipe::test_add_custom_recipe - ...
FAILED tests/test_cookidoo.py::TestAddCustomRecipe::test_unauthorized - TypeE...
FAILED 
tests/test_cookidoo.py::TestAddCustomRecipe::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddCustomRecipe::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestRemoveCustomRecipe::test_remove_custom_recipe
FAILED tests/test_cookidoo.py::TestRemoveCustomRecipe::test_unauthorized - Ty...
FAILED 
tests/test_cookidoo.py::TestRemoveCustomRecipe::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestGetShoppingListRecipes::test_get_shopping_list_recipes
FAILED tests/test_cookidoo.py::TestGetShoppingListRecipes::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestGetShoppingListRecipes::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetShoppingListRecipes::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestGetIngredients::test_get_ingredient_items_for_recipes
FAILED 
tests/test_cookidoo.py::TestGetIngredients::test_get_ingredient_items_for_custom_recipes
FAILED tests/test_cookidoo.py::TestGetIngredients::test_unauthorized - TypeEr...
FAILED 
tests/test_cookidoo.py::TestGetIngredients::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetIngredients::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForRecipes::test_add_ingredient_items_for_recipes
FAILED tests/test_cookidoo.py::TestAddIngredientsForRecipes::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForRecipes::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForRecipes::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForRecipes::test_remove_ingredient_items_for_recipes
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForRecipes::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForRecipes::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestEditIngredientsOwnership::test_edit_ingredient_items_ownership
FAILED tests/test_cookidoo.py::TestEditIngredientsOwnership::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestEditIngredientsOwnership::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestEditIngredientsOwnership::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForCustomRecipes::test_add_ingredient_items_for_custom_recipes
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForCustomRecipes::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForCustomRecipes::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddIngredientsForCustomRecipes::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForCustomRecipes::test_remove_ingredient_items_for_custom_recipes
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForCustomRecipes::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveIngredientsForCustomRecipes::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetAdditionalItems::test_get_additional_items
FAILED tests/test_cookidoo.py::TestGetAdditionalItems::test_unauthorized - Ty...
FAILED 
tests/test_cookidoo.py::TestGetAdditionalItems::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetAdditionalItems::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestAddAdditionalItems::test_add_additional_items
FAILED tests/test_cookidoo.py::TestAddAdditionalItems::test_unauthorized - Ty...
FAILED 
tests/test_cookidoo.py::TestAddAdditionalItems::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddAdditionalItems::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveAdditionalItems::test_remove_ingredient_items_for_recipes
FAILED tests/test_cookidoo.py::TestRemoveAdditionalItems::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveAdditionalItems::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItemsOwnership::test_edit_additional_items_ownership
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItemsOwnership::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItemsOwnership::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItemsOwnership::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItems::test_edit_additional_items
FAILED tests/test_cookidoo.py::TestEditAdditionalItems::test_unauthorized - T...
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItems::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestEditAdditionalItems::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestClearShoppingList::test_clear_shopping_list
FAILED tests/test_cookidoo.py::TestClearShoppingList::test_unauthorized - Typ...
FAILED 
tests/test_cookidoo.py::TestClearShoppingList::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestCountManagedLists::test_count_managed_lists
FAILED tests/test_cookidoo.py::TestCountManagedLists::test_unauthorized - Typ...
FAILED 
tests/test_cookidoo.py::TestCountManagedLists::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestCountManagedLists::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetManagedLists::test_get_managed_lists - ...
FAILED tests/test_cookidoo.py::TestGetManagedLists::test_unauthorized - TypeE...
FAILED 
tests/test_cookidoo.py::TestGetManagedLists::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetManagedLists::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddManagedCollection::test_add_managed_collection
FAILED tests/test_cookidoo.py::TestAddManagedCollection::test_unauthorized - ...
FAILED 
tests/test_cookidoo.py::TestAddManagedCollection::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddManagedCollection::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveManagedCollection::test_remove_managed_collection
FAILED tests/test_cookidoo.py::TestRemoveManagedCollection::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveManagedCollection::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestCountCustomLists::test_count_custom_lists
FAILED tests/test_cookidoo.py::TestCountCustomLists::test_unauthorized - Type...
FAILED 
tests/test_cookidoo.py::TestCountCustomLists::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestCountCustomLists::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetCustomLists::test_get_custom_lists - Ty...
FAILED tests/test_cookidoo.py::TestGetCustomLists::test_unauthorized - TypeEr...
FAILED 
tests/test_cookidoo.py::TestGetCustomLists::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetCustomLists::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddCustomCollection::test_add_custom_collection
FAILED tests/test_cookidoo.py::TestAddCustomCollection::test_unauthorized - T...
FAILED 
tests/test_cookidoo.py::TestAddCustomCollection::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddCustomCollection::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveCustomCollection::test_remove_custom_collection
FAILED tests/test_cookidoo.py::TestRemoveCustomCollection::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveCustomCollection::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCustomCollection::test_add_recipes_to_custom_collection
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCustomCollection::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCustomCollection::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCustomCollection::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCustomCollection::test_remove_recipe_from_custom_collection
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCustomCollection::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCustomCollection::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCustomCollection::test_parse_exception[401-CookidooAuthException]
FAILED tests/test_cookidoo.py::TestGetCalendarWeek::test_get_calendar_week - ...
FAILED tests/test_cookidoo.py::TestGetCalendarWeek::test_unauthorized - TypeE...
FAILED 
tests/test_cookidoo.py::TestGetCalendarWeek::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestGetCalendarWeek::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCalendar::test_add_recipes_to_custom_collection
FAILED tests/test_cookidoo.py::TestAddRecipesToCalendar::test_unauthorized - ...
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCalendar::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddRecipesToCalendar::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCalendar::test_remove_recipe_from_calendar
FAILED tests/test_cookidoo.py::TestRemoveRecipeFromCalendar::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCalendar::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestRemoveRecipeFromCalendar::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestAddCustomRecipesToCalendar::test_add_custom_recipes_to_custom_collection
FAILED tests/test_cookidoo.py::TestAddCustomRecipesToCalendar::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestAddCustomRecipesToCalendar::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestAddCustomRecipesToCalendar::test_parse_exception[401-CookidooAuthException]
FAILED 
tests/test_cookidoo.py::TestRemoveCustomRecipeFromCalendar::test_remove_custom_recipe_from_calendar
FAILED 
tests/test_cookidoo.py::TestRemoveCustomRecipeFromCalendar::test_unauthorized
FAILED 
tests/test_cookidoo.py::TestRemoveCustomRecipeFromCalendar::test_parse_exception[200-CookidooParseException]
FAILED 
tests/test_cookidoo.py::TestRemoveCustomRecipeFromCalendar::test_parse_exception[401-CookidooAuthException]
======================= 136 failed, 96 passed in 10.81s ========================
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