Skip to content

services: added record extension registry #5652

services: added record extension registry

services: added record extension registry #5652

Triggered via pull request November 13, 2024 16:19
Status Failure
Total duration 27m 37s
Artifacts

tests.yml

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

Annotations

6 errors
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
isort-check from invenio_requests.services.requests.config import RequestSearchOptions from requests import Request from werkzeug.local import LocalProxy +from werkzeug.utils import cached_property from invenio_rdm_records.records.processors.tiles import TilesProcessor StatusParam, ) from .sort import VerifiedRecordsSortParam -from werkzeug.utils import cached_property def is_draft_and_has_review(record, ctx):
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:20:05.783870+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:44:12.534607+00:00 @@ -405,11 +405,13 @@ self._app.extensions["invenio-rdm-records"], "record_service_registry", {} ) new_cls = cfg_cls for name, _ext in exts.items(): tmp = _ext(self._app, new_cls) - assert type(tmp) == type(cfg_cls), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}" + assert type(tmp) == type( + cfg_cls + ), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}" new_cls = tmp return new_cls draft_cls = FromConfig("RDM_DRAFT_CLS", default=RDMDraft)
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
isort-check from invenio_requests.services.requests.config import RequestSearchOptions from requests import Request from werkzeug.local import LocalProxy +from werkzeug.utils import cached_property from invenio_rdm_records.records.processors.tiles import TilesProcessor StatusParam, ) from .sort import VerifiedRecordsSortParam -from werkzeug.utils import cached_property def is_draft_and_has_review(record, ctx):
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:20:04.953677+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:46:25.174477+00:00 @@ -405,11 +405,13 @@ self._app.extensions["invenio-rdm-records"], "record_service_registry", {} ) new_cls = cfg_cls for name, _ext in exts.items(): tmp = _ext(self._app, new_cls) - assert type(tmp) == type(cfg_cls), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}" + assert type(tmp) == type( + cfg_cls + ), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}" new_cls = tmp return new_cls draft_cls = FromConfig("RDM_DRAFT_CLS", default=RDMDraft)
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.