Skip to content

marshmallow: remove deprecation warning #193

marshmallow: remove deprecation warning

marshmallow: remove deprecation warning #193

Triggered via pull request April 22, 2024 14:23
Status Failure
Total duration 2m 37s
Artifacts

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

54 errors and 2 warnings
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2): tests/test_custom_fields.py#L1
isort-check SanitizedUnicode, TrimmedString, ) - from invenio_records_rest.utils import marshmallow_major_version if marshmallow_major_version >= 3:
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2): tests/test_marshmallow_loader.py#L1
isort-check from helpers import get_json from invenio_records.models import RecordMetadata from invenio_rest.serializer import BaseSchema as Schema -from marshmallow import ValidationError -from marshmallow import fields +from marshmallow import ValidationError, fields from invenio_records_rest.loaders import json_pid_checker from invenio_records_rest.loaders.marshmallow import ( from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema."""
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2): tests/test_marshmallow_loader.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:23:44.764362 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:25:14.886526 +0000 @@ -23,10 +23,11 @@ marshmallow_loader, ) from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema.""" title = fields.Str(required=True, attribute="metadata.mytitle")
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2): invenio_records_rest/utils.py#L1
isort-check """General utility functions module.""" +from functools import partial + import pkg_resources -from functools import partial - import six from flask import abort, current_app, jsonify, make_response, request, url_for from invenio_pidstore.errors import (
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2): invenio_records_rest/utils.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:23:44.764362 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:25:46.897544 +0000 @@ -32,11 +32,13 @@ PIDRedirectedRESTError, PIDUnregisteredRESTError, ) from .proxies import current_records_rest -marshmallow_major_version = int(pkg_resources.get_distribution('marshmallow').version[0]) +marshmallow_major_version = int( + pkg_resources.get_distribution("marshmallow").version[0] +) def build_default_endpoint_prefixes(records_rest_endpoints): """Build the default_endpoint_prefixes map.""" pid_types = set()
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2)
Process completed with exit code 1.
Tests (3.7, pypi, redis, postgresql13, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, mysql8, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, mysql8, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, mysql8, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, postgresql13, redis, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, mysql8, redis, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, postgresql13, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, postgresql13, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.8, pypi, redis, postgresql13, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, postgresql13, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, mysql8, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, mysql8, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, mysql8, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, postgresql13, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, postgresql13, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, postgresql13, redis, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, mysql8, redis, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.9, pypi, redis, postgresql13, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7): tests/test_custom_fields.py#L1
isort-check SanitizedUnicode, TrimmedString, ) - from invenio_records_rest.utils import marshmallow_major_version if marshmallow_major_version >= 3:
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7): tests/test_marshmallow_loader.py#L1
isort-check from helpers import get_json from invenio_records.models import RecordMetadata from invenio_rest.serializer import BaseSchema as Schema -from marshmallow import ValidationError -from marshmallow import fields +from marshmallow import ValidationError, fields from invenio_records_rest.loaders import json_pid_checker from invenio_records_rest.loaders.marshmallow import ( from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema."""
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7): tests/test_marshmallow_loader.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:23:45.840407 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:25:12.867499 +0000 @@ -23,10 +23,11 @@ marshmallow_loader, ) from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema.""" title = fields.Str(required=True, attribute="metadata.mytitle")
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7): invenio_records_rest/utils.py#L1
isort-check """General utility functions module.""" +from functools import partial + import pkg_resources -from functools import partial - import six from flask import abort, current_app, jsonify, make_response, request, url_for from invenio_pidstore.errors import (
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7): invenio_records_rest/utils.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:23:45.836407 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:25:45.558530 +0000 @@ -32,11 +32,13 @@ PIDRedirectedRESTError, PIDUnregisteredRESTError, ) from .proxies import current_records_rest -marshmallow_major_version = int(pkg_resources.get_distribution('marshmallow').version[0]) +marshmallow_major_version = int( + pkg_resources.get_distribution("marshmallow").version[0] +) def build_default_endpoint_prefixes(records_rest_endpoints): """Build the default_endpoint_prefixes map.""" pid_types = set()
Tests (3.7, pypi, redis, postgresql13, rabbitmq, elasticsearch7)
The operation was canceled.
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2): tests/test_custom_fields.py#L1
isort-check SanitizedUnicode, TrimmedString, ) - from invenio_records_rest.utils import marshmallow_major_version if marshmallow_major_version >= 3:
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2): tests/test_marshmallow_loader.py#L1
isort-check from helpers import get_json from invenio_records.models import RecordMetadata from invenio_rest.serializer import BaseSchema as Schema -from marshmallow import ValidationError -from marshmallow import fields +from marshmallow import ValidationError, fields from invenio_records_rest.loaders import json_pid_checker from invenio_records_rest.loaders.marshmallow import ( from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema."""
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2): tests/test_marshmallow_loader.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:23:43.943736 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:25:16.083439 +0000 @@ -23,10 +23,11 @@ marshmallow_loader, ) from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema.""" title = fields.Str(required=True, attribute="metadata.mytitle")
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2): invenio_records_rest/utils.py#L1
isort-check """General utility functions module.""" +from functools import partial + import pkg_resources -from functools import partial - import six from flask import abort, current_app, jsonify, make_response, request, url_for from invenio_pidstore.errors import (
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2): invenio_records_rest/utils.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:23:43.943736 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:25:56.591565 +0000 @@ -32,11 +32,13 @@ PIDRedirectedRESTError, PIDUnregisteredRESTError, ) from .proxies import current_records_rest -marshmallow_major_version = int(pkg_resources.get_distribution('marshmallow').version[0]) +marshmallow_major_version = int( + pkg_resources.get_distribution("marshmallow").version[0] +) def build_default_endpoint_prefixes(records_rest_endpoints): """Build the default_endpoint_prefixes map.""" pid_types = set()
Tests (3.7, pypi, redis, mysql8, rabbitmq, opensearch2)
The operation was canceled.
Tests (3.7, pypi, redis, mysql8, redis, opensearch2)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, mysql8, redis, opensearch2): tests/test_custom_fields.py#L1
isort-check SanitizedUnicode, TrimmedString, ) - from invenio_records_rest.utils import marshmallow_major_version if marshmallow_major_version >= 3:
Tests (3.7, pypi, redis, mysql8, redis, opensearch2): tests/test_marshmallow_loader.py#L1
isort-check from helpers import get_json from invenio_records.models import RecordMetadata from invenio_rest.serializer import BaseSchema as Schema -from marshmallow import ValidationError -from marshmallow import fields +from marshmallow import ValidationError, fields from invenio_records_rest.loaders import json_pid_checker from invenio_records_rest.loaders.marshmallow import ( from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema."""
Tests (3.7, pypi, redis, mysql8, redis, opensearch2): tests/test_marshmallow_loader.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:23:46.607302 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:25:25.329380 +0000 @@ -23,10 +23,11 @@ marshmallow_loader, ) from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema.""" title = fields.Str(required=True, attribute="metadata.mytitle")
Tests (3.7, pypi, redis, mysql8, redis, opensearch2): invenio_records_rest/utils.py#L1
isort-check """General utility functions module.""" +from functools import partial + import pkg_resources -from functools import partial - import six from flask import abort, current_app, jsonify, make_response, request, url_for from invenio_pidstore.errors import (
Tests (3.7, pypi, redis, mysql8, redis, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, mysql8, redis, opensearch2): invenio_records_rest/utils.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:23:46.607302 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:26:03.303495 +0000 @@ -32,11 +32,13 @@ PIDRedirectedRESTError, PIDUnregisteredRESTError, ) from .proxies import current_records_rest -marshmallow_major_version = int(pkg_resources.get_distribution('marshmallow').version[0]) +marshmallow_major_version = int( + pkg_resources.get_distribution("marshmallow").version[0] +) def build_default_endpoint_prefixes(records_rest_endpoints): """Build the default_endpoint_prefixes map.""" pid_types = set()
Tests (3.7, pypi, redis, mysql8, redis, elasticsearch7)
The operation was canceled.
Tests (3.7, pypi, redis, mysql8, redis, opensearch2)
The operation was canceled.
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7)
The job was canceled because "_3_7_pypi_redis_postgre_3" failed.
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7): tests/test_custom_fields.py#L1
isort-check SanitizedUnicode, TrimmedString, ) - from invenio_records_rest.utils import marshmallow_major_version if marshmallow_major_version >= 3:
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7): tests/test_marshmallow_loader.py#L1
isort-check from helpers import get_json from invenio_records.models import RecordMetadata from invenio_rest.serializer import BaseSchema as Schema -from marshmallow import ValidationError -from marshmallow import fields +from marshmallow import ValidationError, fields from invenio_records_rest.loaders import json_pid_checker from invenio_records_rest.loaders.marshmallow import ( from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema."""
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7): tests/test_marshmallow_loader.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:23:45.224553 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/tests/test_marshmallow_loader.py 2024-04-22 14:25:17.333747 +0000 @@ -23,10 +23,11 @@ marshmallow_loader, ) from invenio_records_rest.schemas import Nested from invenio_records_rest.schemas.fields import PersistentIdentifier from invenio_records_rest.utils import marshmallow_major_version + class _TestSchema(Schema): """Test schema.""" title = fields.Str(required=True, attribute="metadata.mytitle")
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7): invenio_records_rest/utils.py#L1
isort-check """General utility functions module.""" +from functools import partial + import pkg_resources -from functools import partial - import six from flask import abort, current_app, jsonify, make_response, request, url_for from invenio_pidstore.errors import (
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7): invenio_records_rest/utils.py#L1
Black format check --- /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:23:45.224553 +0000 +++ /home/runner/work/invenio-records-rest/invenio-records-rest/invenio_records_rest/utils.py 2024-04-22 14:25:58.165674 +0000 @@ -32,11 +32,13 @@ PIDRedirectedRESTError, PIDUnregisteredRESTError, ) from .proxies import current_records_rest -marshmallow_major_version = int(pkg_resources.get_distribution('marshmallow').version[0]) +marshmallow_major_version = int( + pkg_resources.get_distribution("marshmallow").version[0] +) def build_default_endpoint_prefixes(records_rest_endpoints): """Build the default_endpoint_prefixes map.""" pid_types = set()
Tests (3.7, pypi, redis, mysql8, rabbitmq, elasticsearch7)
The operation was canceled.
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (3.7, pypi, redis, postgresql13, redis, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/