Skip to content

Commit 05e74d4

Browse files
authored
Merge pull request #51 from blink1073/INTPYTHON-427
INTPYTHON-427 Add langgraph to ai-ml-testing pipeline
2 parents e94c697 + c2c4525 commit 05e74d4

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

.evergreen/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,20 @@ tasks:
133133
- func: "setup remote atlas"
134134
- func: "execute tests"
135135

136+
- name: test-langgraph-python-local
137+
tags: [local]
138+
commands:
139+
- func: "fetch repo"
140+
- func: "setup local atlas"
141+
- func: "execute tests"
142+
143+
- name: test-langgraph-python-remote
144+
tags: [remote]
145+
commands:
146+
- func: "fetch repo"
147+
- func: "setup remote atlas"
148+
- func: "execute tests"
149+
136150
- name: test-chatgpt-retrieval-plugin-local
137151
tags: [local]
138152
commands:
@@ -234,6 +248,20 @@ buildvariants:
234248
- name: test-langchain-python-remote
235249
batchtime: 10080 # 1 week
236250

251+
- name: test-langgraph-python-rhel
252+
display_name: Langgraph RHEL Python
253+
expansions:
254+
DIR: langgraph-python
255+
REPO_NAME: langchain-mongodb
256+
CLONE_URL: https://github.com/langchain-ai/langchain-mongodb.git
257+
DATABASE: langgraph-test
258+
run_on:
259+
- rhel87-small
260+
tasks:
261+
- name: test-langgraph-python-local
262+
- name: test-langgraph-python-remote
263+
batchtime: 10080 # 1 week
264+
237265
- name: test-chatgpt-retrieval-plugin-rhel
238266
display_name: ChatGPT Retrieval Plugin
239267
expansions:

.evergreen/setup-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ case $DIR in
1919
semantic-kernel-csharp)
2020
MONGODB_URI=$SEMANTIC_KERNEL_MONGODB_URI
2121
;;
22-
langchain-python)
22+
langchain-python | langgraph-python)
2323
MONGODB_URI=$LANGCHAIN_MONGODB_URI
2424
;;
2525
chatgpt-retrieval-plugin)

langchain-python/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ poetry lock --no-update
2424

2525
poetry install --with dev
2626

27-
export MONGODB_ATLAS_URI=$MONGODB_URI
27+
export MONGODB_URI=$MONGODB_URI
2828
export OPENAI_API_KEY=$OPENAI_API_KEY
2929

3030
make test

langgraph-python/run.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
# shellcheck disable=SC2154
8+
. $workdir/src/env.sh
9+
10+
# shellcheck disable=SC2154
11+
. $workdir/src/.evergreen/utils.sh
12+
13+
PYTHON_BINARY=$(find_python3)
14+
15+
# shellcheck disable=SC2164
16+
cd libs/langgraph-checkpoint-mongodb
17+
18+
$PYTHON_BINARY -m venv venv_pipeline
19+
source venv_pipeline/bin/activate
20+
21+
pip install poetry
22+
23+
poetry lock --no-update
24+
25+
poetry install --with dev
26+
27+
export MONGODB_URI=$MONGODB_URI
28+
export OPENAI_API_KEY=$OPENAI_API_KEY
29+
30+
make test
31+
32+
make integration_test

0 commit comments

Comments
 (0)