Skip to content

Unify test cluster infrastructure between Rust and python #394

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Test cluster setup is duplicated in three places:

Rust: testcontainers-rs (async, builder pattern)
C++: raw docker run shell commands with TCP polling
Python: testcontainers Python library (sync, pytest fixture)
All three duplicate constants (image name, version, ports, network), orchestration logic (create network, ZK, coordinator, tablet server, wait, and cluster config.

Python could reuse the Rust cluster manager via PyO3 relatively easily (opaque #[pyclass] wrapper, async already supported).

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions