Skip to content

INTPYTHON-640 Add retry for docarray tests #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025
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
46 changes: 22 additions & 24 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,19 @@ tasks:
- func: "setup remote atlas"
- func: "execute tests"

# TODO https://jira.mongodb.org/browse/INTPYTHON-640
# - name: test-docarray-local
# tags: [local]
# commands:
# - func: "fetch repo"
# - func: "setup local atlas"
# - func: "execute tests"
# TODO https://jira.mongodb.org/browse/INTPYTHON-640
# - name: test-docarray-remote
# tags: [remote]
# commands:
# - func: "fetch repo"
# - func: "setup remote atlas"
# - func: "execute tests"
- name: test-docarray-local
tags: [local]
commands:
- func: "fetch repo"
- func: "setup local atlas"
- func: "execute tests"

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

- name: test-pymongo-voyageai-local
tags: [local]
Expand Down Expand Up @@ -330,16 +329,15 @@ buildvariants:
# - name: test-llama-index-remote
# batchtime: 10080 # 1 week

# TODO https://jira.mongodb.org/browse/INTPYTHON-640
# - name: test-docarray-rhel
# display_name: DocArray RHEL
# expansions:
# DIR: docarray
# run_on:
# - rhel87-small
# tasks:
# - name: test-docarray-local
# - name: test-docarray-remote
- name: test-docarray-rhel
display_name: DocArray RHEL
expansions:
DIR: docarray
run_on:
- rhel87-small
tasks:
- name: test-docarray-local
- name: test-docarray-remote

- name: test-pymongo-voyageai-rhel
display_name: PyMongo-VoyageAI RHEL
Expand Down
6 changes: 3 additions & 3 deletions docarray/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ set +x

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very convenient way to run flaky tests. A little broad, but doesn't introduce any dependency. In the docarray case, I'm totally cool with this.