Skip to content

Conversation

@sanych-sun
Copy link
Member

No description provided.

@sanych-sun sanych-sun added the chore Non–user-facing code changes (tests, build scripts, etc.). label Jan 14, 2026
@sanych-sun sanych-sun requested a review from a team as a code owner January 14, 2026 20:33
@sanych-sun sanych-sun requested review from Copilot and rstam January 14, 2026 20:33
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

This PR addresses race conditions in the backpressure-network-* test suite by splitting topology-agnostic tests into topology-specific variants and adding support for replica set server type matching in the unified test event matcher.

Changes:

  • Added support for RSPrimary and RSSecondary server types in the unified event matcher
  • Split backpressure tests into separate single and replicaset topology-specific test files
  • Updated test files to wait for specific server description states (Standalone or RSPrimary) instead of generic events

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
UnifiedEventMatcher.cs Added RSPrimary and RSSecondary server type mappings to support replica set server type filtering in tests
backpressure-network-timeout-fail-single.yml Restricted test to single topology and added Standalone server type assertion
backpressure-network-timeout-fail-single.json JSON equivalent of the single topology test restrictions
backpressure-network-timeout-fail-replicaset.yml New replicaset-specific test variant with RSPrimary server type assertion
backpressure-network-timeout-fail-replicaset.json JSON equivalent of the replicaset topology test
backpressure-network-error-fail-single.yml Restricted test to single topology and changed event monitoring from heartbeat to server description with Standalone type
backpressure-network-error-fail-single.json JSON equivalent of the network error single topology test
backpressure-network-error-fail-replicaset.yml New replicaset-specific network error test with RSPrimary server type assertion
backpressure-network-error-fail-replicaset.json JSON equivalent of the replicaset network error test

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non–user-facing code changes (tests, build scripts, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant