buck2-test-workflow

Automate Buck2 post-change testing for targets, packages, and reverse dependencies.

11|1|Updated Apr 9, 2025
One-click install
npx skills add https://github.com/thoughtpolice/a --skill buck2-test-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: buck2-test-workflow
Source: https://github.com/thoughtpolice/a/tree/main/.claude/skills/buck2-test-workflow
Command: npx skills add https://github.com/thoughtpolice/a --skill buck2-test-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive post-change testing workflows for Buck2 projects to prevent downstream breakage and ensure code quality.

Core Features & Use Cases

  • Immediate target validation after changes to ensure the modified target passes tests locally.
  • Recursive package testing using the ... pattern to catch issues across subpackages.
  • Target determination and analysis to identify affected targets and reverse dependencies.
  • Build and test of all affected targets to verify downstream compatibility.

Quick Start

Run the complete Buck2 testing workflow after changing code to validate immediate targets, package-wide tests, and downstream impact.

Frequently Asked Questions about buck2-test-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Buck2 testing workflows after modifying build and package files?

You can automate post-change Buck2 testing by running a comprehensive workflow that validates modified targets, executes recursive package tests, and performs target determination to ensure code quality. This prevents downstream breakage after changing BUILD and PACKAGE files.

What is the best way to run recursive package tests in Buck2 after code changes?

The best way to run recursive package tests is using the ... pattern to catch issues across subpackages. This approach validates immediate targets and executes comprehensive package-wide tests to ensure downstream compatibility after modifications.

How does target determination identify affected targets and reverse dependencies in Buck2?

Target determination in Buck2 analyzes your changes to identify all affected targets and their reverse dependencies. This mechanism ensures you build and test only the necessary downstream targets, verifying compatibility without running the entire project test suite.

Can I check reverse dependencies to prevent downstream breakage when testing Buck2 targets?

Yes, you can check reverse dependencies to prevent downstream breakage. The workflow includes optional reverse-dependency verification alongside immediate target tests and recursive package testing to ensure your changes do not break downstream consumers.

Does this Buck2 testing workflow support both immediate target validation and recursive testing?

Yes, the workflow supports both immediate target validation and recursive testing. It orchestrates immediate target tests to ensure modified targets pass locally, while also applying the ... pattern to catch issues across subpackages for comprehensive coverage.

What are the limitations of relying only on immediate target tests in Buck2?

Relying only on immediate target tests misses issues in subpackages and downstream consumers. Without recursive package testing and reverse-dependency checks, changes to BUILD or PACKAGE files can cause undetected downstream breakage across your Buck2 project.