Skip to content

fix(ci): use migrate reset (not deploy) so migrations test fits db-pu… #211

fix(ci): use migrate reset (not deploy) so migrations test fits db-pu…

fix(ci): use migrate reset (not deploy) so migrations test fits db-pu… #211

Triggered via push July 4, 2026 14:11
Status Failure
Total duration 1m 25s
Artifacts

ci.yml

on: push
Typecheck & build
36s
Typecheck & build
Integration tests
1m 10s
Integration tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
Integration tests
Process completed with exit code 1.
tests/integration/migrations.test.ts > Migrations idempotency > apply -> reset -> apply yields stable migration checksums: tests/integration/migrations.test.ts#L11
Error: Command failed: npx prisma migrate reset --force --skip-seed Error: P3018 A migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve Migration name: 20260626120000_add_token_transfer_is_sac Database error code: 42P01 Database error: ERROR: relation "wraith.TokenTransfer" does not exist DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42P01), message: "relation \"wraith.TokenTransfer\" does not exist", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("namespace.c"), line: Some(429), routine: Some("RangeVarGetRelidExtended") } ❯ runPrisma tests/integration/migrations.test.ts:11:10 ❯ tests/integration/migrations.test.ts:27:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, 'Prisma schema loaded from prisma/schema.prisma\nDatasource "db": PostgreSQL database "wraith_test", schemas "wraith" at "localhost:55432"\n\nApplying migration `20250101000000_add_backfill_cursor`\nApplying migration `20260624120000_partition_retention_runs`\nApplying migration `20260626120000_add_token_transfer_is_sac`\n', 'Error: P3018\n\nA migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve\n\nMigration name: 20260626120000_add_token_transfer_is_sac\n\nDatabase error code: 42P01\n\nDatabase error:\nERROR: relation "wraith.TokenTransfer" does not exist\n\nDbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42P01), message: "relation \"wraith.TokenTransfer\" does not exist", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("namespace.c"), line: Some(429), routine: Some("RangeVarGetRelidExtended") }\n\n\n' ], pid: 4072, stdout: 'Prisma schema loaded from prisma/schema.prisma\nDatasource "db": PostgreSQL database "wraith_test", schemas "wraith" at "localhost:55432"\n\nApplying migration `20250101000000_add_backfill_cursor`\nApplying migration `20260624120000_partition_retention_runs`\nApplying migration `20260626120000_add_token_transfer_is_sac`\n', stderr: 'Error: P3018\n\nA migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve\n\nMigration name: 20260626120000_add_token_transfer_is_sac\n\nDatabase error code: 42P01\n\nDatabase error:\nERROR: relation "wraith.TokenTransfer" does not exist\n\nDbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42P01), message: "relation \"wraith.TokenTransfer\" does not exist", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("namespace.c"), line: Some(429), routine: Some("RangeVarGetRelidExtended") }\n\n\n' }
tests/integration/api.test.ts > Wraith integration API > aggregates account summary across incoming and outgoing events: tests/integration/api.test.ts#L56
AssertionError: expected undefined to deeply equal [ { …(8) }, { …(8) } ] - Expected: [ { "contractId": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM", "displayNetFlow": "3.0000000", "displayTotalReceived": "3.5000000", "displayTotalSent": "0.5000000", "netFlow": "30000000", "totalReceived": "35000000", "totalSent": "5000000", "txCount": 3, }, { "contractId": "CBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBD2KM", "displayNetFlow": "2.5000000", "displayTotalReceived": "4.0000000", "displayTotalSent": "1.5000000", "netFlow": "25000000", "totalReceived": "40000000", "totalSent": "15000000", "txCount": 2, }, ] + Received: undefined ❯ tests/integration/api.test.ts:56:25
Typecheck & build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration tests
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/