Skip to content

Commit bda0355

Browse files
authored
INTPYTHON-598 - Add pymongo-vectorsearch-utils (#98)
1 parent d079ab8 commit bda0355

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

.evergreen/config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,20 @@ tasks:
317317
- func: "setup remote atlas"
318318
- func: "execute tests"
319319

320+
- name: test-pymongo-vectorsearch-utils-local
321+
tags: [local]
322+
commands:
323+
- func: "fetch repo"
324+
- func: "setup local atlas"
325+
- func: "execute tests"
326+
327+
- name: test-pymongo-vectorsearch-utils-remote
328+
tags: [remote]
329+
commands:
330+
- func: "fetch repo"
331+
- func: "setup remote atlas"
332+
- func: "execute tests"
333+
320334
buildvariants:
321335
- name: test-semantic-kernel-python-rhel
322336
display_name: Semantic-Kernel RHEL Python
@@ -504,3 +518,14 @@ buildvariants:
504518
- name: test-mem0-python-local
505519
- name: test-mem0-python-remote
506520
batchtime: 10080 # 1 week
521+
522+
- name: test-pymongo-vectorsearch-utils-python-rhel
523+
display_name: PyMongo Vectorsearch Utils RHEL
524+
tags: [python]
525+
expansions:
526+
DIR: pymongo-vectorsearch-utils
527+
run_on:
528+
- rhel87-small
529+
tasks:
530+
- name: test-pymongo-vectorsearch-utils-local
531+
- name: test-pymongo-vectorsearch-utils-remote

.evergreen/setup-remote.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ case $DIR in
5050
mem0-python)
5151
MONGODB_URI=$MEM0_URI
5252
;;
53+
pymongo-vectorsearch-utils)
54+
MONGODB_URI=$PYMONGO_VECTORSEARCH_UTILS_URI
55+
;;
5356
*)
5457
echo "Missing config in setup-remote.sh for DIR: $DIR"
5558
exit 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REPO_NAME=pymongo-vectorsearch-utils
2+
REPO_ORG=mongodb-labs
3+
DATABASE="pymongo_vectorsearch_utils_test_db"

pymongo-vectorsearch-utils/run.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
# Get the MONGODB_URI.
6+
SCRIPT_DIR=$(realpath "$(dirname ${BASH_SOURCE[0]})")
7+
ROOT_DIR=$(dirname $SCRIPT_DIR)
8+
. $ROOT_DIR/env.sh
9+
10+
. $ROOT_DIR/.evergreen/utils.sh
11+
12+
PYTHON_BINARY=$(find_python3)
13+
14+
$PYTHON_BINARY -m venv venv_pipeline
15+
source venv_pipeline/bin/activate
16+
17+
pip install uv rust-just
18+
19+
just install
20+
21+
export MONGODB_URI=$MONGODB_URI
22+
23+
just test

0 commit comments

Comments
 (0)