-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A skipped release is not a failure (#2250)
When Packit skips a release do not mark it as a failure. Merge after packit/packit#2156 Merge before packit/dashboard#356 and packit/packit.dev#772
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
alembic/versions/3de8647515ae_add_skipped_status_report_to_sync_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""add skipped status report to sync release jobs | ||
Revision ID: 3de8647515ae | ||
Revises: 99841c3f8ba8 | ||
Create Date: 2023-11-13 11:29:10.383794 | ||
""" | ||
from alembic import op | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "3de8647515ae" | ||
down_revision = "99841c3f8ba8" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute("ALTER TYPE syncreleasetargetstatus ADD VALUE 'skipped'") | ||
|
||
|
||
def downgrade(): | ||
op.execute( | ||
"ALTER TYPE syncreleasetargetstatus RENAME TO syncreleasetargetstatus_old" | ||
) | ||
op.execute( | ||
"CREATE TYPE syncreleasetargetstatus AS ENUM " | ||
"('queued', 'running', 'error', 'retry', 'submitted')" | ||
) | ||
op.execute( | ||
"ALTER TABLE sync_release_run_targets " | ||
"ALTER COLUMN status TYPE syncreleasetargetstatus USING status::syncreleasetargetstatus" | ||
) | ||
op.execute("DROP TYPE syncreleasetargetstatus_old") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters