Skip to content

fix: tweak the arg shapes to improve tool accuracy #1278

fix: tweak the arg shapes to improve tool accuracy

fix: tweak the arg shapes to improve tool accuracy #1278

Triggered via pull request July 17, 2025 18:13
Status Failure
Total duration 7m 50s
Artifacts 3

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 25s
Run Atlas tests
Report Coverage
28s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 19 warnings, and 2 notices
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 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 (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 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-17 18:13:24.475 sysadminctl[849:4923] Creating home directory at /Users/mitmproxyuser
Run MongoDB tests (macos-latest)
2025-07-17 18:13:24.419 sysadminctl[849:4923] Assigning UID: 502 GID: 20
Run MongoDB tests (macos-latest)
2025-07-17 18:13:24.304 sysadminctl[849:4923] Creating user record…
Run MongoDB tests (macos-latest)
IOServiceMatchingfailed for: AppleM2ScalerCSCDriver
Run MongoDB tests (macos-latest)
2025-07-17 18:13:23.843 sysadminctl[849:4923] ---------------------------- 2025-07-17 18:13:23.843 sysadminctl[849:4923] No clear text password or interactive option was specified (adduser, change/reset password will not allow user to use FDE) ! 2025-07-17 18:13:23.843 sysadminctl[849:4923] ----------------------------
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 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)
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-a8132e610a3c0a4640e4eec683b1b0b1
140 Bytes
sha256:4c24782b14afdf05b8c2792c0f51371736960d1eef57d77236440fd2774acb14
run-tests-permissions-18b779fced7d7cd9950af16822c6be46
140 Bytes
sha256:3266f468315b2cabb944d628d335a74895efe62bb861f1a9fed5c1b2b33f62d0
run-tests-permissions-d6bff4d3f34914e8ff78197d2fc878d5
140 Bytes
sha256:aab5cde8da532771524ca09434368e06fe4b285a79bfedbf6bacd8308b047a42