Skip to content
Kitbay
Skill

tidb-bazel-prepare-gate

Apache-2.0Updated on Nov 11, 202640,730GitHub stars

A contributor skill in the TiDB repository that decides whether the make bazel_prepare step must run before building or testing, based on the local changes. It is skipped in normal coding unless a trigger is likely.

What the skill teaches

A contributor skill in the TiDB repository that decides whether the make bazel_prepare step must run before building or testing, based on the local changes. It is skipped in normal coding unless a trigger is likely. The agent lists working-tree status, staged and unstaged changes and untracked files with git, and reads zero-context diffs of Go files. It compares them with the conditions in the repository's AGENTS.md build guide, checking in particular for new top-level test functions in existing test files and for added or removed imports in existing Go files. If any condition matches it runs the step; otherwise it continues and reports the evidence from the diffs.

Capabilities

  • Read local Git changes in the TiDB checkout
  • Detect new test functions and import changes
  • Decide whether to run make bazel_prepare