fix: don't extract fields from lexical search indexes #571
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Report Coverage
38s
Annotations
7 errors and 10 warnings
|
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
|
|
tests/integration/tools/mongodb/read/aggregate.test.ts > aggregate tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(3) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
@@ -1,23 +1,23 @@
- 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": "An array of aggregation stages to execute.
+ "description": "An array of aggregation stages to execute.
`$vectorSearch` **MUST** be the first stage of the pipeline, or the first stage of a `$unionWith` subpipeline.
### Usage Rules for `$vectorSearch`
- - **Unset embeddings:**
+ - **Unset embeddings:**
Unless the user explicitly requests the embeddings, add an `$unset` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**.
- **Pre-filtering:**
If the user requests additional filtering, include filters in `$vectorSearch.filter` only for pre-filter fields in the vector index.
NEVER include fields in $vectorSearch.filter that are not part of the vector index.
- **Post-filtering:**
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:307:32
|
|
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
|
|
tests/integration/tools/mongodb/read/aggregate.test.ts > aggregate tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(3) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
@@ -1,23 +1,23 @@
- 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": "An array of aggregation stages to execute.
+ "description": "An array of aggregation stages to execute.
`$vectorSearch` **MUST** be the first stage of the pipeline, or the first stage of a `$unionWith` subpipeline.
### Usage Rules for `$vectorSearch`
- - **Unset embeddings:**
+ - **Unset embeddings:**
Unless the user explicitly requests the embeddings, add an `$unset` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**.
- **Pre-filtering:**
If the user requests additional filtering, include filters in `$vectorSearch.filter` only for pre-filter fields in the vector index.
NEVER include fields in $vectorSearch.filter that are not part of the vector index.
- **Post-filtering:**
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:307:32
|
|
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
|
|
tests/integration/tools/mongodb/read/aggregate.test.ts > aggregate tool > should have correct metadata:
tests/matchers/toIncludeSameMembers.ts#L4
AssertionError: expected [ { name: 'collection', …(3) }, …(3) ] to deeply equal ArrayContaining{…}
- Expected
+ Received
@@ -1,23 +1,23 @@
- 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": "An array of aggregation stages to execute.
+ "description": "An array of aggregation stages to execute.
`$vectorSearch` **MUST** be the first stage of the pipeline, or the first stage of a `$unionWith` subpipeline.
### Usage Rules for `$vectorSearch`
- - **Unset embeddings:**
+ - **Unset embeddings:**
Unless the user explicitly requests the embeddings, add an `$unset` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**.
- **Pre-filtering:**
If the user requests additional filtering, include filters in `$vectorSearch.filter` only for pre-filter fields in the vector index.
NEVER include fields in $vectorSearch.filter that are not part of the vector index.
- **Post-filtering:**
❯ Object.toIncludeSameMembers tests/matchers/toIncludeSameMembers.ts:4:20
❯ tests/integration/helpers.ts:307: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
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 Local tests
1 added, 0 removed; done.
|
|
Run Atlas Local tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
|
|
Run Atlas Local tests
Updating certificates in /etc/ssl/certs...
|
|
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...
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
atlas-local-test-results
|
18 KB |
sha256:c67471707fa136af1e4b0e6c88c08ec173fec2aac4707664902316f1ad546215
|
|
|
atlas-test-results
|
19.7 KB |
sha256:58a02bc5874d7343b213a82c6f94de1f28ffea13361cb91428b22099eb8638ec
|
|
|
run-atlas-local-tests-permissions-6e0ea480cce7a738bf0e9cea08841599
|
140 Bytes |
sha256:d7feae5fd37604eb5493fc716203bec3a45a42e287b8c559564d0777deacf59b
|
|
|
run-atlas-tests-permissions-3568a01cb92fb23a48328b0490a2e390
|
140 Bytes |
sha256:011911012b725046819ac615307da11febcc310ae69a7ee96e9dbf502976fcac
|
|
|
run-tests-permissions-c8935686c3486b427cce266bd1b0a129
|
140 Bytes |
sha256:a96771d57102ee3a8039d9d75ac0871ac268db3f5f80c949186d36733db2cbd8
|
|