Bug 2254981

Summary: python-google-cloud-firestore fails to build with Python 3.13: test suite fails
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-google-cloud-firestoreAssignee: Orphan Owner <extras-orphan>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: extras-orphan, fkolwa, ksurma, mhroncok, nolear, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-26 19:30:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2023-12-18 10:24:18 UTC
python-google-cloud-firestore fails to build with Python 3.13.0a2.


____ ERROR at teardown of test_asyncdocumentreference_get_with_transaction _____

cls = <class '_pytest.runner.CallInfo'>
func = <function call_runtest_hook.<locals>.<lambda> at 0x7f99ce27c220>
when = 'teardown'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)

    @classmethod
    def from_call(
        cls,
        func: "Callable[[], TResult]",
        when: "Literal['collect', 'setup', 'call', 'teardown']",
        reraise: Optional[
            Union[Type[BaseException], Tuple[Type[BaseException], ...]]
        ] = None,
    ) -> "CallInfo[TResult]":
        """Call func, wrapping the result in a CallInfo.
    
        :param func:
            The function to call. Called without arguments.
        :param when:
            The phase in which the function is called.
        :param reraise:
            Exception or exceptions that shall propagate if raised by the
            function, instead of being wrapped in the CallInfo.
        """
        excinfo = None
        start = timing.time()
        precise_start = timing.perf_counter()
        try:
>           result: Optional[TResult] = func()

/usr/lib/python3.13/site-packages/_pytest/runner.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.13/site-packages/_pytest/runner.py:262: in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
/usr/lib/python3.13/site-packages/pluggy/_hooks.py:493: in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
/usr/lib/python3.13/site-packages/pluggy/_manager.py:115: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/usr/lib/python3.13/site-packages/_pytest/unraisableexception.py:93: in pytest_runtest_teardown
    yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def unraisable_exception_runtest_hook() -> Generator[None, None, None]:
        with catch_unraisable_exception() as cm:
            yield
            if cm.unraisable:
                if cm.unraisable.err_msg is not None:
                    err_msg = cm.unraisable.err_msg
                else:
                    err_msg = "Exception ignored in"
                msg = f"{err_msg}: {cm.unraisable.object!r}\n\n"
                msg += "".join(
                    traceback.format_exception(
                        cm.unraisable.exc_type,
                        cm.unraisable.exc_value,
                        cm.unraisable.exc_traceback,
                    )
                )
>               warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
E               pytest.PytestUnraisableExceptionWarning: Exception ignored in: <async_generator object AsyncIter.__aiter__ at 0x7f99cbae8340>
E               
E               Traceback (most recent call last):
E                 File "/usr/lib64/python3.13/asyncio/base_events.py", line 734, in close
E                   self._ready.clear()
E               RuntimeWarning: coroutine method 'aclose' of 'AsyncIter.__aiter__' was never awaited

=========================== short test summary info ============================
ERROR tests/unit/v1/test_async_client.py::test_asyncclient_get_all_unknown_result
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_not_found
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_default
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_w_retry_timeout
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_with_field_path
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_with_multiple_field_paths
ERROR tests/unit/v1/test_async_document.py::test_asyncdocumentreference_get_with_transaction
==== 2065 passed, 44 skipped, 60 deselected, 1 xpassed, 7 errors in 15.29s =====



https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06750736-python-google-cloud-firestore/

For all our attempts to build python-google-cloud-firestore with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-google-cloud-firestore/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Maxwell G 2024-01-26 19:30:48 UTC
Automation has figured out the package is retired in Fedora Rawhide.

If you like it to be unretired, please open a ticket at
https://pagure.io/releng/new_issue?template=package_unretirement