Skip to content

Unify test cluster infrastructure by using Rust cluster in Python tests#514

Open
Arnav-panjla wants to merge 2 commits intoapache:mainfrom
Arnav-panjla:unify-test-cluster-394
Open

Unify test cluster infrastructure by using Rust cluster in Python tests#514
Arnav-panjla wants to merge 2 commits intoapache:mainfrom
Arnav-panjla:unify-test-cluster-394

Conversation

@Arnav-panjla
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #394

Replace Python test setup based on CLI subprocess with direct Rust test cluster integration for simpler and more reliable testing.


Brief change log

  • Added fluss-test-cluster dependency in bindings/python/Cargo.toml
  • Added FlussTestCluster (bindings/python/src/test_cluster.rs):
    • wraps FlussTestingClusterBuilder::build_detached()
    • exposes start, stop, stop_by_name, bootstrap_servers, sasl_bootstrap_servers
  • Registered class in bindings/python/src/lib.rs
  • Refactored Python test setup:
    • removed subprocess / CLI / file lock logic
    • use FlussTestCluster.start directly
    • cleanup via pytest_unconfigure → stop_by_name

Tests

  • Python tests now use in-process Rust cluster manager
  • Removed CLI dependency and JSON parsing
  • Verified with test runs

API and Format

API Change: Yes

  • New FlussTestCluster exposed in Python bindings

Storage Format: No


Documentation

No

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.

Unify test cluster infrastructure between Rust and python

1 participant