Harden RC05 candidate-bound evaluation runner
This commit is contained in:
@@ -203,10 +203,13 @@ jobs:
|
||||
CONTRACT_API_DATABASE_URL: sqlite+pysqlite:////tmp/yuqei-contract-api-ci.sqlite3
|
||||
CONTRACT_API_DATABASE_AUTO_CREATE: "false"
|
||||
run: |
|
||||
expected_head="$(python -m alembic heads | sed -nE 's/^([^ ]+) \(head\)$/\1/p')"
|
||||
test "$(printf '%s\n' "$expected_head" | sed '/^$/d' | wc -l)" -eq 1
|
||||
python -m alembic upgrade head
|
||||
python -m alembic downgrade 20260710_0030
|
||||
python -m alembic upgrade head
|
||||
python -m alembic current | grep -F "20260909_0079 (head)"
|
||||
actual_head="$(python -m alembic current | sed -nE 's/^([^ ]+) \(head\)$/\1/p')"
|
||||
test "$actual_head" = "$expected_head"
|
||||
|
||||
- name: Verify AI Platform API empty-database migrations
|
||||
working-directory: yuqei-ai-platform/services/ai-platform-api
|
||||
@@ -215,5 +218,8 @@ jobs:
|
||||
AI_PLATFORM_DATABASE_AUTO_CREATE: "false"
|
||||
AI_PLATFORM_REPOSITORY_BACKEND: sqlalchemy
|
||||
run: |
|
||||
expected_head="$(python -m alembic heads | sed -nE 's/^([^ ]+) \(head\)$/\1/p')"
|
||||
test "$(printf '%s\n' "$expected_head" | sed '/^$/d' | wc -l)" -eq 1
|
||||
python -m alembic upgrade head
|
||||
python -m alembic current | grep -F "20260826_0028 (head)"
|
||||
actual_head="$(python -m alembic current | sed -nE 's/^([^ ]+) \(head\)$/\1/p')"
|
||||
test "$actual_head" = "$expected_head"
|
||||
|
||||
Reference in New Issue
Block a user