From df6f28fb622ac5fed14897c87dbfb5142bfc818c Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Thu, 27 Nov 2025 16:00:58 +0100 Subject: [PATCH] chore: pin Atlas image to working tag --- tests/integration/tools/mongodb/create/createIndex.test.ts | 2 +- tests/integration/tools/mongodb/mongodbClusterProcess.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/tools/mongodb/create/createIndex.test.ts b/tests/integration/tools/mongodb/create/createIndex.test.ts index 463a2dbd3..2b8b359f4 100644 --- a/tests/integration/tools/mongodb/create/createIndex.test.ts +++ b/tests/integration/tools/mongodb/create/createIndex.test.ts @@ -510,7 +510,7 @@ describeWithMongoDB( expect(indexes).toHaveLength(1); expect(indexes[0]?.name).toEqual("vector_1_vector"); expect(indexes[0]?.type).toEqual("vectorSearch"); - expect(indexes[0]?.status).toEqual("PENDING"); + expect(indexes[0]?.status).toEqual(expect.stringMatching(/PENDING|BUILDING/)); expect(indexes[0]?.queryable).toEqual(false); expect(indexes[0]?.latestDefinition).toEqual({ fields: [ diff --git a/tests/integration/tools/mongodb/mongodbClusterProcess.ts b/tests/integration/tools/mongodb/mongodbClusterProcess.ts index cf51201ce..956f9b28e 100644 --- a/tests/integration/tools/mongodb/mongodbClusterProcess.ts +++ b/tests/integration/tools/mongodb/mongodbClusterProcess.ts @@ -16,7 +16,9 @@ export type MongoClusterConfiguration = MongoRunnerConfiguration | MongoSearchCo const DOWNLOAD_RETRIES = 10; -const DEFAULT_LOCAL_IMAGE = "mongodb/mongodb-atlas-local:8"; +// TODO: Revert this to generic tag 8, once the problem with atlas-local image +// is addressed. +const DEFAULT_LOCAL_IMAGE = "mongodb/mongodb-atlas-local:8.2.2-20251125T154829Z"; export class MongoDBClusterProcess { static async spinUp(config: MongoClusterConfiguration): Promise { if (MongoDBClusterProcess.isSearchOptions(config)) {