Closed
Description
While updating the packaging for this package for openSUSE, we run the test suite and it errored on us:
Environment details
- OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27)
- Python version:
python --version
3.9.12 (but also with 3.8.13 and 3.10.4) - pip version:
pip --version
22.0.4 google-api-core
version:pip show google-api-core
2.7.2
Steps to reproduce
- see below
Stack trace
[ 9s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/python-google-api-core-2.7.2-0.x86_64/usr/lib/python3.9/site-packages
[ 9s] + PYTHONDONTWRITEBYTECODE=1
[ 9s] + pytest-3.9 --ignore=_build.python39 --ignore=_build.python310 --ignore=_build.python38 -v
[ 9s] ============================= test session starts ==============================
[ 9s] platform linux -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0 -- /usr/bin/python3.9
[ 9s] cachedir: .pytest_cache
[ 9s] rootdir: /home/abuild/rpmbuild/BUILD/google-api-core-2.7.2
[ 9s] plugins: asyncio-0.17.2
[ 9s] asyncio: mode=legacy
[ 10s] collecting ... collected 614 items / 1 error
[ 10s]
[ 10s] ==================================== ERRORS ====================================
[ 10s] ______________ ERROR collecting tests/unit/test_rest_streaming.py ______________
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:129: in FindFileContainingSymbol
[ 10s] return self._file_desc_protos_by_symbol[symbol]
[ 10s] E KeyError: 'Genre'
[ 10s]
[ 10s] During handling of the above exception, another exception occurred:
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:138: in FindFileContainingSymbol
[ 10s] return self._file_desc_protos_by_symbol[top_level]
[ 10s] E KeyError: ''
[ 10s]
[ 10s] During handling of the above exception, another exception occurred:
[ 10s] tests/unit/test_rest_streaming.py:36: in <module>
[ 10s] class Genre(proto.Enum):
[ 10s] /usr/lib/python3.9/site-packages/proto/enums.py:102: in __new__
[ 10s] file_info.generate_file_pb(new_class=cls, fallback_salt=full_name)
[ 10s] /usr/lib/python3.9/site-packages/proto/_file_info.py:138: in generate_file_pb
[ 10s] descriptor = pool.FindEnumTypeByName(full_name)
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:534: in FindEnumTypeByName
[ 10s] self._FindFileContainingSymbolInDb(full_name)
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:728: in _FindFileContainingSymbolInDb
[ 10s] raise error
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:723: in _FindFileContainingSymbolInDb
[ 10s] file_proto = self._internal_db.FindFileContainingSymbol(symbol)
[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:141: in FindFileContainingSymbol
[ 10s] raise KeyError(symbol)
[ 10s] E KeyError: 'Genre'
[ 10s] =============================== warnings summary ===============================
[ 10s] ../../../../../usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191
[ 10s] /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
[ 10s] config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
[ ... this warning repeated many times ... ]
[ 10s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[ 10s] =========================== short test summary info ============================
[ 10s] ERROR tests/unit/test_rest_streaming.py - KeyError: 'Genre'
[ 10s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[ 10s] ======================== 19 warnings, 1 error in 1.39s =========================
[ 10s] error: Bad exit status from /var/tmp/rpm-tmp.4T1eKX (%check)
[ 10s]
Complete build log with all details of packages used and steps taken to reproduce.