Skip to content

checks: add check tab #5761

checks: add check tab

checks: add check tab #5761

Triggered via pull request March 22, 2025 08:50
Status Failure
Total duration 4m 43s
Artifacts

tests.yml

on: pull_request
Matrix: JS / Tests
Matrix: Python / Tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 20 warnings
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.9, postgresql14, opensearch2): invenio_app_rdm/requests_ui/views/requests.py#L0
Black format check --- /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/requests_ui/views/requests.py 2025-03-22 08:50:36.850070+00:00 +++ /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/requests_ui/views/requests.py 2025-03-22 08:54:30.354799+00:00 @@ -90,11 +90,13 @@ else: # read draft record = current_rdm_records_service.read_draft( g.identity, pid, expand=True ) - record_uuid = current_rdm_records_service.draft_cls.pid.resolve(pid, registered_only=False).id + record_uuid = current_rdm_records_service.draft_cls.pid.resolve( + pid, registered_only=False + ).id except (NoResultFound, PIDDoesNotExistError): # We catch PIDDoesNotExistError because a published record with # a soft-deleted draft will raise this error. The lines below # will catch the case that a id does not exists and raise a # PIDDoesNotExistError that can be handled as 404 in the resource @@ -118,11 +120,16 @@ "read_files", "review", "read", ] ) - return dict(permissions=permissions, record_ui=record_ui, record=record, record_uuid=record_uuid) + return dict( + permissions=permissions, + record_ui=record_ui, + record=record, + record_uuid=record_uuid, + ) return dict(permissions={}, record_ui=None, record=None, record_uuid=None) def _resolve_record_or_draft_files(record, request):
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): invenio_app_rdm/requests_ui/views/requests.py#L0
Black format check --- /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/requests_ui/views/requests.py 2025-03-22 08:50:36.791145+00:00 +++ /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/requests_ui/views/requests.py 2025-03-22 08:54:52.597323+00:00 @@ -90,11 +90,13 @@ else: # read draft record = current_rdm_records_service.read_draft( g.identity, pid, expand=True ) - record_uuid = current_rdm_records_service.draft_cls.pid.resolve(pid, registered_only=False).id + record_uuid = current_rdm_records_service.draft_cls.pid.resolve( + pid, registered_only=False + ).id except (NoResultFound, PIDDoesNotExistError): # We catch PIDDoesNotExistError because a published record with # a soft-deleted draft will raise this error. The lines below # will catch the case that a id does not exists and raise a # PIDDoesNotExistError that can be handled as 404 in the resource @@ -118,11 +120,16 @@ "read_files", "review", "read", ] ) - return dict(permissions=permissions, record_ui=record_ui, record=record, record_uuid=record_uuid) + return dict( + permissions=permissions, + record_ui=record_ui, + record=record, + record_uuid=record_uuid, + ) return dict(permissions={}, record_ui=None, record=None, record_uuid=None) def _resolve_record_or_draft_files(record, request):
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/utils.py#L361
`Field` should not be instantiated. Use `fields.Raw` or another field subclass instead.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_vocabularies/config.py#L15
Implicit imports (e.g., 'import idutils; idutils.function;') might be removed in the next major version. Please use explicit imports (e.g., 'from idutils import function;') instead.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_vocabularies/config.py#L15
Implicit imports (e.g., 'import idutils; idutils.function;') might be removed in the next major version. Please use explicit imports (e.g., 'from idutils import function;') instead.