Skip to content

RUBY-3742 Fix backpressure tests#2994

Merged
comandeo-mongo merged 3 commits intomongodb:masterfrom
comandeo-mongo:3742-fix-backpressure-tests
Mar 26, 2026
Merged

RUBY-3742 Fix backpressure tests#2994
comandeo-mongo merged 3 commits intomongodb:masterfrom
comandeo-mongo:3742-fix-backpressure-tests

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review March 26, 2026 14:27
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner March 26, 2026 14:27
@comandeo-mongo comandeo-mongo requested review from Copilot and jamis March 26, 2026 14:27
Copy link
Copy Markdown
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

This PR updates the Ruby driver’s SDAM/backpressure test suite to reduce flakiness and expand coverage for connection pool backpressure behaviors, and adjusts Evergreen variants to run relevant suites against MongoDB “rapid”.

Changes:

  • Add/adjust SDAM unified spec tests around minPoolSize population failures and pool clearing behavior.
  • Stabilize concurrency-related unit tests (token bucket) and tweak integration test expectations.
  • Expand Evergreen matrices (CSOT and FLE) to include the rapid MongoDB version.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
spec/spec_tests/data/sdam_unified/pool-clear-min-pool-size-error.yml Adds unified SDAM coverage for pool clear vs. non-clear during minPoolSize population errors.
spec/spec_tests/data/sdam_unified/minPoolSize-error.yml Adjusts minPoolSize failure test to use a server error and polling monitor mode.
spec/mongo/retryable/token_bucket_spec.rb Makes the thread-safety assertion deterministic by avoiding floor/ceiling effects.
spec/integration/secondary_reads_spec.rb Relaxes tolerance on read-counter assertions (risk: can weaken regression detection).
spec/integration/sdam_prose_spec.rb Adds an integration spec for connection pool backpressure via server ingress rate limiter parameters.
.evergreen/config/standard.yml.erb / .evergreen/config.yml Adds rapid to CSOT and FLE buildvariant MongoDB version matrices.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@comandeo-mongo comandeo-mongo force-pushed the 3742-fix-backpressure-tests branch from 5f56079 to 3166677 Compare March 26, 2026 14:39
comandeo-mongo and others added 2 commits March 26, 2026 15:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Mongo::Error::PoolTimeout does not exist; replace with StandardError
which covers all connection-related errors (SocketError, pool checkout
timeouts, NoServerAvailable, etc.).
@comandeo-mongo comandeo-mongo merged commit 058632f into mongodb:master Mar 26, 2026
205 of 208 checks passed
@comandeo-mongo comandeo-mongo deleted the 3742-fix-backpressure-tests branch March 26, 2026 16:59
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