Skip to content

Commit 5732422

Browse files
authored
INTPYTHON-640 Add retry for docarray tests (#80)
1 parent 4e6d4d5 commit 5732422

File tree

2 files changed

+25
-27
lines changed

2 files changed

+25
-27
lines changed

.evergreen/config.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,19 @@ tasks:
180180
- func: "setup remote atlas"
181181
- func: "execute tests"
182182

183-
# TODO https://jira.mongodb.org/browse/INTPYTHON-640
184-
# - name: test-docarray-local
185-
# tags: [local]
186-
# commands:
187-
# - func: "fetch repo"
188-
# - func: "setup local atlas"
189-
# - func: "execute tests"
190-
# TODO https://jira.mongodb.org/browse/INTPYTHON-640
191-
# - name: test-docarray-remote
192-
# tags: [remote]
193-
# commands:
194-
# - func: "fetch repo"
195-
# - func: "setup remote atlas"
196-
# - func: "execute tests"
183+
- name: test-docarray-local
184+
tags: [local]
185+
commands:
186+
- func: "fetch repo"
187+
- func: "setup local atlas"
188+
- func: "execute tests"
189+
190+
- name: test-docarray-remote
191+
tags: [remote]
192+
commands:
193+
- func: "fetch repo"
194+
- func: "setup remote atlas"
195+
- func: "execute tests"
197196

198197
- name: test-pymongo-voyageai-local
199198
tags: [local]
@@ -330,16 +329,15 @@ buildvariants:
330329
# - name: test-llama-index-remote
331330
# batchtime: 10080 # 1 week
332331

333-
# TODO https://jira.mongodb.org/browse/INTPYTHON-640
334-
# - name: test-docarray-rhel
335-
# display_name: DocArray RHEL
336-
# expansions:
337-
# DIR: docarray
338-
# run_on:
339-
# - rhel87-small
340-
# tasks:
341-
# - name: test-docarray-local
342-
# - name: test-docarray-remote
332+
- name: test-docarray-rhel
333+
display_name: DocArray RHEL
334+
expansions:
335+
DIR: docarray
336+
run_on:
337+
- rhel87-small
338+
tasks:
339+
- name: test-docarray-local
340+
- name: test-docarray-remote
343341

344342
- name: test-pymongo-voyageai-rhel
345343
display_name: PyMongo-VoyageAI RHEL

docarray/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ set +x
3030

3131
# Run tests. Sensitive variables in Evergreen come from Evergeen project: ai-ml-pipeline-testing/
3232
# shellcheck disable=SC2154
33-
MONGODB_URI="$MONGODB_URI" \
34-
MONGODB_DATABASE="docarray_test_db" \
35-
pytest -v tests/index/mongo_atlas
33+
export MONGODB_URI="$MONGODB_URI"
34+
export MONGODB_DATABASE="docarray_test_db"
35+
pytest -v tests/index/mongo_atlas || pytest --lf

0 commit comments

Comments
 (0)