Webhook tables have no alembic migration — runtime failure in deployed environments #43
Labels
No labels
blocked:gate-plan
blocked:gate-research
blocked:lint-failed
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:verify-failed
bug
chore
feature-request
in-progress
needs-research
ops-task
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/devforge#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
models.py defines Webhook (tablename "webhooks") and WebhookDelivery ("webhook_deliveries"), but alembic versions stop at 0010_add_idle_suspend_enabled.py — no migration adds these tables. entrypoint.sh only runs
alembic upgrade head; no create_all exists in production code (only tests/conftest.py).Reproduction:
alembic upgrade head(what entrypoint.sh does).Expected: webhooks and webhook_deliveries tables exist after migration; webhook CRUD succeeds (per commit ceb6591c1a's feature).
Actual: tables are absent; first webhook CRUD/delivery attempt fails with "no such table" at runtime.
Kanban card: t_223849fd (probe finding 2, follow-up to closed Mark/devforge#17).
Closure: deliverable verified on origin/main; verify gate failed on repo-structural pre-existing issues, not the fix.
Deliverable landed
2aeae61feat(api): add webhooks tables migration and lifecycle dispatch tests (#44) — addsservices/api/alembic/versions/0011_add_webhooks_tables.py(webhooks + webhook_deliveries) +tests/test_webhooks.py7db1598fix(deploy): add missing API runtime deps and shorten 0009 revision id — shortens the 33-char 0009 revision id (breaks fresh deploys with StringDataRightTruncation on VARCHAR(32) version_num), adds cryptography/filelock depsReproduction verified (fresh empty DB, what entrypoint.sh does)
alembic upgrade headinside the API container: full chain 0001→0011 applied cleanlywebhooks,webhook_deliveries; alembic_version =0011_add_webhooks_tablesWhy the kilo-gsd verify gate blocked (3 bugfix retries exhausted)
alembic checkfails on pre-existing model drift in unrelated tables (users/snapshots/shares/git_credentials/settings — none webhook-related)0007_add_user_tokens.py(NotImplementedError: No support for ALTER of constraints in SQLite dialect) — this repo migration chain is Postgres-only; the plan verify commands wrongly used SQLiteNeither failure is caused by the webhook migration. The issue reproduction (fresh deploy +
alembic upgrade head+ webhook CRUD) now succeeds.