Skip to content

chore: adopt strict validation for all command line arguments MCP-298 #820

chore: adopt strict validation for all command line arguments MCP-298

chore: adopt strict validation for all command line arguments MCP-298 #820

Triggered via pull request December 4, 2025 11:01
Status Failure
Total duration 4m 18s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 34s
Run Atlas tests
Run Atlas Local tests
3m 30s
Run Atlas Local tests
Run git secrets
2m 34s
Run git secrets
Report Coverage
24s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 1 warning
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/unit/common/config.test.ts > config > cli parsing > boolean use cases > should parse '--nodb' to {"nodb":true}: tests/unit/common/config.test.ts#L502
AssertionError: expected undefined to be true // Object.is equality - Expected: true + Received: undefined ❯ tests/unit/common/config.test.ts:502:67
tests/unit/common/config.test.ts > config > should generate defaults when no config sources are populated: tests/unit/common/config.test.ts#L58
AssertionError: expected { parsed: { …(28) }, …(2) } to strictly equal { parsed: { …(27) }, …(2) } - Expected + Received @@ -10,10 +10,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:58:48
tests/unit/common/config.test.ts > config > should generate defaults from UserConfigSchema that match expected values: tests/unit/common/config.test.ts#L54
AssertionError: expected { deepInspect: true, …(27) } to strictly equal { …(27) } - Expected + Received @@ -8,10 +8,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:54:44
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show an error when nodb is used: tests/e2e/cli.test.ts#L109
AssertionError: expected 'Error: The --nodb argument is not sup…' to contain 'Error: Invalid command line argument …' - Expected + Received - Error: Invalid command line argument '--nodb'. + Error: The --nodb argument is not supported in the MCP Server. Please remove it from your configuration. + - Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server. + ❯ tests/e2e/cli.test.ts:109:50
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/unit/common/config.test.ts > config > cli parsing > boolean use cases > should parse '--nodb' to {"nodb":true}: tests/unit/common/config.test.ts#L502
AssertionError: expected undefined to be true // Object.is equality - Expected: true + Received: undefined ❯ tests/unit/common/config.test.ts:502:67
tests/unit/common/config.test.ts > config > should generate defaults when no config sources are populated: tests/unit/common/config.test.ts#L58
AssertionError: expected { parsed: { …(28) }, …(2) } to strictly equal { parsed: { …(27) }, …(2) } - Expected + Received @@ -10,10 +10,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:58:48
tests/unit/common/config.test.ts > config > should generate defaults from UserConfigSchema that match expected values: tests/unit/common/config.test.ts#L54
AssertionError: expected { deepInspect: true, …(27) } to strictly equal { …(27) } - Expected + Received @@ -8,10 +8,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:54:44
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show an error when nodb is used: tests/e2e/cli.test.ts#L109
AssertionError: expected 'Error: The --nodb argument is not sup…' to contain 'Error: Invalid command line argument …' - Expected + Received - Error: Invalid command line argument '--nodb'. + Error: The --nodb argument is not supported in the MCP Server. Please remove it from your configuration. + - Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server. + ❯ tests/e2e/cli.test.ts:109:50
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/unit/common/config.test.ts > config > cli parsing > boolean use cases > should parse '--nodb' to {"nodb":true}: tests/unit/common/config.test.ts#L502
AssertionError: expected undefined to be true // Object.is equality - Expected: true + Received: undefined ❯ tests/unit/common/config.test.ts:502:67
tests/unit/common/config.test.ts > config > should generate defaults when no config sources are populated: tests/unit/common/config.test.ts#L58
AssertionError: expected { parsed: { …(28) }, …(2) } to strictly equal { parsed: { …(27) }, …(2) } - Expected + Received @@ -10,10 +10,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:58:48
tests/unit/common/config.test.ts > config > should generate defaults from UserConfigSchema that match expected values: tests/unit/common/config.test.ts#L54
AssertionError: expected { deepInspect: true, …(27) } to strictly equal { …(27) } - Expected + Received @@ -8,10 +8,11 @@ "drop-database", "drop-collection", "delete-many", "drop-index", ], + "deepInspect": true, "disabledTools": [], "dryRun": false, "embeddingsValidation": true, "exportCleanupIntervalMs": 120000, "exportTimeoutMs": 300000, ❯ tests/unit/common/config.test.ts:54:44
tests/e2e/cli.test.ts > CLI entrypoint > warnings and error messages > invalid arguments > should show an error when nodb is used: tests/e2e/cli.test.ts#L109
AssertionError: expected 'Error: The --nodb argument is not sup…' to contain 'Error: Invalid command line argument …' - Expected + Received - Error: Invalid command line argument '--nodb'. + Error: The --nodb argument is not supported in the MCP Server. Please remove it from your configuration. + - Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server. + ❯ tests/e2e/cli.test.ts:109:50
Report Coverage
Unable to download artifact(s): Artifact not found for name: test-results Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
atlas-local-test-results
18.8 KB
sha256:c77d2e76d8d8347d1b4c9009f4c0f02c2077fda1809126a9c9100416724d339e
atlas-test-results
20.5 KB
sha256:7ba25c4a8e54209db4661a25c49d576d6bafebab7b4454ee3d84edc38a38fb65
run-atlas-local-tests-permissions-7bda8a3706a94399b7ccdc093d9533af
140 Bytes
sha256:7f5722f3327a0b21a58b66edb057ac822e13915d6a5852632e4bc1d3ef96ca6a
run-atlas-tests-permissions-1c764454b05fab88e56c8af344406cd6
140 Bytes
sha256:cd763922e42ef1396af234dffba62c10a091a1cedef3b6b2f929e7d2322a949b
run-git-secrets-permissions-334490102a21606f1edc0188594731ac
140 Bytes
sha256:f60f958008d282a4d755f036521eb1f09c40dd0a700f4747fbd18e524b3fbf99
run-tests-permissions-0120bba5d788344ab58236b0a419b93d
140 Bytes
sha256:42c9c245af0bd4c15444deaef875e6b31c9700cb2118b605a5ecfbaa1725e5f0