Skip to content

Commit 6cd7f65

Browse files
authored
Merge branch 'main' into switch-sk-repo-for-testing
2 parents c7988a6 + bda0355 commit 6cd7f65

File tree

12 files changed

+199
-37
lines changed

12 files changed

+199
-37
lines changed

.evergreen/config.yml

Lines changed: 91 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,18 @@ tasks:
119119
- func: "setup remote atlas"
120120
- func: "execute tests"
121121

122-
- name: test-semantic-kernel-csharp
122+
- name: test-semantic-kernel-csharp-local
123123
tags: [local]
124124
commands:
125125
- func: "fetch repo"
126+
- func: "setup local atlas"
127+
- func: "execute tests"
128+
129+
- name: test-semantic-kernel-csharp-remote
130+
tags: [remote]
131+
commands:
132+
- func: "fetch repo"
133+
- func: "setup remote atlas"
126134
- func: "execute tests"
127135

128136
- name: test-langchain-python-local
@@ -153,6 +161,20 @@ tasks:
153161
- func: "setup remote atlas"
154162
- func: "execute tests"
155163

164+
- name: test-langgraph-store-python-local
165+
tags: [local]
166+
commands:
167+
- func: "fetch repo"
168+
- func: "setup local atlas"
169+
- func: "execute tests"
170+
171+
- name: test-langgraph-store-python-remote
172+
tags: [remote]
173+
commands:
174+
- func: "fetch repo"
175+
- func: "setup remote atlas"
176+
- func: "execute tests"
177+
156178
- name: test-chatgpt-retrieval-plugin-local
157179
tags: [local]
158180
commands:
@@ -265,6 +287,12 @@ tasks:
265287
params:
266288
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
267289

290+
- name: test-n8n-js-local
291+
tags: [local]
292+
commands:
293+
- func: "fetch repo"
294+
- func: "execute tests"
295+
268296
- name: test-langchain-js-remote
269297
tags: [remote]
270298
commands:
@@ -289,6 +317,20 @@ tasks:
289317
- func: "setup remote atlas"
290318
- func: "execute tests"
291319

320+
- name: test-pymongo-vectorsearch-utils-local
321+
tags: [local]
322+
commands:
323+
- func: "fetch repo"
324+
- func: "setup local atlas"
325+
- func: "execute tests"
326+
327+
- name: test-pymongo-vectorsearch-utils-remote
328+
tags: [remote]
329+
commands:
330+
- func: "fetch repo"
331+
- func: "setup remote atlas"
332+
- func: "execute tests"
333+
292334
buildvariants:
293335
- name: test-semantic-kernel-python-rhel
294336
display_name: Semantic-Kernel RHEL Python
@@ -311,8 +353,9 @@ buildvariants:
311353
run_on:
312354
- rhel87-small
313355
tasks:
314-
- name: test-semantic-kernel-csharp
315-
batchtime: 10080 # 1 week
356+
- name: test-semantic-kernel-csharp-local
357+
# - name: test-semantic-kernel-csharp-remote
358+
# batchtime: 10080 # 1 week
316359

317360
- name: test-langchain-python-rhel
318361
display_name: Langchain RHEL Python
@@ -338,6 +381,18 @@ buildvariants:
338381
- name: test-langgraph-python-remote
339382
batchtime: 10080 # 1 week
340383

384+
- name: test-langgraph-store-python-rhel
385+
display_name: Langgraph Store RHEL Python
386+
tags: [python]
387+
expansions:
388+
DIR: langgraph-store-python
389+
run_on:
390+
- rhel87-small
391+
tasks:
392+
- name: test-langgraph-store-python-local
393+
- name: test-langgraph-store-python-remote
394+
batchtime: 10080 # 1 week
395+
341396
# TODO: INTPYTHON-668
342397
# - name: test-chatgpt-retrieval-plugin-python-rhel
343398
# display_name: ChatGPT Retrieval Plugin
@@ -351,19 +406,18 @@ buildvariants:
351406
# - name: test-chatgpt-retrieval-plugin-remote
352407
# batchtime: 10080 # 1 week
353408

354-
# TODO: INTPYTHON-669
355-
# - name: test-llama-index-vectorstore-python-rhel
356-
# display_name: LlamaIndex RHEL Vector Store
357-
# tags: [python]
358-
# expansions:
359-
# DIR: llama-index-python-vectorstore
360-
# run_on:
361-
# - rhel87-small
362-
# tasks:
363-
# - name: test-llama-index-local
364-
# # TODO: INTPYTHON-440
365-
# # - name: test-llama-index-remote
366-
# # batchtime: 10080 # 1 week
409+
- name: test-llama-index-vectorstore-python-rhel
410+
display_name: LlamaIndex RHEL Vector Store
411+
tags: [python]
412+
expansions:
413+
DIR: llama-index-python-vectorstore
414+
run_on:
415+
- rhel87-small
416+
tasks:
417+
- name: test-llama-index-local
418+
# TODO: INTPYTHON-440
419+
# - name: test-llama-index-remote
420+
# batchtime: 10080 # 1 week
367421

368422
- name: test-docarray-python-rhel
369423
display_name: DocArray RHEL
@@ -443,6 +497,16 @@ buildvariants:
443497
- name: test-langchain-js-local
444498
- name: test-langchain-js-remote
445499

500+
- name: test-n8n-javascript-ubuntu
501+
display_name: n8n Ubuntu2204
502+
tags: [javascript]
503+
expansions:
504+
DIR: n8n-js
505+
run_on:
506+
- ubuntu2204-small
507+
tasks:
508+
- name: test-n8n-js-local
509+
446510
- name: test-mem0-python-rhel
447511
display_name: mem0 RHEL Python
448512
tags: [python]
@@ -454,3 +518,14 @@ buildvariants:
454518
- name: test-mem0-python-local
455519
- name: test-mem0-python-remote
456520
batchtime: 10080 # 1 week
521+
522+
- name: test-pymongo-vectorsearch-utils-python-rhel
523+
display_name: PyMongo Vectorsearch Utils RHEL
524+
tags: [python]
525+
expansions:
526+
DIR: pymongo-vectorsearch-utils
527+
run_on:
528+
- rhel87-small
529+
tasks:
530+
- name: test-pymongo-vectorsearch-utils-local
531+
- name: test-pymongo-vectorsearch-utils-remote

.evergreen/setup-remote.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ case $DIR in
2323
semantic-kernel-csharp)
2424
MONGODB_URI=$SEMANTIC_KERNEL_MONGODB_URI
2525
;;
26-
langchain-python | langgraph-python)
26+
langchain-python | langgraph-python | langgraph-store-python)
2727
MONGODB_URI=$LANGCHAIN_MONGODB_URI
2828
;;
2929
chatgpt-retrieval-plugin)
@@ -50,6 +50,9 @@ case $DIR in
5050
mem0-python)
5151
MONGODB_URI=$MEM0_URI
5252
;;
53+
pymongo-vectorsearch-utils)
54+
MONGODB_URI=$PYMONGO_VECTORSEARCH_UTILS_URI
55+
;;
5356
*)
5457
echo "Missing config in setup-remote.sh for DIR: $DIR"
5558
exit 1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ env.sh
6161
haystack-fulltext/haystack-core-integrations
6262
haystack-embeddings/haystack-core-integrations
6363
pymongo-voyageai/pymongo-voyageai
64+
llama-index-python-vectorstore/llama_index/

langgraph-store-python/config.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REPO_NAME=langchain-mongodb
2+
REPO_ORG=langchain-ai
3+
DATABASE=langgraph-store-test

langgraph-store-python/run.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# WORKING_DIR = src/langchain-python/langchain
4+
set -eu
5+
6+
# Get the MONGODB_URI and OPENAI_API_KEY.
7+
SCRIPT_DIR=$(realpath "$(dirname ${BASH_SOURCE[0]})")
8+
ROOT_DIR=$(dirname $SCRIPT_DIR)
9+
. $ROOT_DIR/env.sh
10+
11+
. $ROOT_DIR/.evergreen/utils.sh
12+
13+
PYTHON_BINARY=$(find_python3)
14+
15+
# shellcheck disable=SC2164
16+
cd libs/langgraph-store-mongodb
17+
18+
$PYTHON_BINARY -m venv venv_pipeline
19+
source venv_pipeline/bin/activate
20+
21+
pip install uv rust-just
22+
23+
just install
24+
25+
just unit_tests
26+
27+
just integration_tests

llama-index-python-vectorstore/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
# Get the MONGODB_URI and OPENAI_API_KEY.
5+
# Get the MONGODB_URI and AZURE_OPENAI_API_KEY.
66
SCRIPT_DIR=$(realpath "$(dirname ${BASH_SOURCE[0]})")
77
ROOT_DIR=$(dirname $SCRIPT_DIR)
88
. $ROOT_DIR/env.sh
@@ -24,8 +24,6 @@ pip install uv
2424

2525
# Run tests.
2626
UV_PYTHON=$PYTHON_BINARY \
27-
MONGODB_URI="$MONGODB_URI" \
28-
OPENAI_API_KEY="$OPENAI_API_KEY" \
2927
MONGODB_DATABASE="llama_index_test_db" \
3028
MONGODB_COLLECTION="llama_index_test_vectorstore" \
3129
MONGODB_INDEX="vector_index" \

n8n-js/config.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REPO_NAME=n8n
2+
REPO_ORG=n8n-io

n8n-js/run.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#! /bin/bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
mkdir npm_global_dir
7+
WORKING_DIR=$(pwd)
8+
export NPM_CONFIG_PREFIX=$WORKING_DIR/npm_global_dir
9+
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
10+
11+
npm i -g pnpm
12+
13+
# use node20
14+
export PATH="/opt/devtools/node22/bin:/opt/dev/tools/bin:$PATH"
15+
16+
pnpm --version
17+
18+
pnpm install
19+
pnpm build
20+
21+
# first, run the crud node tests
22+
cd packages/nodes-base/nodes/MongoDb
23+
pnpm test "$(pwd)"
24+
cd -
25+
26+
# then, run the vector store tests
27+
cd packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreMongoDBAtlas/
28+
pnpm test "$(pwd)"
29+
cd -
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REPO_NAME=pymongo-vectorsearch-utils
2+
REPO_ORG=mongodb-labs
3+
DATABASE="pymongo_vectorsearch_utils_test_db"

pymongo-vectorsearch-utils/run.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
# Get the MONGODB_URI.
6+
SCRIPT_DIR=$(realpath "$(dirname ${BASH_SOURCE[0]})")
7+
ROOT_DIR=$(dirname $SCRIPT_DIR)
8+
. $ROOT_DIR/env.sh
9+
10+
. $ROOT_DIR/.evergreen/utils.sh
11+
12+
PYTHON_BINARY=$(find_python3)
13+
14+
$PYTHON_BINARY -m venv venv_pipeline
15+
source venv_pipeline/bin/activate
16+
17+
pip install uv rust-just
18+
19+
just install
20+
21+
export MONGODB_URI=$MONGODB_URI
22+
23+
just test

0 commit comments

Comments
 (0)