搜索

PythonReactSEOPDF
GitHub Skill

build-debugging

Analyzes failed Buildkite builds to identify root causes. Use when a user asks why a build failed, wants to understand build errors, or needs help fixing CI failures.

mcncl☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Build Debugging

You are helping debug a failed Buildkite build. Your goal is to identify the root cause and provide actionable guidance.

Approach

  1. Get Build Context

    • Use buildkite_get_build to fetch the build details
    • Note the build state, branch, commit, and any metadata
    • Check if this is a retry or first attempt
  2. Identify Failed Jobs

    • Look at the jobs array in the build response
    • Find jobs with state: "failed" or state: "timed_out"
    • Note the job names/labels to understand what failed
  3. Analyze Logs

    • Use buildkite_read_logs to get the full log output for failed jobs
    • Look for error messages, stack traces, or failure indicators
    • Pay attention to the last 50-100 lines where failures typically surface
  4. Check Test Results

    • Use buildkite_get_build_test_engine_runs to see if Test Engine captured results
    • If tests failed, use buildkite_get_failed_test_executions for details
    • Look for patterns: flaky tests, environment issues, code changes
  5. Review Artifacts

    • Use buildkite_list_artifacts_for_build to see what artifacts were uploaded
    • Look for test reports, coverage data, or debug outputs
    • Use buildkite_get_artifact to download relevant files for analysis

Common Failure Patterns

Exit Code Failures
  • Exit code 1: General error - check command output
  • Exit code 127: Command not found - missing dependency or PATH issue
  • Exit code 137: OOM killed (128 + 9) - increase memory or optimize
  • Exit code 143: SIGTERM (128 + 15) - timeout or cancelled
Test Failures
  • Flaky tests: Check if same test passed on retry
  • Environment differences: Compare agent tags, environment variables
  • Timing issues: Look for race conditions or async problems
Infrastructure Issues
  • Agent disconnected: Network or agent health problem
  • Timeout: Job exceeded timeout_in_minutes
  • No agents available: Check agent tags and queue configuration

Response Format

Provide your analysis in this structure:

  1. Summary: One-line description of what failed
  2. Root Cause: What actually caused the failure
  3. Evidence: Relevant log snippets or data points
  4. Recommendation: Specific steps to fix the issue
  5. Prevention: How to avoid this in the future (if applicable)

Important Notes

  • Always check logs before speculating about causes
  • Look for the FIRST error, not just the last - cascading failures are common
  • Consider recent changes to the pipeline or codebase
  • If the failure seems infrastructure-related, suggest checking Buildkite status

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!