| name | fix-buildkite-ci |
| description | Triage and fix failing Buildkite CI checks for RisingWave pull requests by extracting concrete failing tests, diffs, and error messages from Buildkite build/job logs and artifacts, then applying focused code or test fixes. Use when users ask to diagnose red Buildkite checks, investigate flaky/failing CI jobs, understand why a Buildkite build failed, or provide Buildkite/GitHub check URLs and want a concrete fix. |
Fix Buildkite CI
Overview
Diagnose Buildkite failures programmatically and avoid guessing from UI screenshots. Prefer structured build/job JSON plus artifact inspection to find the exact failing test case and mismatch, then implement the smallest correct fix.
Target Selection
Resolve triage target with this precedence:
- If user provides a Buildkite build URL, use that build directly.
- Else if user specifies a branch and/or a pipeline (for example
pull-request, main-cron), use the specified scope.
- Else default to the current git branch and inspect the checks for the PR associated with that branch.
Workflow
- Identify the failing Buildkite build(s).
- Retrieve build JSON and list failed jobs.
- Pull job logs and extract the first concrete failure signal.
- Inspect artifacts when top-level logs are truncated.
- Map failure to root cause and apply a focused fix.
- Verify locally where feasible and summarize evidence.
Use bk CLI first. If auth is unavailable, use public Buildkite JSON/log/artifact endpoints via curl.
For exact commands and endpoint patterns, read references/buildkite-ci-triage.md.
Step 1: Identify Failing Buildkite Checks
When no explicit target is given, find the PR for the current branch first, then run gh pr checks <PR_NUMBER> to find failing checks and capture Buildkite URLs ().