Job registry #204
Triggered via pull request
September 11, 2024 15:14
Status
Failure
Total duration
2m 19s
Artifacts
–
Annotations
8 errors
Tests / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L81
test_simple_flow
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:46.541817+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': 'Test description',
'id': '13e2c30d-c3ba-4573-8167-e7a7fec485ee',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee/runs',
'self': 'https://127.0.0.1:5000/api/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-09-11T15:16:46.568899+00:00',
}
|
Tests / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L315
test_jobs_search
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:46.947605+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': None,
'id': '8603bc69-1880-4195-9adb-ac664048b426',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/8603bc69-1880-4195-9adb-ac664048b426/runs',
'self': 'https://127.0.0.1:5000/api/jobs/8603bc69-1880-4195-9adb-ac664048b426',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/8603bc69-1880-4195-9adb-ac664048b426'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-09-11T15:16:46.947612+00:00',
}
|
Tests / Tests (3.9, postgresql14, opensearch2):
invenio_jobs/services/schema.py#L1
isort-check
from invenio_i18n import lazy_gettext as _
from invenio_users_resources.services import schemas as user_schemas
-from marshmallow import (
- EXCLUDE,
- Schema,
- fields,
- post_load,
- pre_dump,
- pre_load,
- validate,
-)
+from marshmallow import EXCLUDE, Schema, fields, post_load, pre_dump, pre_load, validate
from marshmallow_oneofschema import OneOfSchema
from marshmallow_utils.fields import SanitizedUnicode, TZDateTime
from marshmallow_utils.permissions import FieldPermissionsMixin
|
Tests / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Tests / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_resources.py#L81
test_simple_flow
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:50.505425+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': 'Test description',
'id': 'b5a83b5a-831a-4529-a809-9026c1efc435',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/b5a83b5a-831a-4529-a809-9026c1efc435/runs',
'self': 'https://127.0.0.1:5000/api/jobs/b5a83b5a-831a-4529-a809-9026c1efc435',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/b5a83b5a-831a-4529-a809-9026c1efc435'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-09-11T15:16:50.545372+00:00',
}
|
Tests / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_resources.py#L315
test_jobs_search
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:50.935739+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': None,
'id': 'a398fe85-2dac-4454-a4aa-949eaebd35ff',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/a398fe85-2dac-4454-a4aa-949eaebd35ff/runs',
'self': 'https://127.0.0.1:5000/api/jobs/a398fe85-2dac-4454-a4aa-949eaebd35ff',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/a398fe85-2dac-4454-a4aa-949eaebd35ff'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-09-11T15:16:50.935750+00:00',
}
|
Tests / Tests (3.12, postgresql14, opensearch2):
invenio_jobs/services/schema.py#L1
isort-check
from invenio_i18n import lazy_gettext as _
from invenio_users_resources.services import schemas as user_schemas
-from marshmallow import (
- EXCLUDE,
- Schema,
- fields,
- post_load,
- pre_dump,
- pre_load,
- validate,
-)
+from marshmallow import EXCLUDE, Schema, fields, post_load, pre_dump, pre_load, validate
from marshmallow_oneofschema import OneOfSchema
from marshmallow_utils.fields import SanitizedUnicode, TZDateTime
from marshmallow_utils.permissions import FieldPermissionsMixin
|
Tests / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|