Job registry #190
Annotations
14 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 0x7ff0c99b5220>>()
+ where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7ff0c99b5220>> = <flask_alembic.extension.Alembic object at 0x7ff0c99b5220>.compare_metadata
+ where <flask_alembic.extension.Alembic object at 0x7ff0c99b5220> = <invenio_db.ext.InvenioDB object at 0x7ff0c99b52b0>.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/models.py#L1
Black format check
--- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-08-26 14:15:59.922881+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-08-26 14:17:35.773881+00:00
@@ -168,11 +168,10 @@
def dump(self):
"""Dump the run as a dictionary."""
from invenio_jobs.services.schema import RegisteredTaskArgumentsSchema
-
dict_run = _dump_dict(self)
serialized_args = RegisteredTaskArgumentsSchema().load(
{"args": dict_run["args"]}
)
|
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:59.921880+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:17:38.314581+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 0x7f1922b90bc0>>()
+ where <bound method Alembic.compare_metadata of <flask_alembic.extension.Alembic object at 0x7f1922b90bc0>> = <flask_alembic.extension.Alembic object at 0x7f1922b90bc0>.compare_metadata
+ where <flask_alembic.extension.Alembic object at 0x7f1922b90bc0> = <invenio_db.ext.InvenioDB object at 0x7f1922b90b90>.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/models.py#L1
Black format check
--- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-08-26 14:15:59.676473+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-08-26 14:17:45.093663+00:00
@@ -168,11 +168,10 @@
def dump(self):
"""Dump the run as a dictionary."""
from invenio_jobs.services.schema import RegisteredTaskArgumentsSchema
-
dict_run = _dump_dict(self)
serialized_args = RegisteredTaskArgumentsSchema().load(
{"args": dict_run["args"]}
)
|
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:59.675473+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/alembic/1f896f6990b8_update_jobs_module_table_names.py 2024-08-26 14:17:49.166283+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.
|