Tidb Integrationtest Recorder tidb-integrationtest-recorder

Use when recording TiDB integration tests under tests/integrationtest and verifying regenerated result files stay minimal and correct.

Works in Claude, ChatGPT, Codex and more
Our test
7/10✓ Verified
tested Dec 6, 2026
GitHub stars
41k
pingcap/tidb
Added by
0
members
Updated
Dec 6
commit 86e528b
Content
1 file
no scripts · 1 KB
License
Apache 2.0
free to use

What our test found

The workflow gives clear guardrails for targeted recording and minimal result diffs, but relies on repository documentation for the actual command.

Request we tested it on“I changed `tests/integrationtest/t/planner/core/binary_plan.test`. How should I record and verify the integration test results?”

Limits spotted

  • Does not include the recording command, so it cannot be used without consulting repository documentation.
  • Does not specify how to assess whether a result change is correct.
View on GitHub ↗
name: tidb-integrationtest-recorder
description: Use when recording TiDB integration tests under tests/integrationtest and verifying regenerated result files stay minimal and correct.

TiDB Integration Test Recorder

Overview

Use this workflow for changes under tests/integrationtest/t/** or when SQL behavior needs integration coverage. Do not use -record for this suite. Canonical command details live in docs/agents/testing-flow.md -> Integration tests (/tests/integrationtest).

Workflow

  1. Use docs/agents/testing-flow.md -> Integration tests (/tests/integrationtest) for the recording command.
  2. Derive TestName from the path under tests/integrationtest/t/ without the .test suffix (example: planner/core/binary_plan).
  3. Review changed files in tests/integrationtest/r/** and keep result diffs minimal.

Guardrails

  • Prefer targeted recording of the affected suite only.
  • Avoid unrelated result churn.
  • If result files need manual edits, keep them minimal and verify with another run.