Skip to content

Conversation

@chupe
Copy link
Collaborator

@chupe chupe commented Dec 9, 2025

PCSM-201 Powered by Pull Request Badge

The PR adds infrastructure improvements to support testing PCSM replication from a ReplicaSet source to a Sharded cluster target. This configuration validates that PCSM can replicate collections from RS topology to sharded topology.

  • hack/rs/run.sh: Made replica set count configurable via RS_COUNT environment variable (default: 2, max: 2). Added dynamic service initialization based on count.

  • hack/sh/run.sh: Added support for skipping source or target cluster creation via SRC_SHARDS=0 or TGT_SHARDS=0. This enables RS→Sharded testing by using hack/rs/run.sh for the source and hack/sh/run.sh with SRC_SHARDS=0 for the target.

  • hack/cleanup.sh: Improved cleanup to remove networks and volumes created by both environments, ensuring clean teardown between test runs.

  • tests/test_documents.py: Fixed typo in test name (trucatedtruncated)

Testing:

RS→Sharded configuration validated locally with:

RS_COUNT=1 ./hack/rs/run.sh
SRC_SHARDS=0 TGT_SHARDS=2 ./hack/sh/run.sh

E2E test suite ran against MongoDB 6.0, 7.0, and 8.0.

@chupe chupe requested a review from inelpandzic as a code owner December 9, 2025 00:06
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