Skip to content

Commit c1ba17a

Browse files
GODRIVER-3334 Include LangChainGo in AI/ML integration pipeline (#59)
1 parent 689a675 commit c1ba17a

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.evergreen/config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ tasks:
205205
- func: "setup remote atlas"
206206
- func: "execute tests"
207207

208+
- name: test-langchaingo-local
209+
tags: [local]
210+
commands:
211+
- func: "fetch repo"
212+
- func: "execute tests"
213+
208214
buildvariants:
209215
- name: test-llama-index-kvstore-rhel
210216
# TODO - Maintainer has pushed back on this.
@@ -317,3 +323,12 @@ buildvariants:
317323
- name: test-haystack-fulltext-local
318324
# TODO: INTPYTHON-465
319325
# - name: test-haystack-fulltext-remote
326+
327+
- name: test-langchaingo-ubuntu
328+
display_name: LangchainGo Ubuntu2204
329+
expansions:
330+
DIR: langchaingo-golang
331+
run_on:
332+
- ubuntu2204-small
333+
tasks:
334+
- name: test-langchaingo-local

.evergreen/fetch-repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ git clone ${CLONE_URL}
2121
if [ -d "patches" ]; then
2222
cd ${REPO_NAME}
2323
echo "Applying patches."
24-
git apply ../patches/*
24+
git apply ../patches/*
2525
fi

langchaingo-golang/config.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REPO_NAME=langchaingo
2+
CLONE_URL=" -b GODRIVER-3345 --single-branch https://github.com/prestonvasquez/langchaingo.git"

langchaingo-golang/run.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
GO_VERSION="go1.22"
6+
7+
cd vectorstores/mongovector
8+
9+
export PATH="$PATH:/opt/golang/$GO_VERSION/bin"
10+
export GOROOT="/opt/golang/$GO_VERSION"
11+
12+
go test -v -failfast -race -shuffle=on

0 commit comments

Comments
 (0)