Pular para o conteúdo
Kitbay
Skill

tidb-failpoint-test-runner

Apache-2.0Atualizado em 11 de nov. de 202640.730Estrelas no GitHub

A maintainer skill in the TiDB repository for running Go package tests under pkg/ and deciding whether failpoints must be enabled before the test command and disabled after it.

O que a skill ensina

A maintainer skill in the TiDB repository for running Go package tests under pkg/ and deciding whether failpoints must be enabled before the test command and disabled after it. It points out that the intest and deadlock build tags do not turn failpoints on, and sends the agent to the failpoint decision section of the repository's testing-flow guide for exact commands. The agent decides from that guide whether the package needs failpoints, picks either the failpoint-enabled or the plain unit-test command set, narrows the run to named tests, with separate notes for Bazel, and reports both the evidence for its decision and the exact command it ran.

O que faz

  • Decide whether a test run needs failpoints
  • Pick the right TiDB test command set
  • Run only the named tests