Skip to content

Job registry

Job registry #189

Triggered via pull request August 26, 2024 14:15
Status Failure
Total duration 2m 9s
Artifacts

tests.yml

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

Annotations

12 errors
Tests / Tests (3.9, postgresql14, opensearch2): tests/test_alembic.py#L35
test_alembic AssertionError: assert 1 == 0 + where 1 = len([('remove_column', None, 'jobs_job', Column('default_args', JSONB(astext_type=Text()), table=<jobs_job>))]) + where [('remove_column', None, 'jobs_job', Column('default_args', JSONB(astext_type=Text()), table=<jobs_job>))] = <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f26e0fd4280>>() + where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f26e0fd4280>> = <flask_alembic.extension.Alembic object at 0x7f26e0fd4280>.compare_metadata + where <flask_alembic.extension.Alembic object at 0x7f26e0fd4280> = <invenio_db.ext.InvenioDB object at 0x7f26e15ec880>.alembic
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/models.py#L1
isort-check from invenio_jobs.proxies import current_jobs - JSON = ( db.JSON() .with_variant(postgresql.JSONB(none_as_null=True), "postgresql")
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
isort-check """Update jobs module table names""" +import sqlalchemy as sa from alembic import op -import sqlalchemy as sa from sqlalchemy.dialects import postgresql -from sqlalchemy_utils import JSONType, UUIDType, ChoiceType +from sqlalchemy_utils import ChoiceType, JSONType, UUIDType # revision identifiers, used by Alembic. revision = '1f896f6990b8'
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py:8 at module level: D400: First line should end with a period (not 's')
Tests / Tests (3.9, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:15:28.901570+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:17:14.118402+00:00 @@ -11,32 +11,34 @@ import sqlalchemy as sa from sqlalchemy.dialects import postgresql from sqlalchemy_utils import JSONType, UUIDType, ChoiceType # revision identifiers, used by Alembic. -revision = '1f896f6990b8' -down_revision = '356496a01197' +revision = "1f896f6990b8" +down_revision = "356496a01197" branch_labels = () depends_on = None def upgrade(): """Upgrade database.""" # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint('fk_run_job_id_job', 'run', type_='foreignkey') - op.rename_table("job", 'jobs_job') - op.rename_table("run", 'jobs_run') + op.drop_constraint("fk_run_job_id_job", "run", type_="foreignkey") + op.rename_table("job", "jobs_job") + op.rename_table("run", "jobs_run") - op.create_foreign_key('fk_jobs_run_job_id_jobs_job', 'jobs_run', 'jobs_job', ['job_id'], ['id']) + op.create_foreign_key( + "fk_jobs_run_job_id_jobs_job", "jobs_run", "jobs_job", ["job_id"], ["id"] + ) # ### end Alembic commands ### def downgrade(): """Downgrade database.""" # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint('fk_jobs_run_job_id_jobs_job', 'jobs_run', type_='foreignkey') + op.drop_constraint("fk_jobs_run_job_id_jobs_job", "jobs_run", type_="foreignkey") - op.rename_table("jobs_job", 'job') - op.rename_table("jobs_run", 'run') - op.create_foreign_key('fk_run_job_id_job', 'run', 'job', ['job_id'], ['id']) + op.rename_table("jobs_job", "job") + op.rename_table("jobs_run", "run") + op.create_foreign_key("fk_run_job_id_job", "run", "job", ["job_id"], ["id"]) # ### end Alembic commands ###
Tests / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Tests / Tests (3.12, postgresql14, opensearch2): tests/test_alembic.py#L35
test_alembic AssertionError: assert 1 == 0 + where 1 = len([('remove_column', None, 'jobs_job', Column('default_args', JSONB(astext_type=Text()), table=<jobs_job>))]) + where [('remove_column', None, 'jobs_job', Column('default_args', JSONB(astext_type=Text()), table=<jobs_job>))] = <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7fb9bc0928a0>>() + where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7fb9bc0928a0>> = <flask_alembic.extension.Alembic object at 0x7fb9bc0928a0>.compare_metadata + where <flask_alembic.extension.Alembic object at 0x7fb9bc0928a0> = <invenio_db.ext.InvenioDB object at 0x7fb9bc0fac30>.alembic
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/models.py#L1
isort-check from invenio_jobs.proxies import current_jobs - JSON = ( db.JSON() .with_variant(postgresql.JSONB(none_as_null=True), "postgresql")
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
isort-check """Update jobs module table names""" +import sqlalchemy as sa from alembic import op -import sqlalchemy as sa from sqlalchemy.dialects import postgresql -from sqlalchemy_utils import JSONType, UUIDType, ChoiceType +from sqlalchemy_utils import ChoiceType, JSONType, UUIDType # revision identifiers, used by Alembic. revision = '1f896f6990b8'
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
pydocstyle-check /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py:8 at module level: D400: First line should end with a period (not 's')
Tests / Tests (3.12, postgresql14, opensearch2): invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py#L1
Black format check --- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:15:29.494931+00:00 +++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:17:18.033781+00:00 @@ -11,32 +11,34 @@ import sqlalchemy as sa from sqlalchemy.dialects import postgresql from sqlalchemy_utils import JSONType, UUIDType, ChoiceType # revision identifiers, used by Alembic. -revision = '1f896f6990b8' -down_revision = '356496a01197' +revision = "1f896f6990b8" +down_revision = "356496a01197" branch_labels = () depends_on = None def upgrade(): """Upgrade database.""" # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint('fk_run_job_id_job', 'run', type_='foreignkey') - op.rename_table("job", 'jobs_job') - op.rename_table("run", 'jobs_run') + op.drop_constraint("fk_run_job_id_job", "run", type_="foreignkey") + op.rename_table("job", "jobs_job") + op.rename_table("run", "jobs_run") - op.create_foreign_key('fk_jobs_run_job_id_jobs_job', 'jobs_run', 'jobs_job', ['job_id'], ['id']) + op.create_foreign_key( + "fk_jobs_run_job_id_jobs_job", "jobs_run", "jobs_job", ["job_id"], ["id"] + ) # ### end Alembic commands ### def downgrade(): """Downgrade database.""" # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint('fk_jobs_run_job_id_jobs_job', 'jobs_run', type_='foreignkey') + op.drop_constraint("fk_jobs_run_job_id_jobs_job", "jobs_run", type_="foreignkey") - op.rename_table("jobs_job", 'job') - op.rename_table("jobs_run", 'run') - op.create_foreign_key('fk_run_job_id_job', 'run', 'job', ['job_id'], ['id']) + op.rename_table("jobs_job", "job") + op.rename_table("jobs_run", "run") + op.create_foreign_key("fk_run_job_id_job", "run", "job", ["job_id"], ["id"]) # ### end Alembic commands ###
Tests / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.