Skip to content

fix: propagate SQL migration failures - #220

Open
obckelbley wants to merge 1 commit into
sidequestjs:masterfrom
obckelbley:codex/propagate-migration-failures
Open

obckelbley wants to merge 1 commit into
sidequestjs:masterfrom
obckelbley:codex/propagate-migration-failures

Conversation

@obckelbley

Copy link
Copy Markdown
Contributor

Summary

  • rethrow SQL migration failures after logging them
  • rethrow SQL rollback failures after logging them
  • add regression tests for both paths

Why

SQLBackend.migrate() and rollbackMigration() currently catch errors, log them, and resolve successfully. As a result, the CLI can report success after a failed migration, and Engine.configure() can continue startup against an unmigrated schema. Callers cannot use either public method as a reliable release or startup gate.

The methods still log the original error, but now preserve normal promise rejection semantics so CLI and engine callers fail visibly.

Validation

  • corepack yarn workspace @sidequest/backend test:ci
  • corepack yarn workspace @sidequest/backend build
  • corepack yarn lint
  • corepack yarn format:check

This branch has not been deployed

No deployments
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