Skip to content
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

INTPYTHON-427 Add langgraph to ai-ml-testing pipeline #51

Merged
merged 3 commits into from
Dec 10, 2024
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
28 changes: 28 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ tasks:
- func: "setup remote atlas"
- func: "execute tests"

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

- name: test-langgraph-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 @@ -234,6 +248,20 @@ buildvariants:
- name: test-langchain-python-remote
batchtime: 10080 # 1 week

- name: test-langgraph-python-rhel
display_name: Langgraph RHEL Python
expansions:
DIR: langgraph-python
REPO_NAME: langchain-mongodb
CLONE_URL: https://github.com/langchain-ai/langchain-mongodb.git
DATABASE: langgraph-test
run_on:
- rhel87-small
tasks:
- name: test-langgraph-python-local
- name: test-langgraph-python-remote
batchtime: 10080 # 1 week

- name: test-chatgpt-retrieval-plugin-rhel
display_name: ChatGPT Retrieval Plugin
expansions:
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/setup-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ case $DIR in
semantic-kernel-csharp)
MONGODB_URI=$SEMANTIC_KERNEL_MONGODB_URI
;;
langchain-python)
langchain-python | langgraph-python)
MONGODB_URI=$LANGCHAIN_MONGODB_URI
;;
chatgpt-retrieval-plugin)
Expand Down
2 changes: 1 addition & 1 deletion langchain-python/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ poetry lock --no-update

poetry install --with dev

export MONGODB_ATLAS_URI=$MONGODB_URI
export MONGODB_URI=$MONGODB_URI
export OPENAI_API_KEY=$OPENAI_API_KEY

make test
Expand Down
32 changes: 32 additions & 0 deletions langgraph-python/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

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

# Get the MONGODB_URI and OPENAI_API_KEY.
# shellcheck disable=SC2154
. $workdir/src/env.sh

# shellcheck disable=SC2154
. $workdir/src/.evergreen/utils.sh

PYTHON_BINARY=$(find_python3)

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

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

pip install poetry

poetry lock --no-update

poetry install --with dev

export MONGODB_URI=$MONGODB_URI
export OPENAI_API_KEY=$OPENAI_API_KEY

make test

make integration_test
Loading