Skip to content

ci: allow db:migrate to fail without blocking deploy#84

Open
ncrmro wants to merge 1 commit into
mainfrom
fix/deploy-migration-tolerate-failure
Open

ci: allow db:migrate to fail without blocking deploy#84
ncrmro wants to merge 1 commit into
mainfrom
fix/deploy-migration-tolerate-failure

Conversation

@ncrmro

@ncrmro ncrmro commented May 16, 2026

Copy link
Copy Markdown
Owner

Summary

The post-merge Deploy run for #82/#83 failed at `bun run db:migrate`. The DB still has the legacy Next.js schema (tables exist without drizzle's bookkeeping table), so applying our bundled migrations errors out. Today nothing in the runtime reads the DB — it's pure scaffolding — so a failed migration shouldn't block the worker deploy.

Adds `continue-on-error: true` to the migration step. When/if the DB is revived for real, drop the flag and reconcile the schema first.

Test plan

  • Manually ran `bunx wrangler deploy` against the worker — confirmed the deploy itself works end-to-end (current version on production: `e1a8179c-67c0-40b7-b6a4-a8a9f9c7186d`)
  • After merge, push triggers Deploy → migration step shows red ✗ as a sub-step but the job overall succeeds and the deploy step runs

🤖 Generated with Claude Code

The Turso DB still has the legacy Next.js schema, so drizzle-kit migrate
errors when applying our bundled SQL migrations (tables already exist
with no drizzle metadata table). Today the DB is inert scaffolding —
no runtime client reads it — so a failed migration shouldn't block the
worker deploy. The latest post-merge Deploy run failed exactly here.

Add `continue-on-error: true` to the migration step. The workflow still
runs the migration so the wiring stays warm; if/when the DB is revived
for real, drop this flag and reconcile the schema first.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ncrmro-website 0675d7e May 16 2026, 01:36 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant