SKY-9453 fix copilot reword-turn handling: test run, labels, goal wrap (#5791)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Andrew Neilson 2026-05-04 16:29:22 -07:00 committed by GitHub
parent f5535c93de
commit 048dca71d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1158 additions and 22 deletions

View file

@ -0,0 +1,33 @@
"""credits_used & cached_credits_used
Revision ID: b19685399f97
Revises: 696a7bba1ce6
Create Date: 2026-05-04 23:20:09.907428+00:00
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "b19685399f97"
down_revision: Union[str, None] = "696a7bba1ce6"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("workflow_runs", sa.Column("credits_used", sa.Integer(), server_default="0", nullable=True))
op.add_column("workflow_runs", sa.Column("cached_credits_used", sa.Integer(), server_default="0", nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("workflow_runs", "cached_credits_used")
op.drop_column("workflow_runs", "credits_used")
# ### end Alembic commands ###