What problem does it solve?
Running TiDB integration tests under tests/realtikvtest requires a correctly started local TiUP playground, readiness verification, scoped test execution, and reliable teardown, which is error-prone when done manually.
Core Features & Use Cases
- Playground Lifecycle Management: Starts the TiUP playground in the background, verifies readiness via the PD endpoint, and cleans up processes and data afterward.
- Scoped Test Execution: Keeps test runs narrow using -run flags and target subdirectories to avoid unnecessary work.
- Failpoint Handling: Enables failpoints before tests and disables them afterward when tests require them.
- Use Case: A TiDB contributor modifying DDL code runs only the relevant realtikvtest package against a local playground, then confirms the PD endpoint is unreachable after cleanup.
Quick Start
Run the realtikvtest suite for my target package using the TiUP playground workflow, then verify cleanup by confirming the PD endpoint is down.