diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 8e49030..e2e2949 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -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: @@ -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 diff --git a/.evergreen/setup-remote.sh b/.evergreen/setup-remote.sh index c5c1e1c..e0252e2 100644 --- a/.evergreen/setup-remote.sh +++ b/.evergreen/setup-remote.sh @@ -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) diff --git a/langgraph-store-python/config.env b/langgraph-store-python/config.env new file mode 100644 index 0000000..d58df90 --- /dev/null +++ b/langgraph-store-python/config.env @@ -0,0 +1,3 @@ +REPO_NAME=langchain-mongodb +REPO_ORG=langchain-ai +DATABASE=langgraph-store-test diff --git a/langgraph-store-python/run.sh b/langgraph-store-python/run.sh new file mode 100644 index 0000000..11b5338 --- /dev/null +++ b/langgraph-store-python/run.sh @@ -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