Skip to content
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
25 changes: 25 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,20 @@ tasks:
- func: "setup remote atlas"
- func: "execute tests"

- name: test-pymongo-vectorsearch-utils-local
tags: [local]
commands:
- func: "fetch repo"
- func: "setup local atlas"
- func: "execute tests"

- name: test-pymongo-vectorsearch-utils-remote
tags: [remote]
commands:
- func: "fetch repo"
- func: "setup remote atlas"
- func: "execute tests"

buildvariants:
- name: test-semantic-kernel-python-rhel
display_name: Semantic-Kernel RHEL Python
Expand Down Expand Up @@ -504,3 +518,14 @@ buildvariants:
- name: test-mem0-python-local
- name: test-mem0-python-remote
batchtime: 10080 # 1 week

- name: test-pymongo-vectorsearch-utils-python-rhel
display_name: PyMongo Vectorsearch Utils RHEL
tags: [python]
expansions:
DIR: pymongo-vectorsearch-utils
run_on:
- rhel87-small
tasks:
- name: test-pymongo-vectorsearch-utils-local
- name: test-pymongo-vectorsearch-utils-remote
3 changes: 3 additions & 0 deletions .evergreen/setup-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ case $DIR in
mem0-python)
MONGODB_URI=$MEM0_URI
;;
pymongo-vectorsearch-utils)
MONGODB_URI=$PYMONGO_VECTORSEARCH_UTILS_URI
;;
*)
echo "Missing config in setup-remote.sh for DIR: $DIR"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions pymongo-vectorsearch-utils/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REPO_NAME=pymongo-vectorsearch-utils
REPO_ORG=mongodb-labs
DATABASE="pymongo_vectorsearch_utils_test_db"
23 changes: 23 additions & 0 deletions pymongo-vectorsearch-utils/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -eu

# Get the MONGODB_URI.
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)

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

pip install uv rust-just

just install

export MONGODB_URI=$MONGODB_URI

just test