buildbuddy-action-reproduce

Generate a deterministic bb execute replay from a BuildBuddy invocation.

6|Updated Jul 9, 2019
One-click install
npx skills add https://github.com/sluongng/dotfiles --skill buildbuddy-action-reproduce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: buildbuddy-action-reproduce
Source: https://github.com/sluongng/dotfiles/tree/main/config/claude/plugins/buildbuddy/skills/buildbuddy-action-reproduce
Command: npx skills add https://github.com/sluongng/dotfiles --skill buildbuddy-action-reproduce

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Reproduce Bazel/BuildBuddy actions from an invocation and generate a deterministic bb execute replay command to re-run an action with modified inputs.

Core Features & Use Cases

  • Identify the target action from a BuildBuddy invocation using GetInvocation and GetExecution, then select the exact action via digest/labels.
  • Download the Action and Command protos and reconstruct a replayable bb execute command, preserving inputs, env, timeouts, and outputs.
  • Pin or customize execution by environment variables, exec properties, or a specific executor, enabling precise reproducibility and debugging.
  • Open-ended use cases include validating invocations, debugging failing actions, and producing shareable reproduce commands for CI or incident response.

Quick Start

Run the provided script with your invocation ID or URL to generate a ready-to-run bb execute command.

Frequently Asked Questions about buildbuddy-action-reproduce

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

FAQPage Schema
How do I reproduce a Bazel remote action from a BuildBuddy invocation URL?

To reproduce a Bazel remote action from a BuildBuddy invocation, provide the invocation URL or ID to locate the target action using GetInvocation and GetExecution. The tool downloads Action and Command protos and formats a bb execute replay command preserving inputs, env, and timeouts.

Can I modify environment variables and exec properties when replaying a BuildBuddy action?

Yes, you can modify environment variables, exec properties, command arguments, and pin execution to a specific executor when generating a bb execute replay. This allows precise reproducibility and debugging of the original Bazel remote action.

What is a bb execute replay command used for in Bazel remote execution?

A bb execute replay command is used to re-run a specific Bazel remote action deterministically. It reconstructs the execution environment from downloaded Action and Command protos, enabling users to debug failing actions or validate invocations locally.

How do I download Action and Command protos to debug a failing Bazel action?

The tool locates the specific Bazel action via digest or labels using GetInvocation and GetExecution, then automatically downloads the Action and Command protos. These protos are used to reconstruct a replayable bb execute command with original inputs and outputs.

Does reproducing a BuildBuddy action require a specific executor setup?

Reproducing a BuildBuddy action does not require a specific executor setup initially, but you can pin execution to a specific executor during replay. The tool preserves original exec properties and supports overrides for environment variables and timeouts.