Invenio Testrig - Warnings Report

Started: 2026-06-18 17:55:42 UTC

Last updated: 2026-06-18 19:04:06 UTC

Python: 3.14.2

Patch Mode: Upstream baseline (patches rebased on upstream, unpatched are upstream)

Test Scope: All packages

Test Mode: Test patched first, retry unpatched on failure

📊Overall Statistics
77
Unique Warnings
43
Packages with Warnings
412
Total Occurrences
⚠️ All Warnings (77 unique warnings)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
67 occurrences
ResourceWarning: unclosed database in
67 occurrences
DeprecationWarning: No path_separator found in configuration; falling back to legacy splitting on spaces/commas for version_locations. Consider adding path_separator=os to Alembic config.
17 occurrences
DeprecationWarning: Call to deprecated setex. (Use 'set' instead.) -- Deprecated since version 2.6.12.
12 occurrences
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
8 occurrences
SADeprecationWarning: The from_engine() method on Inspector is deprecated and will be removed in a future release. Please use the sqlalchemy.inspect() function on an Engine or Connection in order to acquire an Inspector. (deprecated since: 1.4)
8 occurrences
UserWarning: autoincrement and existing_autoincrement only make sense for MySQL
8 occurrences
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('flask_admin')`.
7 occurrences
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('flask_admin.contrib')`.
7 occurrences
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
7 occurrences
LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now available as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
7 occurrences
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
7 occurrences
DeprecationWarning: context_schema will in future only be set if and only if context is given.
5 occurrences
DeprecationWarning: Remember me support has been removed.
4 occurrences
InsecureKeyLengthWarning: The HMAC key is 9 bytes long, which is below the minimum recommended length of 32 bytes for SHA256. See RFC 7518 Section 3.2.
4 occurrences
SAWarning: Object of type not in session, add operation along 'Bucket.objects' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation. Consider using ``no_autoflush`` context manager if this warning happened while initializing objects.)
4 occurrences
DeprecationWarning: get_user method is deprecated, user get_user_by_email/get_user_by_id
3 occurrences
UserWarning: Please specify the OAISERVER_ID_PREFIX configuration.default value is: oai:runnervm7b5n9:
3 occurrences
UserWarning: Set configuration variable SECRET_KEY with random string
3 occurrences
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2 occurrences
DeprecationWarning: The _get_fs method is deprecated and will be removed. Please implement the abstract FileStorage instead of extending the PyFSFileStorage class.
2 occurrences
DeprecationWarning: The patch() method is deprecated and will be removed.
2 occurrences
DeprecationWarning: Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
2 occurrences
PytestConfigWarning: Unknown config option: pep8ignore
2 occurrences
PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
2 occurrences
Package Count
invenio-pidstore 2
RuntimeWarning: You are overriding the default OAuthlib "URL encoded" set of valid characters. Make sure that the characters defined in oauthlib.common.urlencoded are indeed limitting your needs.
2 occurrences
SAWarning: Object of type not in session, add operation along 'User.oauth2clients' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation. Consider using ``no_autoflush`` context manager if this warning happened while initializing objects.)
2 occurrences
Package Count
invenio-oauth2server 2
DeprecationWarning: CommunityRelationMixin has been moved to invenio_rdm_records.records.models. Importing from invenio_communities.records.records.models is deprecated and will be removed in a future release.
1 occurrence
Package Count
invenio-communities 1
DeprecationWarning: CryptContext.hash(): 'scheme' keyword is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0
1 occurrence
Package Count
invenio-accounts 1
DeprecationWarning: DynamicPermission is scheduled for removal.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Flags should be stored in dicts and not in tuples. The next version of WTForms will abandon support for flags in tuples.
1 occurrence
Package Count
invenio-accounts 1
DeprecationWarning: Passing a session object directly is deprecated and will be removed in version 3.0. Please pass the SQLAlchemy db object instead. Note: the parameter will be renamed from 'session' to 'db' in version 3.0. Example: ModelView(User, db) instead of ModelView(User, db.session)
1 occurrence
Package Count
invenio-oauthclient 1
DeprecationWarning: Please use hash_password instead of encrypt_password.
1 occurrence
Package Count
invenio-records-ui 1
DeprecationWarning: Please use the new command allow-action-for-role instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command allow-action-for-user instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command deny-action-for-role instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command deny-action-for-user instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command remove-action-from-role instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command remove-action-from-user instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: Please use the new command remove-action-global instead.
1 occurrence
Package Count
invenio-access 1
DeprecationWarning: The 'record_to_index' function is no longer expected to return a tuple (index, doc_type), instead it should only return the index. Support for the tuple will be removed in a future version of 'invenio-indexer'.
1 occurrence
Package Count
invenio-vocabularies 1
DeprecationWarning: The cern contrib is deprecated. Please use the generic keycloak instead.
1 occurrence
Package Count
invenio-oauthclient 1
DeprecationWarning: `es_clear` fixture is deprecated, use `search_clear` instead.
1 occurrence
Package Count
invenio-app-rdm 1
DeprecationWarning: current_userprofile is deprecated, use current_user instead
1 occurrence
Package Count
invenio-userprofiles 1
DeprecationWarning: passing settings to invenio_aes_encrypted_email.hash() is deprecated, and won't be supported in Passlib 2.0; use 'invenio_aes_encrypted_email.using(**settings).hash(secret)' instead
1 occurrence
Package Count
invenio-accounts 1
DeprecationWarning: sentry_sdk.configure_scope is deprecated and will be removed in the next major version. Please consult our migration guide to learn how to migrate to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#scope-configuring
1 occurrence
Package Count
invenio-logging 1
DeprecationWarning: subject_nested is deprecated. Use subject_combined instead.
1 occurrence
Package Count
invenio-app-rdm 1
DeprecationWarning: the method passlib.context.CryptContext.encrypt() is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, use CryptContext.hash() instead.
1 occurrence
Package Count
invenio-accounts 1
InsecureKeyLengthWarning: The HMAC key is 4 bytes long, which is below the minimum recommended length of 32 bytes for SHA256. See RFC 7518 Section 3.2.
1 occurrence
Package Count
invenio-oauthclient 1
InsecureKeyLengthWarning: The HMAC key is 6 bytes long, which is below the minimum recommended length of 32 bytes for SHA256. See RFC 7518 Section 3.2.
1 occurrence
Package Count
invenio-oauthclient 1
PendingDeprecationWarning: Schema().dump().data and Schema().dump().errors as well as Schema().load().data and Schema().loads().dataattributes are deprecated in marshmallow v3.x.
1 occurrence
Package Count
invenio-records-files 1
PendingDeprecationWarning: The WSGI_PROXIES configuration is deprecated and it will be removed, use PROXYFIX_CONFIG instead
1 occurrence
Package Count
invenio-base 1
PendingDeprecationWarning: This feature is deprecated.
1 occurrence
Package Count
invenio-logging 1
PendingDeprecationWarning: Usage of model and modelview kwargs are deprecated in favor of view_class, args and kwargs.
1 occurrence
Package Count
invenio-files-rest 1
PendingDeprecationWarning: `use_markdown=` will be deprecated in a future version of rich-click. Please use `text_markup=` instead.
1 occurrence
Package Count
invenio-i18n 1
PendingDeprecationWarning: `use_rich_markup=` will be deprecated in a future version of rich-click. Please use `text_markup=` instead.
1 occurrence
Package Count
invenio-i18n 1
PytestCollectionWarning: cannot collect test class 'TestCustomView' because it has a __init__ constructor (from: tests/test_base.py)
1 occurrence
Package Count
invenio-administration 1
PytestCollectionWarning: cannot collect test class 'TestPermissionPolicy' because it has a __init__ constructor (from: tests/test_permissions_base.py)
1 occurrence
PytestCollectionWarning: cannot collect test class 'TestReader' because it has a __init__ constructor (from: tests/resources/test_tasks_resources.py)
1 occurrence
Package Count
invenio-vocabularies 1
PytestCollectionWarning: cannot collect test class 'TestSchema' because it has a __init__ constructor (from: tests/test_marshmallow_utils.py)
1 occurrence
Package Count
invenio-administration 1
PytestCollectionWarning: cannot collect test class 'TestWriter' because it has a __init__ constructor (from: tests/resources/test_tasks_resources.py)
1 occurrence
Package Count
invenio-vocabularies 1
RuntimeWarning: Results are not stored in backend and should not be retrieved when task_always_eager is enabled, unless task_store_eager_result is enabled.
1 occurrence
Package Count
invenio-webhooks 1
SADeprecationWarning: Query.values() is deprecated and will be removed in a future release. Please use Query.with_entities() (deprecated since: 1.4)
1 occurrence
Package Count
invenio-indexer 1
SAWarning: Object of type not in session, add operation along 'User.oauth2clients' will not proceed
1 occurrence
Package Count
invenio-oauth2server 1
SAWarning: Object of type not in session, add operation along 'User.oauth2tokens' will not proceed
1 occurrence
Package Count
invenio-oauth2server 1
SAWarning: This declarative base already contains a class with the same class name and module name as invenio_records_resources.factories.factory.MyRecordMetadata, and will be replaced in the string-lookup table.
1 occurrence
SyntaxWarning: "\?" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\?"? A raw string is also an option.
1 occurrence
Package Count
invenio-records-rest 1
SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\w"? A raw string is also an option.
1 occurrence
Package Count
invenio-requests 1
SyntaxWarning: "is" with 'int' literal. Did you mean "=="?
1 occurrence
Package Count
invenio-records-rest 1
UserWarning: In ModePIDFieldVocabularyMixin the context_schema is not defined, check why not!
1 occurrence
Package Count
invenio-vocabularies 1
UserWarning: OpenSearch v2 mappings files not found, falling back to Elasticsearch v7 mappings for module data. Please add the missing OpenSearch os-v2 mappings.
1 occurrence
Package Count
invenio-records-files 1
UserWarning: OpenSearch v2 mappings files not found, falling back to Elasticsearch v7 mappings for module mock_module.mappings. Please add the missing OpenSearch os-v2 mappings.
1 occurrence
Package Count
invenio-vocabularies 1
UserWarning: Test
1 occurrence
Package Count
invenio-base 1
UserWarning: This streaming does not support multiple storage backends.
1 occurrence
Package Count
invenio-files-rest 1
UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
1 occurrence
Package Count
invenio-app 1