From 486f7255b26b75cee266b6f24b1b0a9a5ac8f5aa Mon Sep 17 00:00:00 2001 From: Andre Masella Date: Tue, 24 Nov 2026 11:27:53 -0500 Subject: [PATCH 1/5] JAVA-6059: Update evergreen pipeline to run auto embedding vector search Enable all tests now that auto embedding is GA --- ...ctAtlasSearchIndexManagementProseTest.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/driver-sync/src/test/functional/com/mongodb/client/AbstractAtlasSearchIndexManagementProseTest.java b/driver-sync/src/test/functional/com/mongodb/client/AbstractAtlasSearchIndexManagementProseTest.java index 1685a79fce2..8c458c5b633 100644 --- a/driver-sync/src/test/functional/com/mongodb/client/AbstractAtlasSearchIndexManagementProseTest.java +++ b/driver-sync/src/test/functional/com/mongodb/client/AbstractAtlasSearchIndexManagementProseTest.java @@ -289,9 +289,6 @@ public void shouldRequireExplicitTypeToCreateVectorSearchIndex() { @Test @DisplayName("should fail when invalid model name was used for auto embedding index") void shouldFailWhenInvalidModelNameWasUsed() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - assertThrows( MongoCommandException.class, () -> createAutoEmbeddingIndex("test"), @@ -302,9 +299,6 @@ void shouldFailWhenInvalidModelNameWasUsed() { @Test @DisplayName("should fail to create auto embedding index without model") void shouldFailToCreateAutoEmbeddingIndexWithoutModel() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( @@ -326,9 +320,6 @@ void shouldFailToCreateAutoEmbeddingIndexWithoutModel() { @ParameterizedTest(name = "should create auto embedding index with {0} quantization") @ValueSource(strings = {"float", "scalar", "binary", "binaryNoRescore"}) void shouldCreateAutoEmbeddingIndexWithQuantization(final String quantization) { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - final String indexName = AUTO_EMBED_INDEX_NAME + "_" + quantization; SearchIndexModel indexModel = new SearchIndexModel( indexName, @@ -352,9 +343,6 @@ void shouldCreateAutoEmbeddingIndexWithQuantization(final String quantization) { @Disabled("Currently numDimensions can't be used, it fails with server error:" + " 'Invalid numDimensions value for autoEmbed field. Expected an integer.'") void shouldCreateAutoEmbeddingIndexWithCustomNumDimensions() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( @@ -375,9 +363,6 @@ void shouldCreateAutoEmbeddingIndexWithCustomNumDimensions() { @Test @DisplayName("should create auto embedding index with filter field") void shouldCreateAutoEmbeddingIndexWithFilterField() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( @@ -399,9 +384,6 @@ void shouldCreateAutoEmbeddingIndexWithFilterField() { @Test @DisplayName("should fail when mixing vector and autoEmbed types in the same index") void shouldFailWhenMixingVectorAndAutoEmbedTypes() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( @@ -428,9 +410,6 @@ void shouldFailWhenMixingVectorAndAutoEmbedTypes() { @Test @DisplayName("should fail when duplicate paths are used in auto embedding index") void shouldFailWhenDuplicatePathsAreUsed() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( @@ -457,9 +436,6 @@ void shouldFailWhenDuplicatePathsAreUsed() { @Test @DisplayName("should fail when autoEmbed field is used as filter field") void shouldFailWhenAutoEmbedFieldUsedAsFilterField() { - //TODO-JAVA-6059 remove this assumption when auto embedding is generally available - Assumptions.assumeTrue(false); - SearchIndexModel indexModel = new SearchIndexModel( AUTO_EMBED_INDEX_NAME, new Document( From 366d1672920a2b35fded3aee0a8688cc343a7adf Mon Sep 17 00:00:00 2001 From: Andre Masella Date: Tue, 24 Nov 2026 13:49:56 -0500 Subject: [PATCH 2/5] fixup --- .../AbstractAutoEmbeddingVectorSearchFunctionalTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java index 0fa69708c9c..49acf347ea8 100644 --- a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java +++ b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java @@ -71,9 +71,6 @@ public abstract class AbstractAutoEmbeddingVectorSearchFunctionalTest { @BeforeAll void setUpOnce() throws InterruptedException { - //TODO-JAVA-6059 remove this assumption when Atlas Vector Search with automated embedding is generally available - Assumptions.assumeTrue(false); - mongoClient = getMongoClient(getMongoClientSettingsBuilder() .codecRegistry(CODEC_REGISTRY) .build()); From fcd3801c19079ccfef9cd2926a8c82d1c034f13d Mon Sep 17 00:00:00 2001 From: Andre Masella Date: Tue, 24 Nov 2026 14:08:01 -0500 Subject: [PATCH 3/5] fixup --- .../AbstractAutoEmbeddingVectorSearchFunctionalTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java index 49acf347ea8..11a7556c2c4 100644 --- a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java +++ b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java @@ -29,7 +29,6 @@ import org.bson.conversions.Bson; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -40,6 +39,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; +import static com.mongodb.ClusterFixture.isStandalone; import static com.mongodb.MongoClientSettings.getDefaultCodecRegistry; import static com.mongodb.client.model.Aggregates.vectorSearch; import static com.mongodb.client.model.search.SearchPath.fieldPath; @@ -49,6 +49,7 @@ import static java.util.Arrays.asList; import static org.bson.codecs.configuration.CodecRegistries.fromProviders; import static org.bson.codecs.configuration.CodecRegistries.fromRegistries; +import static org.junit.jupiter.api.Assumptions.assumeFalse; /** * Tests for auto-embedding vector search queries. @@ -71,6 +72,7 @@ public abstract class AbstractAutoEmbeddingVectorSearchFunctionalTest { @BeforeAll void setUpOnce() throws InterruptedException { + assumeFalse(isStandalone(), "Vector search functional tests are not support on standalone instances"); mongoClient = getMongoClient(getMongoClientSettingsBuilder() .codecRegistry(CODEC_REGISTRY) .build()); From 985eb4b832686f526fcfd7583741d7a7b48834c7 Mon Sep 17 00:00:00 2001 From: Andre Masella Date: Wed, 25 Nov 2026 14:39:56 -0500 Subject: [PATCH 4/5] fixup --- .../search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java index 11a7556c2c4..322513107a8 100644 --- a/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java +++ b/driver-sync/src/test/functional/com/mongodb/client/model/search/AbstractAutoEmbeddingVectorSearchFunctionalTest.java @@ -29,6 +29,7 @@ import org.bson.conversions.Bson; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -72,6 +73,7 @@ public abstract class AbstractAutoEmbeddingVectorSearchFunctionalTest { @BeforeAll void setUpOnce() throws InterruptedException { + Assumptions.assumeTrue(ClusterFixture.isAtlasSearchTest(), "Atlas Search Index tests are disabled"); assumeFalse(isStandalone(), "Vector search functional tests are not support on standalone instances"); mongoClient = getMongoClient(getMongoClientSettingsBuilder() .codecRegistry(CODEC_REGISTRY) From 101249600b43a801ea0f6d90b495c5c9f51acf19 Mon Sep 17 00:00:00 2001 From: Andre Masella Date: Tue, 1 Dec 2026 14:14:48 -0500 Subject: [PATCH 5/5] test_config --- .evergreen/.evg.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.evergreen/.evg.yml b/.evergreen/.evg.yml index 49cd8b20954..70dd6b00c5e 100644 --- a/.evergreen/.evg.yml +++ b/.evergreen/.evg.yml @@ -113,6 +113,8 @@ functions: cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS else git clone --depth 1 https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS + # TEST TEST TEST TODO(apmasell): do not merge; remove and include upstream + sed -i -e 's/"autoIndexingEnabled" : false/"autoIndexingEnabled" : true/g' ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh fi echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config