Skip to content

openaire: fixed delete task #1921

openaire: fixed delete task

openaire: fixed delete task #1921

Triggered via pull request July 3, 2024 08:37
Status Failure
Total duration 6m 59s
Artifacts

tests.yml

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

Annotations

6 errors and 6 warnings
Tests (site, 3.9, postgresql14, opensearch2, false): site/tests/openaire/test_components.py#L84
test_on_delete AssertionError: expected call not found. Expected: mock('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', json={'originalId': '10.5281/zenodo.4', 'collectedFromId': 'opendoar____::2659'}) Actual: mock('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', params={'originalId': '10.5281/zenodo.4', 'collectedFromId': 'opendoar____::2659'})
Tests (site, 3.9, postgresql14, opensearch2, false): site/tests/openaire/test_components.py#L142
test_on_restore AssertionError: Calls not found. Expected: [call('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', json={'originalId': '10.5281/zenodo.6', 'collectedFromId': 'opendoar____::2659'})] Actual: [call('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', params={'originalId': '10.5281/zenodo.6', 'collectedFromId': 'opendoar____::2659'})]
Tests (site, 3.9, postgresql14, opensearch2, false): site/tests/openaire/test_tasks.py#L148
test_openaire_delete_task AssertionError: expected call not found. Expected: mock('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', json={'originalId': '10.5281/zenodo.8', 'collectedFromId': 'opendoar____::2659'}) Actual: mock('http://dev.openaire.research-infrastructures.eu/is/mvc/api/results', params={'originalId': '10.5281/zenodo.8', 'collectedFromId': 'opendoar____::2659'})
Tests (site, 3.9, postgresql14, opensearch2, false): site/zenodo_rdm/openaire/tasks.py#L1
Black format check --- /home/runner/work/zenodo-rdm/zenodo-rdm/site/zenodo_rdm/openaire/tasks.py 2024-07-03 08:37:52.130911+00:00 +++ /home/runner/work/zenodo-rdm/zenodo-rdm/site/zenodo_rdm/openaire/tasks.py 2024-07-03 08:44:22.876909+00:00 @@ -155,11 +155,13 @@ count=1000, ) for key in failed_records: try: record_id = key.decode().split("openaire_direct_index:")[1] - record = records_service.read(system_identity, record_id, include_deleted=True) + record = records_service.read( + system_identity, record_id, include_deleted=True + ) is_deleted = record.data["deletion_status"]["is_deleted"] # If record was deleted, try to remove it from OpenAIRE if is_deleted: openaire_delete.delay(record_id, retry=False)
Tests (site, 3.9, postgresql14, opensearch2, false): site/zenodo_rdm/subcommunities/schema.py#L1
pydocstyle-check /home/runner/work/zenodo-rdm/zenodo-rdm/site/zenodo_rdm/subcommunities/schema.py:14 in public class `SubCommunityRequestPayloadShema`: D101: Missing docstring in public class
Tests (site, 3.9, postgresql14, opensearch2, false)
Process completed with exit code 1.
Tests (legacy, 3.9, postgresql14, opensearch2, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (legacy, 3.9, postgresql14, opensearch2, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (migrator, true, 3.9, postgresql14)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (migrator, true, 3.9, postgresql14)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (site, 3.9, postgresql14, opensearch2, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (site, 3.9, postgresql14, opensearch2, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/