Skip to content

Improve flakey index version test#1844

Merged
alcaeus merged 1 commit intomongodb:v2.xfrom
alcaeus:fix-latest
Feb 11, 2026
Merged

Improve flakey index version test#1844
alcaeus merged 1 commit intomongodb:v2.xfrom
alcaeus:fix-latest

Conversation

@alcaeus
Copy link
Member

@alcaeus alcaeus commented Feb 11, 2026

The mongodb-latest build is failing because the current latest server version uses a newer index version for 2d sphere indexes. We don't need to check for a precise version, we only need to assert it's there.

@alcaeus alcaeus requested a review from GromNaN February 11, 2026 11:24
@alcaeus alcaeus requested a review from a team as a code owner February 11, 2026 11:25
Copilot AI review requested due to automatic review settings February 11, 2026 11:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a brittle assertion on 2dsphereIndexVersion so the functional test doesn’t fail against newer MongoDB server versions that report a different 2dsphere index version.

Changes:

  • Dropped an exact-value assertion for 2dsphereIndexVersion in the 2dsphere index test.

@alcaeus alcaeus changed the title Remove unnecessary index version check Improve flakey index version test Feb 11, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.91%. Comparing base (161a8e2) to head (9a57ba1).
⚠️ Report is 1 commits behind head on v2.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##               v2.x    #1844   +/-   ##
=========================================
  Coverage     87.91%   87.91%           
  Complexity     3208     3208           
=========================================
  Files           428      428           
  Lines          6390     6390           
=========================================
  Hits           5618     5618           
  Misses          772      772           
Flag Coverage Δ
6.0-replica_set 86.71% <ø> (ø)
6.0-server 82.76% <ø> (ø)
6.0-sharded_cluster 86.49% <ø> (ø)
8.0-replica_set 87.77% <ø> (ø)
8.0-server 83.53% <ø> (ø)
8.0-sharded_cluster 87.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alcaeus alcaeus merged commit bbb13f9 into mongodb:v2.x Feb 11, 2026
33 checks passed
@alcaeus alcaeus deleted the fix-latest branch February 11, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants