readMigrationJobOutcome (managed-db/migration-job-outcome.ts)

backenly · tools/managed-db/migration-job-outcome.ts · typescript · Apache-2.0
database

What a migration-runner task proved, read from exit code and logs for deployment pipelines.

// Source: https://github.com/backenly/backenly | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * What a migration-runner task PROVED, read from its exit code and its logs.
 *
 * Shared by the staging and production launchers so the two cannot disagree
 * about what counts as success. Pure: no AWS, no database.
 *
 * The exit code is the authority for failure, and the logs are the authority
 * for success. A zero exit whose expected output never arrived is NOT a
 * success: the logs may be late, or the runner may have done something else.
 */

export type RunnerCommand = 'status' | 'deploy' | 'preflight' | 'verify' | 'baseline' | 'rollback'

export interface MigrationJobOutco

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key