diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 4f6208c..363026a 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -205,6 +205,12 @@ tasks: - func: "setup remote atlas" - func: "execute tests" + - name: test-langchaingo-local + tags: [local] + commands: + - func: "fetch repo" + - func: "execute tests" + buildvariants: - name: test-llama-index-kvstore-rhel # TODO - Maintainer has pushed back on this. @@ -317,3 +323,12 @@ buildvariants: - name: test-haystack-fulltext-local # TODO: INTPYTHON-465 # - name: test-haystack-fulltext-remote + + - name: test-langchaingo-ubuntu + display_name: LangchainGo Ubuntu2204 + expansions: + DIR: langchaingo-golang + run_on: + - ubuntu2204-small + tasks: + - name: test-langchaingo-local diff --git a/.evergreen/fetch-repo.sh b/.evergreen/fetch-repo.sh index dc79878..ad9621a 100644 --- a/.evergreen/fetch-repo.sh +++ b/.evergreen/fetch-repo.sh @@ -21,5 +21,5 @@ git clone ${CLONE_URL} if [ -d "patches" ]; then cd ${REPO_NAME} echo "Applying patches." - git apply ../patches/* + git apply ../patches/* fi diff --git a/langchaingo-golang/config.env b/langchaingo-golang/config.env new file mode 100644 index 0000000..51fc29a --- /dev/null +++ b/langchaingo-golang/config.env @@ -0,0 +1,2 @@ +REPO_NAME=langchaingo +CLONE_URL=" -b GODRIVER-3345 --single-branch https://github.com/prestonvasquez/langchaingo.git" diff --git a/langchaingo-golang/run.sh b/langchaingo-golang/run.sh new file mode 100644 index 0000000..0f149c5 --- /dev/null +++ b/langchaingo-golang/run.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -eu + +GO_VERSION="go1.22" + +cd vectorstores/mongovector + +export PATH="$PATH:/opt/golang/$GO_VERSION/bin" +export GOROOT="/opt/golang/$GO_VERSION" + +go test -v -failfast -race -shuffle=on