What problem does it solve?
Running TiDB package tests under pkg/... without the correct failpoint setup leads to misleading results, since the -tags=intest,deadlock build flags do not enable failpoints. This Skill guides the decision of whether failpoint enable/disable commands are required before and after a test run.
Core Features & Use Cases
- Failpoint Decision Workflow: Consults docs/agents/testing-flow.md to decide whether a package requires failpoint enablement before testing.
- Correct Command Selection: Chooses between the failpoint-enabled run command set and the standard unit test command set based on the package's characteristics.
- Targeted Test Execution: Keeps runs focused with -run <TestName> and supports Bazel-specific variants.
- Use Case: A developer modifying a package under pkg/ uses this Skill to determine the package needs failpoints, enables them, runs the targeted test, disables failpoints afterward, and records the decision evidence in the final report.
Quick Start
Check whether my TiDB package test needs failpoint enablement and run the correct test command for it.