RUBY-3705 Skip tests that fail on latest#2953
Merged
comandeo-mongo merged 1 commit intomongodb:masterfrom Sep 4, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR disables two failing test cases that are incompatible with the latest MongoDB server version by adding maximum server version constraints. The tests are being skipped because they fail consistently on the latest alpha version of the MongoDB server.
- Adds
max_server_version '8.2.99'constraint to skip tests on MongoDB server versions 8.3.0 and above - Targets specific failing test cases in index operations rather than entire test suites
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| spec/mongo/operation/drop_index_spec.rb | Adds server version constraint to entire DropIndex operation test suite |
| spec/mongo/index/view_spec.rb | Adds server version constraint to the drop_one index view test method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
jamis
approved these changes
Sep 4, 2025
comandeo-mongo
added a commit
to comandeo-mongo/mongo-ruby-driver
that referenced
this pull request
Sep 4, 2025
jamis
pushed a commit
to jamis/mongo-ruby-driver
that referenced
this pull request
Dec 3, 2025
jamis
added a commit
that referenced
this pull request
Jan 9, 2026
* Use correct repository for drivers-github-tools * RUBY-3652 Remove serverless testing (#2942) * RUBY-3652 Remove serverless testing * don't kill all server sessions for the atlas full tests * RUBY-3705 Skip tests that fail on latest (#2953) * RUBY-3726 Use new toolchain (#2958) --------- Co-authored-by: Dmitry Rybakov <dmitry@rybakov.eu> --------- Co-authored-by: Dmitry Rybakov <160598371+comandeo-mongo@users.noreply.github.com> Co-authored-by: Dmitry Rybakov <dmitry@rybakov.eu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following tests fails on the
latestserver version constantly:rspec ./spec/mongo/index/view_spec.rb[1:1:1:2:1:1] # Mongo::Index::View#drop_one when provided a session behaves like a failed operation using a session when the operation fails raises an error
rspec ./spec/mongo/operation/drop_index_spec.rb:54 # Mongo::Operation::DropIndex#execute when the index does not exist raises an exception
Since the
latestis still inalphastage, we disable the tests for now, and investigate when a more stable version is available.