Skip to content

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

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

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

Triggered via pull request December 4, 2025 11:02
Status Failure
Total duration 5m 0s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 20s
Run Atlas tests
Run Atlas Local tests
3m 22s
Run Atlas Local tests
Run git secrets
1m 52s
Run git secrets
Report Coverage
23s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

19 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
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
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/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/helpers.ts#L382
Error: Aborted: Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ Timeout.<anonymous> tests/integration/helpers.ts:382:31
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/helpers.ts#L382
Error: Aborted: Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ Timeout.<anonymous> tests/integration/helpers.ts:382:31
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/helpers.ts#L382
Error: Aborted: Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ Timeout.<anonymous> tests/integration/helpers.ts:382:31
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/helpers.ts#L382
Error: Aborted: Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ Timeout.<anonymous> tests/integration/helpers.ts:382:31
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/helpers.ts#L382
Error: Aborted: Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ Timeout.<anonymous> tests/integration/helpers.ts:382:31
tests/integration/common/connectionManager.oidc.test.ts > ConnectionManager OIDC Tests > 8.0.12 Enterprise :: device-flow > gets requested by the agent to connect: tests/integration/common/connectionManager.oidc.test.ts#L111
Error: Test timed out in 60000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ it tests/integration/common/connectionManager.oidc.test.ts:111:21 ❯ tests/integration/common/connectionManager.oidc.test.ts:255:17 ❯ getUserConfig tests/integration/common/connectionManager.oidc.test.ts:153:17 ❯ tests/integration/tools/mongodb/mongodbHelpers.ts:103:9
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:7a5218ce5977034a529921f32a8ee6d28e9a129d4cadede28d82bf5cdacdbaaa
atlas-test-results
20.5 KB
sha256:00c6c5147da943586f1e223a26774b84dc5d5acdaa5081cab62e28d33f97ea28
run-atlas-local-tests-permissions-e37e0ad39ea5cf6d1c88d3699be03961
140 Bytes
sha256:96fb94a08ffb636f1e0410df1d54a8559e4b147d47b96b486d3eca8ca29e781c
run-atlas-tests-permissions-4030799df6c238e32ebe3940a10b5909
140 Bytes
sha256:584cb13afd417aee337ba490a3f2c15cf7822bae02c6323e8f522ac7df6f3d39
run-git-secrets-permissions-bae8ca00b905a97c6f02473d6c32b8ed
140 Bytes
sha256:335985c99ab9f1f81673eaef65edd9ce3ec35a8bcd076b7794e5470d4c9df7ee
run-tests-permissions-eaf12d2a2c5d55331c77ffdae9bfacb4
140 Bytes
sha256:a04fe35491f6d07c919847ea244cd0531815239940b74a841cba4aaa60b93df9