Azure SDK 流水线故障分析
azsdk-common-pipeline-analysis
将 Azure SDK CI/CD 流水线失败分析为结构化诊断,并定义所需的输出格式。在调用 azsdk_analyze_pipeline 之前加载本技能,该工具返回原始失败数据,由本技能进行解读与格式化。适用场景:"流水线失败"、"构建失败"、"CI 检查失败"、"CI 中测试失败"、"分析流水线"、"调试 SDK 流水线"。不适用于:无流水线上下文的本地构建问题、API 设计审查、SDK 发布、应用代码修复(请改用 azsdk-common-pipeline-fixer)。调用工具:azure-sdk-mcp:azsdk_analyze_pipeline、azure-sdk-mcp:azsdk_get_pipeline_llm_artifacts、azure-sdk-mcp:azsdk_get_failed_test_run_data、azure-sdk-mcp:azsdk_get_failed_test_case_data、azure-sdk-mcp:azsdk_get_pr_checks、azure-sdk-mcp:azsdk_get_pipeline_status。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6.1k
- Forks
- 5.2k
01 前言 Front Matter
- name
- azsdk-common-pipeline-analysis
- license
- MIT
- metadata
- { "version": "1.0.0", "distribution": "shared" }
- description
- Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdk_analyze_pipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in CI", "analyze pipeline", "debug SDK pipeline". DO NOT USE FOR: local build issues without pipeline context, API design review, SDK publishing, applying code fixes (instead use azsdk-common-pipeline-fixer). INVOKES: azure-sdk-mcp:azsdk_analyze_pipeline, azure-sdk-mcp:azsdk_get_pipeline_llm_artifacts, azure-sdk-mcp:azsdk_get_failed_test_run_data, azure-sdk-mcp:azsdk_get_failed_test_case_data, azure-sdk-mcp:azsdk_get_pr_checks, azure-sdk-mcp:azsdk_get_pipeline_status.
- compatibility
- azure-sdk-mcp server, Azure DevOps pipeline build ID or GitHub PR link
02 资源文件 4
- 参考文档evals/trigger.eval.yaml4.0 KB
- 参考文档references/failure-patterns.md6.3 KB
- 参考文档references/output-format.md1.3 KB
- 参考文档testing-anti-patterns.md8.1 KB
03 SKILL.md 正文
Pipeline Analysis
This skill analyzes Azure SDK CI/CD pipeline failures and provides a structured diagnosis including root cause, affected files, and concrete instructions for how to fix each issue. It does NOT apply fixes - it tells you exactly what's wrong and how to resolve it.
Rules
- Load this skill before running
azsdk_analyze_pipeline— the tool returns raw failure data that this skill interprets and formats per output format. - Requires the
azure-sdk-mcpserver; without it, inspect logs in the Azure DevOps UI. - Analysis-only: never edit files or apply fixes — use
azsdk-common-pipeline-fixerfor changes. - Run
azsdk_analyze_pipelinefirst, then categorize each failure and cite specific files/lines. - For infrastructure failures (network timeouts, agent crashes, throttling), recommend retry, not code changes.
MCP Tools
| Tool | Purpose |
|---|---|
azure-sdk-mcp:azsdk_analyze_pipeline |
Analyze pipeline failure (logs + test results) |
azure-sdk-mcp:azsdk_get_pipeline_llm_artifacts |
Download test result artifacts from pipeline |
azure-sdk-mcp:azsdk_get_failed_test_run_data |
Full details for every failure in one artifact file |
azure-sdk-mcp:azsdk_get_failed_test_case_data |
Full details for a single failing test in a file |
azure-sdk-mcp:azsdk_get_pr_checks |
Get pipeline/check results linked to a PR |
azure-sdk-mcp:azsdk_get_pipeline_status |
Get pipeline run status |
Steps
- Identify - Get the build ID, pipeline URL, or PR link (use the PR link when triggered from a PR comment).
- Analyze - Run
azsdk_analyze_pipeline. It returnsfailed_pipeline_tasks(log errors from failed steps) andfailed_pipeline_tests, a lightweight index of failed tests grouped by artifact file. Each entry hasartifact_file_path,platform, andfailed_test_titles— titles only, no error text, to keep the response small. - Fetch failure details - Fetch failure details lazily so you don't overload context: call
azsdk_get_failed_test_run_datawith the parameterfailedTestRunsPathset toartifact_file_pathonce per file to get every failure in it. Or callazsdk_get_failed_test_case_datawithfailedTestRunsPathset toartifact_file_pathandtestCaseTitleset to one exact title fromfailed_test_titles. Prefer the per-file call when triaging a whole file's failures. - Categorize each failure: test, build/compilation, validation/lint, or infrastructure.
- Diagnose - Give each failure's root cause and affected file(s)/line(s), and note if several share one root cause. See failure patterns.
- Report - Use the output format: root cause, affected files, per-failure fix + verify command, and fixable vs infrastructure. Recommend
azsdk-common-pipeline-fixerto apply fixes.
Examples
- "My pipeline build 6447834 failed, what went wrong?"
- PR comment:
@copilot Analyze the failed pipeline on this PR - "Why is my CI red? Build ID is 6455939"
Troubleshooting
- If
azsdk_analyze_pipelinereturns no data, verify the build ID is correct and the run has completed. - If
failed_pipeline_testsis empty, rely onfailed_pipeline_taskslog analysis (test-artifact upload may not be configured). - For a private/internal pipeline, the user may need to
az login. See failure patterns.
04 同仓库更多 Skills
WebPubSub Chat API 基线维护
update-chat-api
使用场景:在公共 API 发生变更后,更新、导出、刷新或验证 Azure.Messaging.WebPubSub.Chat 的公共 API 基线。
Azure 搜索文档 SDK 端到端工作流
search-documents
Azure.Search.Documents SDK 的端到端(E2E)工作流技能(TypeSpec + 大量定制)。处理完整发布周期和部分更新:SHA 更新;代码生成;构建;定制修复;ServiceVersion 同步;测试;API 导出;变更日志;版本;示例;格式化;发布元数据。使用场景:为 Azure.Search.Documents 创建新包版本;重新生成 Azure.Search.Documents;修复 Azure.Search.Documents 错误;发布 Azure.Search.Documents;更新 Azure.Search.Documents 规范。不适用于 Azure.ResourceManager.Search 或 Azure.Provisioning.Search。
Search.Documents 版本差异检测
search-documents-version-diff
将当前 Azure.Search.Documents 公共 API 接口与之前发布的版本进行对比,检测因 TypeSpec 变更后 SDK 自定义层未向上传播而导致的预览版之间的回归。当用户要求比较 Azure.Search.Documents 各 beta 版本、确认 Azure.Search.Documents 预览功能未丢失、审计 Azure.Search.Documents 各版本间的回归、对 Azure.Search.Documents 发布分支进行健全性检查,或排查 Azure.Search.Documents 预览功能缺失时使用——即使用户没有提到“diff”一词。专门捕获丢失的包装器(QueryAnswer/QueryCaption/QueryRewrites 类型)、丢失的 SearchOptions 聚合重定向器、`@@access("internal")` 翻转、被直接删除而非通过条件门控的 `#if AZURE_SEARCH_PREVIEW` 代码块、丢失的 `ServiceVersion` 枚举值,以及便捷方法降级为协议方法等问题。
Search.Documents TypeSpec 一致性验证
search-documents-typespec-validation
面向 Azure.Search.Documents SDK 的 TypeSpec 验证技能。针对任意固定 commit 的 TypeSpec 定义,对全部操作、全部模型、全部枚举和全部属性执行完整验证。适用于任何 API 版本。生成完整的差距报告:缺失功能、多余功能、命名不匹配以及建议的修复位置。适用场景:“根据 TypeSpec 验证 Azure.Search.Documents SDK”、“检测 Azure.Search.Documents TypeSpec 功能差距”、“Azure.Search.Documents SDK 缺少哪些功能”、“将 Azure.Search.Documents SDK 与规范对比”、“对 Azure.Search.Documents 进行完整的规范覆盖审计”。请勿用于版本间差异对比或回归检测——此类情况请使用 search-documents-version-diff。
掷骰子技能文件测试
test-skill_file
使用随机数生成器掷骰子。
随机数掷骰子
roll-dice
使用随机数生成器掷骰子。当用户要求掷单个骰子(d6、d20 等)、掷骰子或生成随机掷骰结果时使用。