The GitHub Actions “Atlas test” job pulls mongodb/mongodb-atlas-local:latest. The current image changed how listSearchIndexes reports index state, so 173 tests in SearchIndexTests and SearchIndexExamplesTests fail with KeyNotFoundException: Element 'latestVersion' not found. The last green run on the repo was Nov 5. The failure is independent of any PR; unrelated PRs fail the same way.
What changed in the server response
- latestVersion (int) is replaced by latestDefinitionVersion: { version, createdAt }{}.
- Index definition properties equal to their default are no longer returned (for example store: true, norms: "include", indexOptions: "offsets", minGrams: 2, maxGrams: 15, tokenization: "edgeGram", indexDoubles/indexIntegers: true).
- Key order and the order of scalar lists such as include/exclude are not preserved.