rename Type.Text to Type.String #1159
tests-and-checks.yml
on: push
Install deps, build required package, typecheck, lint and test
2m 17s
Annotations
6 errors and 1 warning
|
Install deps, build required package, typecheck, lint and test
Process completed with exit code 1.
|
|
test/mapping/Mapping.test.ts > Mapping > generateMapping > should handle mixed scenarios with some relation types having knowledgeGraphId and others not:
packages/hypergraph/src/mapping/Mapping.ts#L598
ParseError: typesync/Schema
└─ ["types"]
└─ AllRelationTypesExist
└─ From side refinement failure
└─ DuplicateTypeNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }
└─ ["properties"]
└─ DuplicatePropertyNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
├─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" }
│ └─ ["dataType"]
│ └─ "String" | "Number" | "Boolean" | "Date" | "Point"
│ ├─ Expected "String", actual "Text"
│ ├─ Expected "Number", actual "Text"
│ ├─ Expected "Boolean", actual "Text"
│ ├─ Expected "Date", actual "Text"
│ └─ Expected "Point", actual "Text"
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
└─ ["dataType"]
└─ { NonEmptyTrimmedString | filter }
└─ Predicate refinement failure
└─ Expected { NonEmptyTrimmedString | filter }, actual "Text"
❯ onLeft ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:266:62
❯ body ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Either.ts:1023:9
❯ Module.getOrThrowWith ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Function.ts:245:18
❯ ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:481:12
❯ generateMapping src/mapping/Mapping.ts:598:18
❯ test/mapping/Mapping.test.ts:296:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _id: 'ParseError' }
|
|
test/mapping/Mapping.test.ts > Mapping > generateMapping > should handle relation properties where the related type does NOT have a knowledgeGraphId (second pass):
packages/hypergraph/src/mapping/Mapping.ts#L598
ParseError: typesync/Schema
└─ ["types"]
└─ AllRelationTypesExist
└─ From side refinement failure
└─ DuplicateTypeNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }
└─ ["properties"]
└─ DuplicatePropertyNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
├─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" }
│ └─ ["dataType"]
│ └─ "String" | "Number" | "Boolean" | "Date" | "Point"
│ ├─ Expected "String", actual "Text"
│ ├─ Expected "Number", actual "Text"
│ ├─ Expected "Boolean", actual "Text"
│ ├─ Expected "Date", actual "Text"
│ └─ Expected "Point", actual "Text"
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
└─ ["dataType"]
└─ { NonEmptyTrimmedString | filter }
└─ Predicate refinement failure
└─ Expected { NonEmptyTrimmedString | filter }, actual "Text"
❯ onLeft ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:266:62
❯ body ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Either.ts:1023:9
❯ Module.getOrThrowWith ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Function.ts:245:18
❯ ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:481:12
❯ generateMapping src/mapping/Mapping.ts:598:18
❯ test/mapping/Mapping.test.ts:243:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _id: 'ParseError' }
|
|
test/mapping/Mapping.test.ts > Mapping > generateMapping > should handle relation properties where the related type has a knowledgeGraphId:
packages/hypergraph/src/mapping/Mapping.ts#L598
ParseError: typesync/Schema
└─ ["types"]
└─ AllRelationTypesExist
└─ From side refinement failure
└─ DuplicateTypeNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }
└─ ["properties"]
└─ DuplicatePropertyNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
├─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" }
│ └─ ["dataType"]
│ └─ "String" | "Number" | "Boolean" | "Date" | "Point"
│ ├─ Expected "String", actual "Text"
│ ├─ Expected "Number", actual "Text"
│ ├─ Expected "Boolean", actual "Text"
│ ├─ Expected "Date", actual "Text"
│ └─ Expected "Point", actual "Text"
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
└─ ["dataType"]
└─ { NonEmptyTrimmedString | filter }
└─ Predicate refinement failure
└─ Expected { NonEmptyTrimmedString | filter }, actual "Text"
❯ onLeft ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:266:62
❯ body ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Either.ts:1023:9
❯ Module.getOrThrowWith ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Function.ts:245:18
❯ ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:481:12
❯ generateMapping src/mapping/Mapping.ts:598:18
❯ test/mapping/Mapping.test.ts:190:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _id: 'ParseError' }
|
|
test/mapping/Mapping.test.ts > Mapping > generateMapping > should use the existing KG ids if provided:
packages/hypergraph/src/mapping/Mapping.ts#L598
ParseError: typesync/Schema
└─ ["types"]
└─ AllRelationTypesExist
└─ From side refinement failure
└─ DuplicateTypeNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }
└─ ["properties"]
└─ DuplicatePropertyNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
├─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" }
│ └─ ["dataType"]
│ └─ "String" | "Number" | "Boolean" | "Date" | "Point"
│ ├─ Expected "String", actual "Text"
│ ├─ Expected "Number", actual "Text"
│ ├─ Expected "Boolean", actual "Text"
│ ├─ Expected "Date", actual "Text"
│ └─ Expected "Point", actual "Text"
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
└─ ["dataType"]
└─ { NonEmptyTrimmedString | filter }
└─ Predicate refinement failure
└─ Expected { NonEmptyTrimmedString | filter }, actual "Text"
❯ onLeft ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:266:62
❯ body ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Either.ts:1023:9
❯ Module.getOrThrowWith ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Function.ts:245:18
❯ ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:481:12
❯ generateMapping src/mapping/Mapping.ts:598:18
❯ test/mapping/Mapping.test.ts:125:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _id: 'ParseError' }
|
|
test/mapping/Mapping.test.ts > Mapping > generateMapping > should be able to map the input schema to a resulting Mapping definition:
packages/hypergraph/src/mapping/Mapping.ts#L598
ParseError: typesync/Schema
└─ ["types"]
└─ AllRelationTypesExist
└─ From side refinement failure
└─ DuplicateTypeNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly properties: DuplicatePropertyNames }
└─ ["properties"]
└─ DuplicatePropertyNames
└─ From side refinement failure
└─ minItems(1)
└─ From side refinement failure
└─ ReadonlyArray<{ readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }>
└─ [0]
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" } | { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
├─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: "String" | "Number" | "Boolean" | "Date" | "Point" }
│ └─ ["dataType"]
│ └─ "String" | "Number" | "Boolean" | "Date" | "Point"
│ ├─ Expected "String", actual "Text"
│ ├─ Expected "Number", actual "Text"
│ ├─ Expected "Boolean", actual "Text"
│ ├─ Expected "Date", actual "Text"
│ └─ Expected "Point", actual "Text"
└─ { readonly name: NonEmptyTrimmedString; readonly knowledgeGraphId: UUID | null; readonly dataType: { NonEmptyTrimmedString | filter }; readonly relationType: SchemaTypePropertyRelation.relationType }
└─ ["dataType"]
└─ { NonEmptyTrimmedString | filter }
└─ Predicate refinement failure
└─ Expected { NonEmptyTrimmedString | filter }, actual "Text"
❯ onLeft ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:266:62
❯ body ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Either.ts:1023:9
❯ Module.getOrThrowWith ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/Function.ts:245:18
❯ ../../node_modules/.pnpm/effect@3.17.1/node_modules/effect/src/ParseResult.ts:481:12
❯ generateMapping src/mapping/Mapping.ts:598:18
❯ test/mapping/Mapping.test.ts:60:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _id: 'ParseError' }
|
|
Install deps, build required package, typecheck, lint and test
Could not determine node version from /home/runner/work/hypergraph/hypergraph/package.json. Falling back
|