feat: normalise PostgreSQL repo permissions into a repo_users join table #10433
ci.yml
on: pull_request
Matrix: build-ubuntu
build-windows
7m 10s
build result
11s
Annotations
60 errors
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:173:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > does not leak _id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns an Action instance:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:111:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns null for a non-existent push:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:106:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:98:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > strips _id from action before saving:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:86:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action:
test/db/postgres/pushes.integration.test.ts#L71
AssertionError: expected undefined to be false // Object.is equality
- Expected:
false
+ Received:
undefined
❯ test/db/postgres/pushes.integration.test.ts:71:34
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > writes an action to the database:
test/db/postgres/pushes.integration.test.ts#L58
AssertionError: expected null not to be null
❯ test/db/postgres/pushes.integration.test.ts:58:29
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > does not throw when deleting a non-existent push:
test/db/postgres/pushes.integration.test.ts#L179
AssertionError: promise rejected "error: column r.users does not exist { …(15) }" instead of resolving
❯ test/db/postgres/pushes.integration.test.ts:179:46
Caused by: Caused by: error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ deletePush src/db/postgres/pushes.ts:197:3
❯ test/db/postgres/pushes.integration.test.ts:179:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:173:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > does not leak _id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns an Action instance:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:111:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns null for a non-existent push:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:106:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id:
test/db/postgres/pushes.integration.test.ts#L101
AssertionError: expected undefined to be 'get-push-test' // Object.is equality
- Expected:
"get-push-test"
+ Received:
undefined
❯ test/db/postgres/pushes.integration.test.ts:101:26
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > strips _id from action before saving:
test/db/postgres/pushes.integration.test.ts#L88
AssertionError: expected null not to be null
❯ test/db/postgres/pushes.integration.test.ts:88:29
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action:
src/db/postgres/pushes.ts#L191
error: relation "pushes" does not exist
❯ node_modules/pg-pool/index.js:45:11
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:70:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '18', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > authorise > authorises a push and resets cancel/reject flags:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:191:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > does not throw when deleting a non-existent push:
test/db/postgres/pushes.integration.test.ts#L179
AssertionError: promise rejected "error: column r.users does not exist { …(15) }" instead of resolving
❯ test/db/postgres/pushes.integration.test.ts:179:46
Caused by: Caused by: error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ deletePush src/db/postgres/pushes.ts:197:3
❯ test/db/postgres/pushes.integration.test.ts:179:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:173:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > does not leak _id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns an Action instance:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:111:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns null for a non-existent push:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:106:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > strips _id from action before saving:
test/db/postgres/pushes.integration.test.ts#L88
AssertionError: expected null not to be null
❯ test/db/postgres/pushes.integration.test.ts:88:29
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > upserts an existing action:
src/db/postgres/pushes.ts#L191
error: relation "pushes" does not exist
❯ node_modules/pg-pool/index.js:45:11
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:70:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '18', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > reject > throws for a non-existent push:
test/db/postgres/pushes.integration.test.ts#L240
AssertionError: expected [Function] to throw error including 'push non-existent not found' but got 'column r.users does not exist'
Expected: "push non-existent not found"
Received: "column r.users does not exist"
❯ test/db/postgres/pushes.integration.test.ts:240:55
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > reject > rejects a push and persists the rejection payload:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:218:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > authorise > throws for a non-existent push:
test/db/postgres/pushes.integration.test.ts#L204
AssertionError: expected [Function] to throw error including 'push non-existent not found' but got 'column r.users does not exist'
Expected: "push non-existent not found"
Received: "column r.users does not exist"
❯ test/db/postgres/pushes.integration.test.ts:204:58
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > authorise > authorises a push and resets cancel/reject flags:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:191:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > does not throw when deleting a non-existent push:
test/db/postgres/pushes.integration.test.ts#L179
AssertionError: promise rejected "error: column r.users does not exist { …(15) }" instead of resolving
❯ test/db/postgres/pushes.integration.test.ts:179:46
Caused by: Caused by: error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ deletePush src/db/postgres/pushes.ts:197:3
❯ test/db/postgres/pushes.integration.test.ts:179:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:173:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > does not leak _id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id:
test/db/postgres/pushes.integration.test.ts#L101
AssertionError: expected undefined to be 'get-push-test' // Object.is equality
- Expected:
"get-push-test"
+ Received:
undefined
❯ test/db/postgres/pushes.integration.test.ts:101:26
|
|
build-ubuntu (24.x, 6.0)
Process completed with exit code 1.
|
|
test/db/postgres/schemaMigrations.integration.test.ts > PostgreSQL Schema Migration Integration Tests > backfills existing JSONB repo permissions into repo_users (single, multi, same user in both roles):
test/db/postgres/schemaMigrations.integration.test.ts#L104
error: deadlock detected
❯ node_modules/pg-pool/index.js:45:11
❯ test/db/postgres/schemaMigrations.integration.test.ts:104:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 317, severity: 'ERROR', code: '40P01', detail: 'Process 271 waits for AccessExclusiveLock on relation 16643 of database 16384; blocked by process 270.\nProcess 270 waits for AccessShareLock on relation 16672 of database 16384; blocked by process 271.', hint: 'See server log for query details.', position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'deadlock.c', routine: 'DeadLockReport' }
|
|
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > getRepo / getRepoByUrl / getRepoById > finds by name (lower-cased lookup):
test/db/postgres/repo.integration.test.ts#L63
AssertionError: expected undefined to be 'findme' // Object.is equality
- Expected:
"findme"
+ Received:
undefined
❯ test/db/postgres/repo.integration.test.ts:63:27
|
|
test/db/postgres/repo.integration.test.ts > PostgreSQL Repo Integration Tests > createRepo > persists the row and stamps a generated _id:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ createRepo src/db/postgres/repo.ts:140:18
❯ test/db/postgres/repo.integration.test.ts:49:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
test/db/postgres/pushes.integration.test.ts#L151
AssertionError: expected [ 'push-authorised', 'push-b' ] to deeply equal [ 'push-authorised', 'push-b', …(1) ]
- Expected
+ Received
[
"push-authorised",
"push-b",
- "push-a",
]
❯ test/db/postgres/pushes.integration.test.ts:151:19
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id:
test/db/postgres/pushes.integration.test.ts#L101
AssertionError: expected undefined to be 'get-push-test' // Object.is equality
- Expected:
"get-push-test"
+ Received:
undefined
❯ test/db/postgres/pushes.integration.test.ts:101:26
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > strips _id from action before saving:
test/db/postgres/pushes.integration.test.ts#L88
AssertionError: expected null not to be null
❯ test/db/postgres/pushes.integration.test.ts:88:29
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > does not throw when deleting a non-existent push:
test/db/postgres/pushes.integration.test.ts#L179
AssertionError: promise rejected "error: column r.users does not exist { …(15) }" instead of resolving
❯ test/db/postgres/pushes.integration.test.ts:179:46
Caused by: Caused by: error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ deletePush src/db/postgres/pushes.ts:197:3
❯ test/db/postgres/pushes.integration.test.ts:179:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > deletePush > deletes a push by id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:173:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > does not leak _id:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > filters by authorised flag:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPushes > orders pushes by timestamp DESC:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:122:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns an Action instance:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:111:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > returns null for a non-existent push:
src/db/postgres/schemaMigrations.ts#L193
error: column r.users does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:193:7
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:106:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 106, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '909', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'errorMissingColumn' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > getPush > retrieves a push by id:
src/db/postgres/schemaMigrations.ts#L183
error: relation "schema_migrations" does not exist
❯ node_modules/pg/lib/client.js:694:17
❯ runMigrations src/db/postgres/schemaMigrations.ts:183:22
❯ connect src/db/postgres/helper.ts:126:3
❯ query src/db/postgres/helper.ts:159:16
❯ writeAudit src/db/postgres/pushes.ts:210:3
❯ test/db/postgres/pushes.integration.test.ts:98:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 116, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '21', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > strips _id from action before saving:
src/db/postgres/pushes.ts#L191
error: relation "pushes" does not exist
❯ node_modules/pg-pool/index.js:45:11
❯ getPush src/db/postgres/pushes.ts:191:18
❯ test/db/postgres/pushes.integration.test.ts:87:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { length: 105, severity: 'ERROR', code: '42P01', detail: undefined, hint: undefined, position: '18', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', routine: 'parserOpenTable' }
|
|
test/db/postgres/pushes.integration.test.ts > PostgreSQL Pushes Integration Tests > writeAudit > writes an action to the database:
test/db/postgres/pushes.integration.test.ts#L58
AssertionError: expected null not to be null
❯ test/db/postgres/pushes.integration.test.ts:58:29
|
|
build-windows
Process completed with exit code 1.
|
|
test/db/postgres/helper.test.ts > PostgreSQL - helper > getSessionStore > throws when no connection is configured — no MemoryStore fallback:
test/db/postgres/helper.test.ts#L323
AssertionError: expected [Function] to throw an error
- Expected:
null
+ Received:
undefined
❯ test/db/postgres/helper.test.ts:323:39
|
|
build result
Process completed with exit code 1.
|