Bug 2374299 - python-google-api-core: FTBFS in Fedora Rawhide with tests: AssertionError: assert 'caught unexpected exception' in '' [NEEDINFO]
Summary: python-google-api-core: FTBFS in Fedora Rawhide with tests: AssertionError: a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-google-api-core
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jonathan Wright
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.14 F43FTBFS PYC3.14rc3
TreeView+ depends on / blocked
 
Reported: 2025-06-23 11:37 UTC by Karolina Surma
Modified: 2025-11-05 02:11 UTC (History)
6 users (show)

Fixed In Version: python-google-api-core-2.26.0-2.fc44 python-google-api-core-2.27.0-1.fc43
Clone Of:
Environment:
Last Closed: 2025-10-27 14:36:38 UTC
Type: ---
Embargoed:
mhroncok: needinfo? (jonathan)
mhroncok: needinfo? (jonathan)
mhroncok: needinfo? (jonathan)
ksurma: needinfo? (jonathan)


Attachments (Terms of Use)

Description Karolina Surma 2025-06-23 11:37:22 UTC
Description of problem:
Package python-google-api-core fails to build from source in Fedora Rawhide with tests.

Version-Release number of selected component (if applicable):
2.11.1-13.fc43

Steps to Reproduce:
Run a local mockbuild with the current state of dist-git

Reproducible: Always

Actual Results:
_____________ TestBackgroundConsumer.test_consumer_expected_error ______________
self = <tests.unit.test_bidi.TestBackgroundConsumer object at 0x7fffa4d67100>
caplog = <_pytest.logging.LogCaptureFixture object at 0x7fffa3e1ba10>
    def test_consumer_expected_error(self, caplog):
        caplog.set_level(logging.DEBUG)
    
        bidi_rpc = mock.create_autospec(bidi.BidiRpc, instance=True)
        bidi_rpc.is_active = True
        bidi_rpc.recv.side_effect = exceptions.ServiceUnavailable("Gone away")
    
        on_response = mock.Mock(spec=["__call__"])
    
        consumer = bidi.BackgroundConsumer(bidi_rpc, on_response)
    
        consumer.start()
    
        # Wait for the consumer's thread to exit.
        while consumer.is_active:
            pass
    
        on_response.assert_not_called()
        bidi_rpc.recv.assert_called_once()
>       assert "caught error" in caplog.text
E       AssertionError: assert 'caught error' in ''
E        +  where '' = <_pytest.logging.LogCaptureFixture object at 0x7fffa3e1ba10>.text
tests/unit/test_bidi.py:826: AssertionError
____________ TestBackgroundConsumer.test_consumer_unexpected_error _____________
self = <tests.unit.test_bidi.TestBackgroundConsumer object at 0x7fffa4eead50>
caplog = <_pytest.logging.LogCaptureFixture object at 0x7fffa3c511d0>
    def test_consumer_unexpected_error(self, caplog):
        caplog.set_level(logging.DEBUG)
    
        bidi_rpc = mock.create_autospec(bidi.BidiRpc, instance=True)
        bidi_rpc.is_active = True
        bidi_rpc.recv.side_effect = ValueError()
    
        on_response = mock.Mock(spec=["__call__"])
    
        consumer = bidi.BackgroundConsumer(bidi_rpc, on_response)
    
        consumer.start()
    
        # Wait for the consumer's thread to exit.
        while consumer.is_active:
            pass  # pragma: NO COVER (race condition)
    
        on_response.assert_not_called()
        bidi_rpc.recv.assert_called_once()
>       assert "caught unexpected exception" in caplog.text
E       AssertionError: assert 'caught unexpected exception' in ''
E        +  where '' = <_pytest.logging.LogCaptureFixture object at 0x7fffa3c511d0>.text
tests/unit/test_bidi.py:847: AssertionError
----------------------------- Captured stderr call -----------------------------
Thread-ConsumeBidirectionalStream caught unexpected exception  and will exit.
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-google-api-core-2.11.1-build/BUILDROOT/usr/lib/python3.14/site-packages/google/api_core/bidi.py", line 655, in _thread_main
    response = self._bidi_rpc.recv()
  File "/usr/lib64/python3.14/unittest/mock.py", line 1175, in __call__
    return self._mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/unittest/mock.py", line 1179, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/unittest/mock.py", line 1234, in _execute_mock_call
    raise effect
ValueError

Comment 1 Miro Hrončok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 2 Miro Hrončok 2025-09-23 18:55:58 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc3+ bytecode in Fedora 43.

The Final Freeze of Fedora 43 is scheduled to start on 2025-10-07. Please prioritize this bugzilla accordingly.

Thanks.

Comment 3 Karolina Surma 2025-09-29 14:21:09 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc3+ bytecode in Fedora 43.

The Final Freeze of Fedora 43 is scheduled to start next week. Please prioritize this bugzilla accordingly.

Thanks.

Comment 4 Fedora Update System 2025-10-27 14:30:47 UTC
FEDORA-2025-3ad919ee9f (python-google-api-core-2.26.0-2.fc44, python-google-auth-2.41.1-2.fc44, and 1 more) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3ad919ee9f

Comment 5 Fedora Update System 2025-10-27 14:31:05 UTC
FEDORA-2025-9eb8273eef (python-google-api-core-2.26.0-2.fc43, python-google-auth-2.41.1-2.fc43, and 1 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9eb8273eef

Comment 6 Fedora Update System 2025-10-27 14:36:38 UTC
FEDORA-2025-3ad919ee9f (python-google-api-core-2.26.0-2.fc44, python-google-auth-2.41.1-2.fc44, and 1 more) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2025-10-28 17:23:24 UTC
FEDORA-2025-9eb8273eef has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9eb8273eef`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9eb8273eef

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-11-05 02:11:54 UTC
FEDORA-2025-9eb8273eef (python-google-api-core-2.27.0-1.fc43, python-google-auth-2.41.1-2.fc43, and 1 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.