Skip to content

Conversation

comandeo-mongo
Copy link
Contributor

The following tests fails on the latest server 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 latest is still in alpha stage, we disable the tests for now, and investigate when a more stable version is available.

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 13:05
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner September 4, 2025 13:05
@comandeo-mongo comandeo-mongo requested a review from jamis September 4, 2025 13:05
Copy link

@Copilot 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

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.

@comandeo-mongo comandeo-mongo merged commit 0ca7ed8 into mongodb:master Sep 4, 2025
199 of 202 checks passed
comandeo-mongo added a commit to comandeo-mongo/mongo-ruby-driver that referenced this pull request Sep 4, 2025
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.

2 participants