Skip to content

feat: better type handling and error reporting #354

feat: better type handling and error reporting

feat: better type handling and error reporting #354

Triggered via pull request December 5, 2024 23:21
Status Failure
Total duration 1m 34s
Artifacts

ci.yml

on: pull_request
Matrix: check
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
src/generate.test.ts > (init generate cache): packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:221:3
src/generate.test.ts > select columns: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:228:3
src/generate.test.ts > select all_types: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:239:3
src/generate.test.ts > camel case field transform: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:290:3
src/generate.test.ts > select true: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:302:3
src/generate.test.ts > select count(1) should be non-nullable: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:310:3
src/generate.test.ts > select count(1) as col should be non-nullable: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:317:3
src/generate.test.ts > select count(1)::int as col should be non-nullable: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:324:3
src/generate.test.ts > SELECT id FROM caregiver tbl WHERE tbl.id IS NOT NULL: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:331:3
src/generate.test.ts > SELECT tbl.id FROM caregiver tbl WHERE tbl.id IS NOT NULL: packages/generate/src/generate.ts#L309
AssertionError: Error: syntax error at or near "undefined" at Function.of (/home/runner/work/safeql/safeql/packages/shared/src/common.ts:292:12) at generate (/home/runner/work/safeql/safeql/packages/generate/src/generate.ts:309:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ Function.of ../shared/src/common.ts:292:12 ❯ generate src/generate.ts:309:23 ❯ src/generate.test.ts:205:26 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Option.js:646:42 ❯ Module.pipe ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/function.js:301:20 ❯ pipe.match.output.output src/generate.test.ts:201:9 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/fp-ts/lib/Either.js:840:42 ❯ src/generate.test.ts:338:3
check (ubuntu-latest, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636