From 128197a196030a7e69586d476aade49cb085f13d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 3 Jun 2026 11:21:17 -0500 Subject: [PATCH 1/2] PYTHON-5851 Run setup-uv-python.sh before install-dependencies.sh --- .evergreen/scripts/setup-dev-env.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.evergreen/scripts/setup-dev-env.sh b/.evergreen/scripts/setup-dev-env.sh index fa5f86d798..0b738e4a67 100755 --- a/.evergreen/scripts/setup-dev-env.sh +++ b/.evergreen/scripts/setup-dev-env.sh @@ -16,12 +16,12 @@ if [ -f $HERE/test-env.sh ]; then . $HERE/test-env.sh fi -# Ensure dependencies are installed. -bash $HERE/install-dependencies.sh - # Handle the value for UV_PYTHON. . $HERE/setup-uv-python.sh +# Ensure dependencies are installed. +bash $HERE/install-dependencies.sh + # Only run the next part if not running on CI. if [ -z "${CI:-}" ]; then # Add the default install path to the path if needed. From 8b222628ef5143eac2f3e12085288d7c23aacac4 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 3 Jun 2026 16:23:08 -0500 Subject: [PATCH 2/2] PYTHON-5852 Fix inverted polling condition in TestSearchIndexProse test_case_3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The loop that waits for index deletion used `if indices: break`, which exits when the list is non-empty — the opposite of what the comment describes. Change to `if not indices: break` so the loop correctly exits once listSearchIndexes returns an empty array. --- test/asynchronous/test_index_management.py | 2 +- test/test_index_management.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/asynchronous/test_index_management.py b/test/asynchronous/test_index_management.py index ac096ec099..591278414a 100644 --- a/test/asynchronous/test_index_management.py +++ b/test/asynchronous/test_index_management.py @@ -223,7 +223,7 @@ async def test_case_3(self): t0 = time.time() while True: indices = await (await coll0.list_search_indexes()).to_list() - if indices: + if not indices: break if (time.time() - t0) / 60 > 5: raise TimeoutError("Timed out waiting for index deletion") diff --git a/test/test_index_management.py b/test/test_index_management.py index 2d723bb4a3..18552d0640 100644 --- a/test/test_index_management.py +++ b/test/test_index_management.py @@ -223,7 +223,7 @@ def test_case_3(self): t0 = time.time() while True: indices = (coll0.list_search_indexes()).to_list() - if indices: + if not indices: break if (time.time() - t0) / 60 > 5: raise TimeoutError("Timed out waiting for index deletion")