Skip to content

Job registry

Job registry #186

Triggered via pull request August 23, 2024 15:55
Status Failure
Total duration 2m 19s
Artifacts

tests.yml

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

Annotations

20 errors
Tests / Tests (3.9, postgresql14, opensearch2): tests/test_alembic.py#L35
test_alembic AssertionError: assert 1 == 0 + where 1 = len([('remove_column', None, 'job', Column('default_args', JSONB(astext_type=Text()), table=<job>))]) + where [('remove_column', None, 'job', Column('default_args', JSONB(astext_type=Text()), table=<job>))] = <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f4f9a7a45b0>>() + where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f4f9a7a45b0>> = <flask_alembic.extension.Alembic object at 0x7f4f9a7a45b0>.compare_metadata + where <flask_alembic.extension.Alembic object at 0x7f4f9a7a45b0> = <invenio_db.ext.InvenioDB object at 0x7f4f9a7a46d0>.alembic
Tests / Tests (3.9, postgresql14, opensearch2): tests/resources/test_resources.py#L35
test_simple_flow assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.9, postgresql14, opensearch2): tests/resources/test_resources.py#L208
test_jobs_create assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.9, postgresql14, opensearch2): tests/resources/test_resources.py#L448
test_job_template_args assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/ext.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-08-23 15:55:36.704977+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-08-23 15:57:24.632157+00:00 @@ -102,11 +102,10 @@ def jobs(self): """Return the tasks.""" return self.registry.all_registered_jobs() - def finalize_app(app): """Finalize app.""" rr_ext = app.extensions["invenio-records-resources"] ext = app.extensions["invenio-jobs"] for ep in ext.load_entry_point_group():
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/jobs.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:1 at module level: D100: Missing docstring in public module /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:10 in public class `RegisteredTask`: D101: Missing docstring in public class /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:36 in public method `build_task_arguments`: D102: Missing docstring in public method
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/jobs.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py 2024-08-23 15:55:36.704977+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py 2024-08-23 15:57:24.893747+00:00 @@ -12,12 +12,15 @@ arguments_schema = None task = None id = None title = None description = None + @classmethod - def factory(cls, job_cls_name, arguments_schema, id_, task, description, title, attrs=None): + def factory( + cls, job_cls_name, arguments_schema, id_, task, description, title, attrs=None + ): """Create a new instance of a job.""" if not attrs: attrs = {} return type( job_cls_name,
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/models.py#L1
isort-check from sqlalchemy_utils import Timestamp from sqlalchemy_utils.types import ChoiceType, JSONType, UUIDType from werkzeug.utils import cached_property + from invenio_jobs.proxies import current_jobs - from .utils import eval_tpl_str, walk_values
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/models.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:39 in public class `AttrDict`: D101: Missing docstring in public class /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:40 in public method `__init__`: D107: Missing docstring in __init__ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:78 in public method `default_args`: D102: Missing docstring in public method /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:222 in public method `get`: D102: Missing docstring in public method
Tests / Tests (3.12, postgresql14, opensearch2): tests/test_alembic.py#L35
test_alembic AssertionError: assert 1 == 0 + where 1 = len([('remove_column', None, 'job', Column('default_args', JSONB(astext_type=Text()), table=<job>))]) + where [('remove_column', None, 'job', Column('default_args', JSONB(astext_type=Text()), table=<job>))] = <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f26f6ebfbc0>>() + where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f26f6ebfbc0>> = <flask_alembic.extension.Alembic object at 0x7f26f6ebfbc0>.compare_metadata + where <flask_alembic.extension.Alembic object at 0x7f26f6ebfbc0> = <invenio_db.ext.InvenioDB object at 0x7f26f6f84230>.alembic
Tests / Tests (3.12, postgresql14, opensearch2): tests/resources/test_resources.py#L35
test_simple_flow assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.12, postgresql14, opensearch2): tests/resources/test_resources.py#L208
test_jobs_create assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.12, postgresql14, opensearch2): tests/resources/test_resources.py#L448
test_job_template_args assert 400 == 201 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/ext.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-08-23 15:55:35.329684+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/ext.py 2024-08-23 15:57:23.605559+00:00 @@ -102,11 +102,10 @@ def jobs(self): """Return the tasks.""" return self.registry.all_registered_jobs() - def finalize_app(app): """Finalize app.""" rr_ext = app.extensions["invenio-records-resources"] ext = app.extensions["invenio-jobs"] for ep in ext.load_entry_point_group():
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/jobs.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:1 at module level: D100: Missing docstring in public module /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:10 in public class `RegisteredTask`: D101: Missing docstring in public class /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py:36 in public method `build_task_arguments`: D102: Missing docstring in public method
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/jobs.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py 2024-08-23 15:55:35.329684+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/jobs.py 2024-08-23 15:57:23.997696+00:00 @@ -12,12 +12,15 @@ arguments_schema = None task = None id = None title = None description = None + @classmethod - def factory(cls, job_cls_name, arguments_schema, id_, task, description, title, attrs=None): + def factory( + cls, job_cls_name, arguments_schema, id_, task, description, title, attrs=None + ): """Create a new instance of a job.""" if not attrs: attrs = {} return type( job_cls_name,
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/models.py#L1
isort-check from sqlalchemy_utils import Timestamp from sqlalchemy_utils.types import ChoiceType, JSONType, UUIDType from werkzeug.utils import cached_property + from invenio_jobs.proxies import current_jobs - from .utils import eval_tpl_str, walk_values
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/models.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:39 in public class `AttrDict`: D101: Missing docstring in public class /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:40 in public method `__init__`: D107: Missing docstring in __init__ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:78 in public method `default_args`: D102: Missing docstring in public method /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py:222 in public method `get`: D102: Missing docstring in public method