Skip to content

INTPYTHON-715 add langgraph store mongodb to ai ml testing #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,20 @@ tasks:
- func: "setup remote atlas"
- func: "execute tests"

- name: test-langgraph-store-python-local
tags: [local]
commands:
- func: "fetch repo"
- func: "setup local atlas"
- func: "execute tests"

- name: test-langgraph-store-python-remote
tags: [remote]
commands:
- func: "fetch repo"
- func: "setup remote atlas"
- func: "execute tests"

- name: test-chatgpt-retrieval-plugin-local
tags: [local]
commands:
Expand Down Expand Up @@ -338,6 +352,18 @@ buildvariants:
- name: test-langgraph-python-remote
batchtime: 10080 # 1 week

- name: test-langgraph-store-python-rhel
display_name: Langgraph Store RHEL Python
tags: [python]
expansions:
DIR: langgraph-store-python
run_on:
- rhel87-small
tasks:
- name: test-langgraph-store-python-local
- name: test-langgraph-store-python-remote
batchtime: 10080 # 1 week

# TODO: INTPYTHON-668
# - name: test-chatgpt-retrieval-plugin-python-rhel
# display_name: ChatGPT Retrieval Plugin
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/setup-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case $DIR in
semantic-kernel-csharp)
MONGODB_URI=$SEMANTIC_KERNEL_MONGODB_URI
;;
langchain-python | langgraph-python)
langchain-python | langgraph-python | langgraph-store-python)
MONGODB_URI=$LANGCHAIN_MONGODB_URI
;;
chatgpt-retrieval-plugin)
Expand Down
3 changes: 3 additions & 0 deletions langgraph-store-python/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REPO_NAME=langchain-mongodb
REPO_ORG=langchain-ai
DATABASE=langgraph-store-test
27 changes: 27 additions & 0 deletions langgraph-store-python/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# WORKING_DIR = src/langchain-python/langchain
set -eu

# Get the MONGODB_URI and OPENAI_API_KEY.
SCRIPT_DIR=$(realpath "$(dirname ${BASH_SOURCE[0]})")
ROOT_DIR=$(dirname $SCRIPT_DIR)
. $ROOT_DIR/env.sh

. $ROOT_DIR/.evergreen/utils.sh

PYTHON_BINARY=$(find_python3)

# shellcheck disable=SC2164
cd libs/langgraph-store-mongodb

$PYTHON_BINARY -m venv venv_pipeline
source venv_pipeline/bin/activate

pip install uv rust-just

just install

just unit_tests

just integration_tests