Job registry #202
Annotations
8 errors
Tests / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_resources.py#L132
test_simple_flow
AssertionError: assert {'args': {'ty...8ba27b2', ...} == {'args': {'ar...8ba27b2', ...}
Omitting 14 identical items, use -vv to show
Differing items:
{'args': {'type': 'custom'}} != {'args': {'args': {}, 'type': 'custom'}}
Full diff:
{
- 'args': {'args': {}, 'type': 'custom'},
? ------------
+ 'args': {'type': 'custom'},
'created': '2024-09-11T07:45:09.178890+00:00',
'finished_at': None,
'id': '8ad7343a-4505-412b-b4f9-d9b0d8ba27b2',
'job_id': '402575f1-f1ff-4b33-bcdf-7e4ba99a5a1a',
'links': {'logs': 'https://127.0.0.1:5000/api/jobs/402575f1-f1ff-4b33-bcdf-7e4ba99a5a1a/runs/8ad7343a-4505-412b-b4f9-d9b0d8ba27b2/logs',
'self': 'https://127.0.0.1:5000/api/jobs/402575f1-f1ff-4b33-bcdf-7e4ba99a5a1a/runs/8ad7343a-4505-412b-b4f9-d9b0d8ba27b2',
'stop': 'https://127.0.0.1:5000/api/jobs/402575f1-f1ff-4b33-bcdf-7e4ba99a5a1a/runs/8ad7343a-4505-412b-b4f9-d9b0d8ba27b2/actions/stop'},
'message': None,
'queue': 'celery',
'started_at': None,
'started_by': {'id': '1',
'identities': {},
'is_current_user': True,
'links': {},
'profile': {'affiliations': 'CERN', 'full_name': 'User'},
'type': 'user',
'username': 'user'},
'started_by_id': 1,
'status': 'QUEUED',
'task_id': 'f032cb1f-8bf8-4e58-a74c-80474de039c3',
'title': 'Manually triggered run',
'updated': '2024-09-11T07:45:09.178894+00:00',
}
|
Tests / Tests (3.9, postgresql14, opensearch2):
invenio_jobs/models.py#L1
pydocstyle-check
/home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:155 in public method `generate_args`:
D400: First line should end with a period (not 's')
|
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#L132
test_simple_flow
AssertionError: assert {'args': {'ty...05ff09c', ...} == {'args': {'ar...05ff09c', ...}
Omitting 14 identical items, use -vv to show
Differing items:
{'args': {'type': 'custom'}} != {'args': {'args': {}, 'type': 'custom'}}
Full diff:
{
- 'args': {'args': {}, 'type': 'custom'},
? ------------
+ 'args': {'type': 'custom'},
'created': '2024-09-11T07:45:15.589593+00:00',
'finished_at': None,
'id': 'fed91399-46d6-4889-ae69-1558905ff09c',
'job_id': '3e901236-6fb5-4b09-b18b-2f8d2ab3f88e',
'links': {'logs': 'https://127.0.0.1:5000/api/jobs/3e901236-6fb5-4b09-b18b-2f8d2ab3f88e/runs/fed91399-46d6-4889-ae69-1558905ff09c/logs',
'self': 'https://127.0.0.1:5000/api/jobs/3e901236-6fb5-4b09-b18b-2f8d2ab3f88e/runs/fed91399-46d6-4889-ae69-1558905ff09c',
'stop': 'https://127.0.0.1:5000/api/jobs/3e901236-6fb5-4b09-b18b-2f8d2ab3f88e/runs/fed91399-46d6-4889-ae69-1558905ff09c/actions/stop'},
'message': None,
'queue': 'celery',
'started_at': None,
'started_by': {'id': '1',
'identities': {},
'is_current_user': True,
'links': {},
'profile': {'affiliations': 'CERN', 'full_name': 'User'},
'type': 'user',
'username': 'user'},
'started_by_id': 1,
'status': 'QUEUED',
'task_id': '2e452d89-1fe4-407b-9ee1-fa314b81ebd7',
'title': 'Manually triggered run',
'updated': '2024-09-11T07:45:15.589599+00:00',
}
|
Tests / Tests (3.12, postgresql14, opensearch2):
invenio_jobs/models.py#L1
pydocstyle-check
/home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:155 in public method `generate_args`:
D400: First line should end with a period (not 's')
|
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.
|