Skip to content

indexer: Allow the definition of indices in index_templates, instead … #179

indexer: Allow the definition of indices in index_templates, instead …

indexer: Allow the definition of indices in index_templates, instead … #179

Triggered via pull request March 4, 2024 12:22
Status Failure
Total duration 1m 53s
Artifacts

tests.yml

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

Annotations

15 errors and 4 warnings
Tests (3.9, pypi, redis, rabbitmq, elasticsearch7): invenio_indexer/utils.py#L1
Black format check --- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:44.662374+00:00 +++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:00.158268+00:00 @@ -52,11 +52,13 @@ :param record: The record object. :returns: index. """ # The indices could be defined either in the mappings or in the index_templates - index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys()) + index_names = list(current_search.mappings.keys()) + list( + current_search.index_templates.keys() + ) schema = record.get("$schema", "") if isinstance(schema, dict): schema = schema.get("$ref", "") index = schema_to_index(schema, index_names=index_names)
Tests (3.9, pypi, redis, rabbitmq, elasticsearch7)
Process completed with exit code 1.
Tests (3.8, pypi, redis, rabbitmq, opensearch2): invenio_indexer/utils.py#L1
Black format check --- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:45.064282+00:00 +++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:00.913208+00:00 @@ -52,11 +52,13 @@ :param record: The record object. :returns: index. """ # The indices could be defined either in the mappings or in the index_templates - index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys()) + index_names = list(current_search.mappings.keys()) + list( + current_search.index_templates.keys() + ) schema = record.get("$schema", "") if isinstance(schema, dict): schema = schema.get("$ref", "") index = schema_to_index(schema, index_names=index_names)
Tests (3.8, pypi, redis, rabbitmq, opensearch2)
Process completed with exit code 1.
Tests (3.7, pypi, redis, rabbitmq, opensearch2)
The job was canceled because "_3_9_pypi_redis_rabbitm_2" failed.
Tests (3.7, pypi, redis, rabbitmq, opensearch2): invenio_indexer/utils.py#L1
Black format check --- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:44.635731 +0000 +++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:01.145284 +0000 @@ -52,11 +52,13 @@ :param record: The record object. :returns: index. """ # The indices could be defined either in the mappings or in the index_templates - index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys()) + index_names = list(current_search.mappings.keys()) + list( + current_search.index_templates.keys() + ) schema = record.get("$schema", "") if isinstance(schema, dict): schema = schema.get("$ref", "") index = schema_to_index(schema, index_names=index_names)
Tests (3.7, pypi, redis, rabbitmq, opensearch2)
Process completed with exit code 1.
Tests (3.8, pypi, redis, rabbitmq, elasticsearch7)
The job was canceled because "_3_9_pypi_redis_rabbitm_2" failed.
Tests (3.8, pypi, redis, rabbitmq, elasticsearch7): invenio_indexer/utils.py#L1
Black format check --- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:44.554936+00:00 +++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:04.566785+00:00 @@ -52,11 +52,13 @@ :param record: The record object. :returns: index. """ # The indices could be defined either in the mappings or in the index_templates - index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys()) + index_names = list(current_search.mappings.keys()) + list( + current_search.index_templates.keys() + ) schema = record.get("$schema", "") if isinstance(schema, dict): schema = schema.get("$ref", "") index = schema_to_index(schema, index_names=index_names)
Tests (3.8, pypi, redis, rabbitmq, elasticsearch7)
The operation was canceled.
Tests (3.7, pypi, redis, rabbitmq, elasticsearch7)
The job was canceled because "_3_9_pypi_redis_rabbitm_2" failed.
Tests (3.7, pypi, redis, rabbitmq, elasticsearch7): invenio_indexer/utils.py#L1
Black format check --- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:42.388475 +0000 +++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:10.105146 +0000 @@ -52,11 +52,13 @@ :param record: The record object. :returns: index. """ # The indices could be defined either in the mappings or in the index_templates - index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys()) + index_names = list(current_search.mappings.keys()) + list( + current_search.index_templates.keys() + ) schema = record.get("$schema", "") if isinstance(schema, dict): schema = schema.get("$ref", "") index = schema_to_index(schema, index_names=index_names)
Tests (3.7, pypi, redis, rabbitmq, elasticsearch7)
The operation was canceled.
Tests (3.9, pypi, redis, rabbitmq, opensearch2)
The job was canceled because "_3_9_pypi_redis_rabbitm_2" failed.
Tests (3.9, pypi, redis, rabbitmq, opensearch2)
The operation was canceled.
Tests (3.9, pypi, redis, rabbitmq, elasticsearch7)
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.9, pypi, redis, rabbitmq, elasticsearch7)
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/
Tests (3.8, pypi, redis, rabbitmq, 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.8, pypi, redis, rabbitmq, 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/