Skip to content

datastream: updates in reader request and logging #2026

datastream: updates in reader request and logging

datastream: updates in reader request and logging #2026

Triggered via pull request January 27, 2026 10:21
Status Failure
Total duration 5m 4s
Artifacts

tests.yml

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

Annotations

6 errors and 30 warnings
Python / Tests (3.11, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.11, postgresql14, opensearch2): tests/datastreams/test_transformers.py#L0
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/datastreams/test_transformers.py 2026-01-27 10:21:34.305318+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/datastreams/test_transformers.py 2026-01-27 10:25:10.745049+00:00 @@ -41,12 +41,11 @@ }, } def test_xml_transformer(expected_from_xml): - bytes_xml_entry = StreamEntry( - b""" + bytes_xml_entry = StreamEntry(b""" <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns:top_level_field>top-level single value</ns:top_level_field> <ns:top_level_object_field> <ns:some>value</ns:some> <ns:another>value too</ns:another> @@ -60,20 +59,18 @@ <ns:element_bar>value2</ns:element_bar> <ns:element_qux>value2</ns:element_qux> </ns:array_element_object> </ns:nested_array_field array_attr="value"> </ns:top_level_object_field> - """ - ) + """) transformer = XMLTransformer() assert expected_from_xml == transformer.apply(bytes_xml_entry).entry def test_bad_xml_transformer(): - bytes_xml_entry = StreamEntry( - b""" + bytes_xml_entry = StreamEntry(b""" <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns:top_level_field>top-level single value</ns:top_level_field> <ns:top_level_object_field> <ns:some>value</ns:some> <ns:another>value too</ns:another> @@ -87,12 +84,11 @@ <ns:element_bar>value2</ns:element_bar> <ns:element_qux>value2</ns:element_qux> </ns:array_element_object> </ns:nested_array_field array_attr="value"> </ns:top_level_object_field> - """ - ) + """) transformer = XMLTransformer(root_element="field_two") with pytest.raises(TransformerError): transformer.apply(bytes_xml_entry)
Python / Tests (3.11, postgresql14, opensearch2): tests/contrib/awards/test_awards_jsonschema.py#L0
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/contrib/awards/test_awards_jsonschema.py 2026-01-27 10:21:34.303318+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/contrib/awards/test_awards_jsonschema.py 2026-01-27 10:23:37.701981+00:00 @@ -40,14 +40,12 @@ { "identifier": "https://cordis.europa.eu/project/id/755021", "scheme": "url", } ], - "title": { - "en": "Personalised Treatment For Cystic Fibrosis Patients With \ - Ultra-rare CFTR Mutations (and beyond)" - }, + "title": {"en": "Personalised Treatment For Cystic Fibrosis Patients With \ + Ultra-rare CFTR Mutations (and beyond)"}, "number": "755021", "funder": {"id": "ria", "name": "Research annd Innovation action"}, } assert validates(data)
Python / Tests (3.14.0, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.14.0, postgresql14, opensearch2): tests/datastreams/test_transformers.py#L0
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/datastreams/test_transformers.py 2026-01-27 10:21:36.051667+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/datastreams/test_transformers.py 2026-01-27 10:25:21.833012+00:00 @@ -41,12 +41,11 @@ }, } def test_xml_transformer(expected_from_xml): - bytes_xml_entry = StreamEntry( - b""" + bytes_xml_entry = StreamEntry(b""" <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns:top_level_field>top-level single value</ns:top_level_field> <ns:top_level_object_field> <ns:some>value</ns:some> <ns:another>value too</ns:another> @@ -60,20 +59,18 @@ <ns:element_bar>value2</ns:element_bar> <ns:element_qux>value2</ns:element_qux> </ns:array_element_object> </ns:nested_array_field array_attr="value"> </ns:top_level_object_field> - """ - ) + """) transformer = XMLTransformer() assert expected_from_xml == transformer.apply(bytes_xml_entry).entry def test_bad_xml_transformer(): - bytes_xml_entry = StreamEntry( - b""" + bytes_xml_entry = StreamEntry(b""" <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns:top_level_field>top-level single value</ns:top_level_field> <ns:top_level_object_field> <ns:some>value</ns:some> <ns:another>value too</ns:another> @@ -87,12 +84,11 @@ <ns:element_bar>value2</ns:element_bar> <ns:element_qux>value2</ns:element_qux> </ns:array_element_object> </ns:nested_array_field array_attr="value"> </ns:top_level_object_field> - """ - ) + """) transformer = XMLTransformer(root_element="field_two") with pytest.raises(TransformerError): transformer.apply(bytes_xml_entry)
Python / Tests (3.14.0, postgresql14, opensearch2): tests/contrib/awards/test_awards_jsonschema.py#L0
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/contrib/awards/test_awards_jsonschema.py 2026-01-27 10:21:36.049667+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/tests/contrib/awards/test_awards_jsonschema.py 2026-01-27 10:23:54.943068+00:00 @@ -40,14 +40,12 @@ { "identifier": "https://cordis.europa.eu/project/id/755021", "scheme": "url", } ], - "title": { - "en": "Personalised Treatment For Cystic Fibrosis Patients With \ - Ultra-rare CFTR Mutations (and beyond)" - }, + "title": {"en": "Personalised Treatment For Cystic Fibrosis Patients With \ + Ultra-rare CFTR Mutations (and beyond)"}, "number": "755021", "funder": {"id": "ria", "name": "Research annd Innovation action"}, } assert validates(data)
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/pkg_resources/__init__.py#L3147
Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/fs/__init__.py#L4
pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Python / Tests (3.9, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.9.25/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.25/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.25/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.25/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.25/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.25/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): 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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/pkg_resources/__init__.py#L3147
Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/fs/__init__.py#L4
pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Python / Tests (3.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/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.11, postgresql14, opensearch2): 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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/pkg_resources/__init__.py#L3148
Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/fs/__init__.py#L4
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.
Python / Tests (3.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/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.14.0, postgresql14, opensearch2): 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.