Adapts procedure registry to depend on the cypher version #1599
ci.yaml
on: pull_request
Run eslint and check formatting
2m 34s
Unit tests
2m 22s
E2E tests
7m 18s
Annotations
12 errors and 3 warnings
src/tests/signatureHelp.test.ts > Procedures signature help > Procedures signature help depends on cypher version:
packages/language-support/src/tests/signatureHelp.test.ts#L19
AssertionError: expected +0 to be undefined // Object.is equality
- Expected:
undefined
+ Received:
0
❯ testSignatureHelp src/tests/signatureHelp.test.ts:19:47
❯ src/tests/signatureHelp.test.ts:248:5
|
src/tests/signatureHelp.test.ts > Functions signature help > Functions signature help depends on cypher version:
packages/language-support/src/tests/signatureHelp.test.ts#L19
AssertionError: expected +0 to be undefined // Object.is equality
- Expected:
undefined
+ Received:
0
❯ testSignatureHelp src/tests/signatureHelp.test.ts:19:47
❯ src/tests/signatureHelp.test.ts:460:5
|
src/tests/autocompletion/functionsCompletion.test.ts > function invocations > Functions are completed based on cypher version:
packages/language-support/src/tests/autocompletion/completionAssertionHelpers.ts#L77
AssertionError: expected [ { label: 'uuid', kind: 3, …(4) } ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "detail": "(function)",
+ "documentation": "Returns a UUID.",
+ "kind": 3,
+ "label": "uuid",
+ "signature": "apoc.create.uuid() :: STRING",
+ "tags": Array [
+ 1,
+ ],
+ },
+ ]
❯ Module.testCompletions src/tests/autocompletion/completionAssertionHelpers.ts:77:33
❯ src/tests/autocompletion/functionsCompletion.test.ts:418:5
|
src/tests/autocompletion/procedureCompletion.test.ts > Procedures auto-completion > Procedures are completed based on cypher version:
packages/language-support/src/tests/autocompletion/completionAssertionHelpers.ts#L77
AssertionError: expected [ { label: 'uuids', kind: 2, …(4) } ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "detail": "(procedure)",
+ "documentation": "Returns a stream of UUIDs.",
+ "kind": 2,
+ "label": "uuids",
+ "signature": "apoc.create.uuids(count :: INTEGER) :: (row :: INTEGER, uuid :: STRING)",
+ "tags": Array [
+ 1,
+ ],
+ },
+ ]
❯ Module.testCompletions src/tests/autocompletion/completionAssertionHelpers.ts:77:33
❯ src/tests/autocompletion/procedureCompletion.test.ts:453:5
|
src/tests/syntaxValidation/functionsValidation.test.ts > Functions semantic validation spec > Deprecations and removals for functions are based on the cypher version:
packages/language-support/src/tests/syntaxValidation/functionsValidation.test.ts#L828
AssertionError: expected [ { severity: 1, …(3) }, …(1) ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "message": "Function call does not provide the required number of arguments: expected 1 got 0.
+
+ Function apoc.create.uuid has signature: apoc.create.uuid(config :: MAP) :: STRING
+ meaning that it expects 1 argument of type MAP",
+ "offsets": Object {
+ "end": 35,
+ "start": 17,
+ },
+ "range": Object {
+ "end": Object {
+ "character": 35,
+ "line": 0,
+ },
+ "start": Object {
+ "character": 17,
+ "line": 0,
+ },
+ },
+ "severity": 1,
+ },
+ Object {
+ "message": "The function has a deprecated field. ('config' used by 'apoc.create.uuid' is deprecated.)",
+ "offsets": Object {
+ "end": 35,
+ "start": 17,
+ },
+ "range": Object {
+ "end": Object {
+ "character": 35,
+ "line": 0,
+ },
+ "start": Object {
+ "character": 17,
+ "line": 0,
+ },
+ },
+ "severity": 2,
+ },
+ ]
❯ src/tests/syntaxValidation/functionsValidation.test.ts:828:7
|
src/tests/syntaxValidation/functionsValidation.test.ts > Functions semantic validation spec > Errors and notifications for functions are different based on the cypher version:
packages/language-support/src/tests/syntaxValidation/functionsValidation.test.ts#L879
AssertionError: expected [ { severity: 1, …(3) } ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "message": "Procedure call provides too many arguments: got 4 expected no more than 3.
+
+ Procedure apoc.cypher.runTimeboxed has signature: apoc.cypher.runTimeboxed(statement :: STRING, params :: MAP, timeout :: INTEGER) :: value :: MAP
+ meaning that it expects at least 3 arguments of types STRING, MAP, INTEGER
+ ",
+ "offsets": Object {
+ "end": 298,
+ "start": 21,
+ },
+ "range": Object {
+ "end": Object {
+ "character": 75,
+ "line": 6,
+ },
+ "start": Object {
+ "character": 20,
+ "line": 1,
+ },
+ },
+ "severity": 1,
+ },
+ ]
❯ src/tests/syntaxValidation/functionsValidation.test.ts:879:7
|
src/tests/syntaxValidation/functionsValidation.test.ts > Functions semantic validation spec > Warnings for procedures misused as functions are different depending on cypher the version:
packages/language-support/src/tests/syntaxValidation/functionsValidation.test.ts#L916
AssertionError: expected [ { severity: 1, …(3) } ] to deeply equal [ { …(4) } ]
- Expected
+ Received
Array [
Object {
- "message": "Function apoc.create.uuids is not present in the database. Make sure you didn't misspell it or that it is available when you run this statement in your application",
+ "message": "apoc.create.uuids is a procedure, not a function. Did you mean to call the procedure apoc.create.uuids inside a CALL clause?",
"offsets": Object {
"end": 34,
"start": 17,
},
"range": Object {
"end": Object {
"character": 34,
"line": 0,
},
"start": Object {
"character": 17,
"line": 0,
},
},
"severity": 1,
},
]
❯ src/tests/syntaxValidation/functionsValidation.test.ts:916:7
|
src/tests/syntaxValidation/proceduresValidation.test.ts > Procedures semantic validation spec > Deprecations and removals for procedures are based on the cypher version:
packages/language-support/src/tests/syntaxValidation/proceduresValidation.test.ts#L942
AssertionError: expected [ { severity: 2, …(4) } ] to deeply equal [ { …(4) } ]
- Expected
+ Received
Array [
Object {
- "message": "Procedure apoc.export.arrow.stream.all is not present in the database. Make sure you didn't misspell it or that it is available when you run this statement in your application",
+ "message": "Procedure apoc.export.arrow.stream.all is deprecated. Alternative: This procedure is being moved to APOC Extended.",
"offsets": Object {
"end": 43,
"start": 15,
},
"range": Object {
"end": Object {
"character": 43,
"line": 0,
},
"start": Object {
"character": 15,
"line": 0,
},
},
- "severity": 1,
+ "severity": 2,
+ "tags": Array [
+ 2,
+ ],
},
]
❯ src/tests/syntaxValidation/proceduresValidation.test.ts:942:7
|
src/tests/syntaxValidation/proceduresValidation.test.ts > Procedures semantic validation spec > Errors and notifications for procedures are different based on the cypher version:
packages/language-support/src/tests/syntaxValidation/proceduresValidation.test.ts#L1013
AssertionError: expected [ { severity: 1, …(3) } ] to deeply equal []
- Expected
+ Received
- Array []
+ Array [
+ Object {
+ "message": "Procedure call provides too many arguments: got 4 expected no more than 3.
+
+ Procedure apoc.cypher.runTimeboxed has signature: apoc.cypher.runTimeboxed(statement :: STRING, params :: MAP, timeout :: INTEGER) :: value :: MAP
+ meaning that it expects at least 3 arguments of types STRING, MAP, INTEGER
+ ",
+ "offsets": Object {
+ "end": 298,
+ "start": 21,
+ },
+ "range": Object {
+ "end": Object {
+ "character": 75,
+ "line": 6,
+ },
+ "start": Object {
+ "character": 20,
+ "line": 1,
+ },
+ },
+ "severity": 1,
+ },
+ ]
❯ src/tests/syntaxValidation/proceduresValidation.test.ts:1013:7
|
src/tests/syntaxValidation/proceduresValidation.test.ts > Procedures semantic validation spec > Warnings for functions misused as procedures are different depending on cypher the version:
packages/language-support/src/tests/syntaxValidation/proceduresValidation.test.ts#L1050
AssertionError: expected [ { severity: 1, …(3) } ] to deeply equal [ { …(4) } ]
- Expected
+ Received
Array [
Object {
- "message": "Procedure apoc.create.uuid is not present in the database. Make sure you didn't misspell it or that it is available when you run this statement in your application",
+ "message": "apoc.create.uuid is a function, not a procedure. Did you mean to use the function apoc.create.uuid with a RETURN instead of a CALL clause?",
"offsets": Object {
"end": 31,
"start": 15,
},
"range": Object {
"end": Object {
"character": 31,
"line": 0,
},
"start": Object {
"character": 15,
"line": 0,
},
},
"severity": 1,
},
]
❯ src/tests/syntaxValidation/proceduresValidation.test.ts:1050:7
|
E2E tests
neo4j-for-vscode#test:e2e: command (/home/runner/work/cypher-language-support/cypher-language-support/packages/vscode-extension) /usr/local/bin/npm run test:e2e exited (1)
|
E2E tests
Process completed with exit code 1.
|
Unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run eslint and check formatting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
585 KB |
|