fix: tweak the arg shapes to improve tool accuracy #1282
code_health.yaml
on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 10s
Report Coverage
37s
Annotations
9 errors, 19 warnings, and 2 notices
Run Atlas tests
Process completed with exit code 1.
|
tests/integration/tools/mongodb/read/find.test.ts > find tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(5) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
- "description": "Database name",
- "name": "database",
+ "description": "Collection name",
+ "name": "collection",
"required": true,
"type": "string",
},
{
- "description": "Collection name",
- "name": "collection",
+ "description": "Database name",
+ "name": "database",
"required": true,
"type": "string",
},
{
"description": "The query filter, matching the syntax of the query argument of db.collection.find()",
"name": "filter",
- "required": false,
- "type": "object",
- },
- {
- "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
- "name": "projection",
"required": false,
"type": "object",
},
{
"description": "The maximum number of documents to return",
"name": "limit",
"required": false,
"type": "number",
},
{
- "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort()",
+ "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
+ "name": "projection",
+ "required": false,
+ "type": "object",
+ },
+ {
+ "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending).",
"name": "sort",
"required": false,
"type": "object",
},
]
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:211:32
|
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
|
tests/integration/tools/mongodb/read/find.test.ts > find tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(5) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
- "description": "Database name",
- "name": "database",
+ "description": "Collection name",
+ "name": "collection",
"required": true,
"type": "string",
},
{
- "description": "Collection name",
- "name": "collection",
+ "description": "Database name",
+ "name": "database",
"required": true,
"type": "string",
},
{
"description": "The query filter, matching the syntax of the query argument of db.collection.find()",
"name": "filter",
- "required": false,
- "type": "object",
- },
- {
- "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
- "name": "projection",
"required": false,
"type": "object",
},
{
"description": "The maximum number of documents to return",
"name": "limit",
"required": false,
"type": "number",
},
{
- "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort()",
+ "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
+ "name": "projection",
+ "required": false,
+ "type": "object",
+ },
+ {
+ "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending).",
"name": "sort",
"required": false,
"type": "object",
},
]
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:211:32
|
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
|
tests/integration/tools/mongodb/read/find.test.ts > find tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(5) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
- "description": "Database name",
- "name": "database",
+ "description": "Collection name",
+ "name": "collection",
"required": true,
"type": "string",
},
{
- "description": "Collection name",
- "name": "collection",
+ "description": "Database name",
+ "name": "database",
"required": true,
"type": "string",
},
{
"description": "The query filter, matching the syntax of the query argument of db.collection.find()",
"name": "filter",
- "required": false,
- "type": "object",
- },
- {
- "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
- "name": "projection",
"required": false,
"type": "object",
},
{
"description": "The maximum number of documents to return",
"name": "limit",
"required": false,
"type": "number",
},
{
- "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort()",
+ "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
+ "name": "projection",
+ "required": false,
+ "type": "object",
+ },
+ {
+ "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending).",
"name": "sort",
"required": false,
"type": "object",
},
]
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:211:32
|
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
|
tests/integration/tools/mongodb/read/find.test.ts > find tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(5) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
- ArrayContaining [
+ [
{
- "description": "Database name",
- "name": "database",
+ "description": "Collection name",
+ "name": "collection",
"required": true,
"type": "string",
},
{
- "description": "Collection name",
- "name": "collection",
+ "description": "Database name",
+ "name": "database",
"required": true,
"type": "string",
},
{
"description": "The query filter, matching the syntax of the query argument of db.collection.find()",
"name": "filter",
- "required": false,
- "type": "object",
- },
- {
- "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
- "name": "projection",
"required": false,
"type": "object",
},
{
"description": "The maximum number of documents to return",
"name": "limit",
"required": false,
"type": "number",
},
{
- "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort()",
+ "description": "The projection, matching the syntax of the projection argument of db.collection.find()",
+ "name": "projection",
+ "required": false,
+ "type": "object",
+ },
+ {
+ "description": "A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for ascending, -1 for descending).",
"name": "sort",
"required": false,
"type": "object",
},
]
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:211:32
|
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 Atlas tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
Run Atlas tests
1 added, 0 removed; done.
|
Run Atlas tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
|
Run Atlas tests
Updating certificates in /etc/ssl/certs...
|
Run Atlas tests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
Run MongoDB tests (macos-latest)
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
|
Run MongoDB tests (macos-latest)
No ALTQ support in kernel
ALTQ related functions disabled
|
Run MongoDB tests (macos-latest)
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf for further details.
|
Run MongoDB tests (macos-latest)
YES (0)
|
Run MongoDB tests (macos-latest)
2025-07-18 09:13:46.356 sysadminctl[1038:6324] Creating home directory at /Users/mitmproxyuser
|
Run MongoDB tests (macos-latest)
2025-07-18 09:13:46.272 sysadminctl[1038:6324] Assigning UID: 502 GID: 20
|
Run MongoDB tests (macos-latest)
2025-07-18 09:13:46.134 sysadminctl[1038:6324] Creating user record…
|
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
|
Run MongoDB tests (macos-latest)
2025-07-18 09:13:45.558 sysadminctl[1038:6324] ----------------------------
2025-07-18 09:13:45.558 sysadminctl[1038:6324] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) !
2025-07-18 09:13:45.558 sysadminctl[1038:6324] ----------------------------
|
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
Run MongoDB tests (ubuntu-latest)
1 added, 0 removed; done.
|
Run MongoDB tests (ubuntu-latest)
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
|
Run MongoDB tests (ubuntu-latest)
Updating certificates in /etc/ssl/certs...
|
Run MongoDB tests (ubuntu-latest)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
Run MongoDB tests (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
run-atlas-tests-permissions-c54dc0dae9d73559e166d83194df7811
|
140 Bytes |
sha256:566532b84fd3a71c6df31f1406c0b00498b38e442a83f086c61af3adc835bdf6
|
|
run-tests-permissions-29ed1933c1a067d193624927687dbda0
|
140 Bytes |
sha256:fd179a6c4e80ceacea33971c74d1f189dbace4a9d76d4daef5a507def782d97e
|
|
run-tests-permissions-5811f8281df2b7b99ff717a67a22d5bf
|
140 Bytes |
sha256:566532b84fd3a71c6df31f1406c0b00498b38e442a83f086c61af3adc835bdf6
|
|