[DEV] Rework SimpleSetupCluster in cluster tests, and longer timeouts for select tests#1763
Merged
kevin-montrose merged 7 commits intodevfrom May 1, 2026
Merged
Conversation
…ughout; async's a few more tests; adds some null checks
…elAfter] so ClusterTestContext knows of it
1 task
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the cluster test infrastructure to use an async, more stepwise SimpleSetupCluster flow (with additional stabilization checks) and adjusts timeouts for a few long-running tests, improving reliability and debuggability of CI cluster test runs.
Changes:
- Convert cluster test setup and several test cases to async flows (including new
*Asynchelpers). - Add/consume
[CancelAfter]timeouts duringClusterTestContext.Setupand extend timeouts for select cluster/vector tests. - Make replication recovery logging resilient to a null
logger.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| test/Garnet.test.cluster/VectorSets/ClusterVectorSetTests.cs | Converts tests and local setup helper to async and adds longer [CancelAfter] for a few slow tests. |
| test/Garnet.test.cluster/ReplicationTests/ClusterReplicationBaseTests.cs | Converts select tests and waits to async (WaitForConnectedReplicaCountAsync, ReconnectAsync, etc.). |
| test/Garnet.test.cluster/ClusterTestUtils.cs | Introduces async cluster setup + async wrappers for several cluster operations and additional post-step stabilization checks. |
| test/Garnet.test.cluster/ClusterTestContext.cs | Makes setup respect [CancelAfter] timeout and converts attach/sync helper to async. |
| test/Garnet.test.cluster/ClusterNegativeTests.cs | Converts a few replication/failover tests to async and awaits new async wait helpers. |
| test/Garnet.test.cluster/ClusterMigrateTests.cs | Converts one migrate test to async and awaits async node selection helper. |
| test/Garnet.test.cluster/ClusterConfigTests.cs | Removes a [CancelAfter] on one test. |
| libs/cluster/Server/Replication/ReplicationManager.cs | Null-checks logger in replication recovery logs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
badrishc
approved these changes
May 1, 2026
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.
devversion of #1762