Skip to content

Commit 6397a34

Browse files
authored
Merge branch 'main' into PYTHON-5389
2 parents bc1f49e + d05e7f1 commit 6397a34

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

.evergreen/config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,20 @@ tasks:
275275
params:
276276
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
277277

278+
- name: test-mem0-python-local
279+
tags: [ local ]
280+
commands:
281+
- func: "fetch repo"
282+
- func: "setup local atlas"
283+
- func: "execute tests"
284+
285+
- name: test-mem0-python-remote
286+
tags: [ remote ]
287+
commands:
288+
- func: "fetch repo"
289+
- func: "setup remote atlas"
290+
- func: "execute tests"
291+
278292
buildvariants:
279293
- name: test-semantic-kernel-python-rhel
280294
display_name: Semantic-Kernel RHEL Python
@@ -429,3 +443,14 @@ buildvariants:
429443
# tasks:
430444
# - name: test-langchain-js-local
431445
# - name: test-langchain-js-remote
446+
447+
- name: test-mem0-python-rhel
448+
display_name: mem0 RHEL Python
449+
expansions:
450+
DIR: mem0-python
451+
run_on:
452+
- rhel87-small
453+
tasks:
454+
- name: test-mem0-python-local
455+
- name: test-mem0-python-remote
456+
batchtime: 10080 # 1 week

.evergreen/setup-remote.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ case $DIR in
4747
langchain-js)
4848
MONGODB_URI=$LANGCHAIN_MONGODB_URI
4949
;;
50+
mem0-python)
51+
MONGODB_URI=$MEM0_URI
52+
;;
5053
*)
5154
echo "Missing config in setup-remote.sh for DIR: $DIR"
5255
exit 1

mem0-python/config.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REPO_NAME=mem0
2+
REPO_ORG=mem0ai
3+
DATABASE=mem0_test_db

mem0-python/run.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 hatch
18+
make install_all
19+
20+
# Run tests.
21+
export MONGODB_URI=$MONGODB_URI
22+
pip install pytest
23+
pip install .
24+
pytest tests/vector_stores/test_mongodb.py

0 commit comments

Comments
 (0)