Skip to content

Commit

Permalink
fix(tf): add the ‹canceled› state (#2340)
Browse files Browse the repository at this point in the history
fix(tf): add the ‹canceled› state

Fixes #2339

Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Feb 12, 2024
2 parents 7732201 + 8907529 commit 0678246
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions alembic/versions/ab4c11acf5e1_fix_tf_add_canceled_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""fix(tf): add canceled state
Revision ID: ab4c11acf5e1
Revises: a3a17014c282
Create Date: 2024-02-11 21:53:26.180964
"""
from alembic import op


# revision identifiers, used by Alembic.
revision = "ab4c11acf5e1"
down_revision = "a3a17014c282"
branch_labels = None
depends_on = None


def upgrade():
with op.get_context().autocommit_block():
op.execute("ALTER TYPE testingfarmresult ADD VALUE 'canceled'")


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions packit_service/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,7 @@ class TestingFarmResult(str, enum.Enum):
needs_inspection = "needs_inspection"
retry = "retry"
complete = "complete"
canceled = "canceled"


class TFTTestRunGroupModel(ProjectAndEventsConnector, GroupModel, Base):
Expand Down

0 comments on commit 0678246

Please sign in to comment.