Skip to content

Commit b5b6348

Browse files
INTPYTHON-715 Adds langgraph-store-mongodb to ai ml testing (#93)
1 parent d50090a commit b5b6348

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

.evergreen/config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,20 @@ tasks:
153153
- func: "setup remote atlas"
154154
- func: "execute tests"
155155

156+
- name: test-langgraph-store-python-local
157+
tags: [local]
158+
commands:
159+
- func: "fetch repo"
160+
- func: "setup local atlas"
161+
- func: "execute tests"
162+
163+
- name: test-langgraph-store-python-remote
164+
tags: [remote]
165+
commands:
166+
- func: "fetch repo"
167+
- func: "setup remote atlas"
168+
- func: "execute tests"
169+
156170
- name: test-chatgpt-retrieval-plugin-local
157171
tags: [local]
158172
commands:
@@ -338,6 +352,18 @@ buildvariants:
338352
- name: test-langgraph-python-remote
339353
batchtime: 10080 # 1 week
340354

355+
- name: test-langgraph-store-python-rhel
356+
display_name: Langgraph Store RHEL Python
357+
tags: [python]
358+
expansions:
359+
DIR: langgraph-store-python
360+
run_on:
361+
- rhel87-small
362+
tasks:
363+
- name: test-langgraph-store-python-local
364+
- name: test-langgraph-store-python-remote
365+
batchtime: 10080 # 1 week
366+
341367
# TODO: INTPYTHON-668
342368
# - name: test-chatgpt-retrieval-plugin-python-rhel
343369
# display_name: ChatGPT Retrieval Plugin

.evergreen/setup-remote.sh

Lines changed: 1 addition & 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)

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

0 commit comments

Comments
 (0)