| name | buildbucket |
| description | A wrapper around the 'bb' (buildbucket) tool designed for low-context agentic usage without overly verbose logs. Good for a high-level overview of builder failures across a patchset, and for surfacing non-test failures (e.g., compile and profile merge failures). For detailed, complete, and actionable test failures, use the 'luci-test-results' skill which queries ResultDB directly for comprehensive information about failures.
|
Overview
This skill provides a Python wrapper (bb_wrapper.py) around the bb CLI tool.
It is designed to handle large outputs gracefully by parsing JSON and saving
logs to files, providing summaries instead of dumping everything to stdout.
Key features:
- List try bot results for a Gerrit CL URL.
- Easily find the latest build for a builder.
- List build steps with status clearly visible.
- Fetch logs safely and view the tail.
Usage
The main entry point is the bb_wrapper.py script located in the scripts
directory of this skill.
Commands
-
List CL Build Results
agents/skills/buildbucket/scripts/bb_wrapper.py cl <cl_url> [--patchset <N>] [--all] [--verbose] [--logs]
cl_url: The full URL to the Gerrit CL.
--patchset (-p): The patchset number. If not provided, the script looks
for it in the URL. If still missing, it attempts to find the latest
patchset via Gerrit REST API.
--all (-a): Show all builds for the specified patchset (including
retries and successful ones). If no patchset is specified, it fetches and
shows builds for all patchsets found for the CL.
--verbose (-v): Show full failure summaries (Markdown).
--logs (-l): Automatically fetch and show the tail of logs for failed
steps.
-
Get Latest Build Info for a Builder
agents/skills/buildbucket/scripts/bb_wrapper.py latest <builder_path>
builder_path: format project/bucket/builder (e.g.,
chromium/try/linux-rel)
-
List Build Steps
agents/skills/buildbucket/scripts/bb_wrapper.py steps <build_id>
build_id: The ID of the build.
-
Fetch Logs for a Step
agents/skills/buildbucket/scripts/bb_wrapper.py logs <build_id> <step_name> <log_name> [-o output_file]
step_name: Name of the step (e.g., compile, browser_tests).
log_name: Name of the log (e.g., stdout, failure_summary).
-o: Optional output file path. Defaults to
/tmp/bb_<id>_<step>_<log>.log.
Examples
Check CL try bot results (URL includes patchset)
agents/skills/buildbucket/scripts/bb_wrapper.py cl https://chromium-review.googlesource.com/c/chromium/src/+/123456/3
Check all builds for a CL (no patchset specified)
agents/skills/buildbucket/scripts/bb_wrapper.py cl https://chromium-review.googlesource.com/c/chromium/src/+/123456 --all
Inspect steps of a failed build
agents/skills/buildbucket/scripts/bb_wrapper.py steps 876543210987654321
Get the compile log
agents/skills/buildbucket/scripts/bb_wrapper.py logs 876543210987654321 compile stdout
Best Practices
Directory Structure
agents/skills/buildbucket/
├── scripts/
│ └── bb_wrapper.py*
├── OWNERS
└── SKILL.md