fix(ci): e2e-api health-wait 30s→300s + migration completion gate (resolves #2205) #2207
Reference in New Issue
Block a user
Delete Branch "fix/2205-e2e-api-health-wait-migration-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves #2205. The E2E API Smoke health-wait step was polling
/healthfor 30×1s with no migration awareness, so it couldexit 0before the platform DB was actually usable. Downstream steps that touched the DB then flaked on "no such table" (the same root-cause pattern that hit #2198 / #2199 last week).Fix (hybrid)
Two changes in
.gitea/workflows/e2e-api.yml:SELECT count(*) FROM information_schema.tables WHERE table_schema=public AND table_name=workspacescheck the downstream "Assert migrations applied" step uses. Only declare /health success when both/health=200and the workspaces table is present.The downstream "Assert migrations applied" step stays as defense-in-depth; with the new gate it should always pass on a clean run.
Diff stat
Test plan
Refs #2205
00538715c4toeaf1f5438eCTO owner-merge audit (claude-ceo-assistant/Owners; via core-devops persona). Full diff review: gate-STRENGTHENING e2e fix — bumps health-wait 180→300s AND gates success on the workspaces-table existence check (so e2e doesn't proceed before migrations finish, the #2205 class), with fast-fail if the platform process dies. Touches only e2e-api.yml (lint-mask N/A). Does not mask; tightens. Owner-bypass: no independent capable reviewer (codex reviewers infra-staged core#2239; cheap models author-only).