chore: adopt strict validation for all command line arguments MCP-298 #797
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Run git secrets
1m 7s
Report Coverage
39s
Annotations
10 errors
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > vector search misconfiguration > should warn if vectorSearch is enabled but embeddings provider is not configured:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:113:42
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show a suggestion when the only change is on the case:
tests/e2e/cli.test.ts#L103
AssertionError: expected 'EFTYPE' to be 1 // Object.is equality
- Expected:
1
+ Received:
"EFTYPE"
❯ tests/e2e/cli.test.ts:103:48
|
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show a suggestion when is a simple typo:
tests/e2e/cli.test.ts#L103
AssertionError: expected 'EFTYPE' to be 1 // Object.is equality
- Expected:
1
+ Received:
"EFTYPE"
❯ tests/e2e/cli.test.ts:103:48
|
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show an error when an argument is not known:
tests/e2e/cli.test.ts#L103
AssertionError: expected 'EFTYPE' to be 1 // Object.is equality
- Expected:
1
+ Received:
"EFTYPE"
❯ tests/e2e/cli.test.ts:103:48
|
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > Deprecated CLI arguments > deprecation behaviour of --connectionString > shows the reference message when --connectionString was passed:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:70:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > Deprecated CLI arguments > deprecation behaviour of --connectionString > warns the usage of --connectionString as it is deprecated:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:65:50
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > should handle complex configuration:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:30:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > should handle dry run request:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:22:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > should handle help request:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:16:42
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
|
tests/e2e/cli.test.ts > CLI entrypoint > should handle version request:
tests/e2e/e2eUtils.ts#L39
Error: spawn EFTYPE
❯ runServer tests/e2e/e2eUtils.ts:39:30
❯ tests/e2e/cli.test.ts:10:42
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -4028, code: 'EFTYPE', syscall: 'spawn' }
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
atlas-local-test-results
|
18.8 KB |
sha256:f527a2a0749ca3ff4e46ddafe5fca731d3d7ac424371e89ee41640aa32f80c11
|
|
|
atlas-test-results
|
20.5 KB |
sha256:91e8615f1b3e457fc54de0204cf34185c9385724f5c2df3a822f5a9c4330c770
|
|
|
run-atlas-local-tests-permissions-2462fdc04aef6b682619d295331e6e01
|
140 Bytes |
sha256:ca8a0fff18435f542464a6273a1b2c38aff41596c9f39e210e79c0485f3edd67
|
|
|
run-atlas-tests-permissions-f4b48e9a524c224fd8eddb5d3b35b9a5
|
140 Bytes |
sha256:32f680794e8ea98231264d40d3a7fb8d5c830a422ea5971d071283d0db70fe9d
|
|
|
run-git-secrets-permissions-13f4e4e7627309d012ac04d8207e0e15
|
140 Bytes |
sha256:2799bf71e5f87a9f2267beb511fbbf2a033f7fc0d62f2884c892854e05a80521
|
|
|
run-tests-permissions-608ab2d9ff9127e5630fbf21f7c794ce
|
140 Bytes |
sha256:772b85d0b714df8a4bee8226ec935afec6fcc0a7504b27284d581e75d9690c50
|
|
|
test-results
|
30.8 KB |
sha256:04d1b830c9c33df2afe64c145da9cd1c8414adaefa64e1fb9d3597b870bc56bf
|
|