Investigates Azure DevOps pipeline failures beyond Helix — build errors, infra tooling crashes, validation test flakiness, artifact cascade failures. Analyzes AzDO build timelines, task logs, and failure frequency/trends.
Ships in dotnet-helix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dotnet-helix:pipeline-investigationfrom dotnet-helix
npx claudepluginhub dotnet/arcade-skills --plugin dotnet-helixInvestigate AzDO pipeline failures that aren't Helix test failures — build errors, infrastructure tooling crashes, validation test flakiness, and artifact cascade failures. Complements helix-investigation by covering everything else in the pipeline.
exit code null, 1ES PT errors, or MSBuild failuresThis skill produces two distinct report types. Match the format to the request:
Follow references/health-assessment-format.md. Output MUST include these two tables:
Failed Builds Table — every failed build, classified and investigated: | Build | Type | Source | Failure Detail |
gh pr view)target ← source-repo. Other PR → short description.Summary Table — pass/fail breakdown by build type: | Type | Completed | ✅ Pass | ❌ Fail | Pass Rate |
Failure Trends Table (conditional — include when 3+ builds in scope and at least one fatal pattern recurs; cap at top 5): | Pattern | Hits | Window | Status |
Non-Fatal Issues (conditional, placed last): recurring warnings and continueOnError failures that did not fail any build, each marked ℹ️ Non-fatal. Never mix these into tables 1–3 or count them in pass/fail rates.
See the reference for build classification rules, branch filtering, and codeflow analysis methodology.
Save the report: After presenting the health assessment, save it to reviews/pipeline-health-<slug>-YYYY-MM-DD-HHMM.md in the repo, where <slug> identifies the pipeline or scope (e.g., unified-build, runtime-ci). Include the timestamp to ensure uniqueness across multiple investigations per day. Include a Methodology section at the end documenting data sources and classification approach.
Use Step 7's numbered format: failure category, frequency, root cause, affected branches, owner, existing issues, recommended action.
hlx server in this dotnet-helix pluginbinlog namespace) for analyzing MSBuild binary logs from build artifacts via Microsoft.AITools.BinlogMcp. This server ships in the separate dotnet-binlog plugin — install it alongside dotnet-helix when a build failure needs binlog drill-down. Without it, the AzDO timeline/log steps still work; only the binary-log analysis in the binlog section is unavailable.az account get-access-token or azureauth ado token for authenticated REST API access to dnceng/internalcurl for downloading task logs and build artifactsgh CLI for searching related issues and source codeThe dnceng/internal project requires authentication. Two methods:
# Method 1: Azure CLI (preferred — works in most environments)
TOKEN=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query accessToken -o tsv)
# Method 2: azureauth tool
TOKEN=$(azureauth ado token --output token --prompt-hint "copilot-cli")
# Usage
curl -s -H "Authorization: Bearer $TOKEN" "https://dev.azure.com/dnceng/internal/_apis/build/builds/{buildId}/timeline?api-version=7.1"
⚠️ Tokens expire. Re-acquire if you get a 401 or redirect to a sign-in page. ⚠️ AzDO MCP tools do NOT work against
dnceng/internal. Use curl with Bearer token for all internal queries.
Given a build ID or URL, query the timeline to find all failed records:
https://dev.azure.com/{org}/{project}/_apis/build/builds/{buildId}/timeline?api-version=7.1
Filter records by result == "failed" or result == "succeededWithIssues", with type == "Task". Don't skip succeededWithIssues — these contain real problems (signing validation errors, Component Governance warnings) that didn't block the overall job. For health assessments, also include builds with overall result partiallySucceeded.
Classify every issue as fatal or non-fatal before reporting it. An issue is fatal only if it caused its job to fail: the task result == "failed" and its parent Job record result == "failed" (follow parentId). Everything else is non-fatal: succeededWithIssues tasks, failed tasks whose job still succeeded (continueOnError: true), and warning-level issues. A non-fatal issue that appears in a failed build is still non-fatal. It is not that build's root cause. See Fatal vs Non-Fatal.
Each failed or warning task has:
| Pattern | Category | Owner |
|---|---|---|
Binary Analysis Scan task, exit code null | 1ES infra tooling crash | 1ES PT team |
MSB3073 / NetAnalyzers.Package.csproj error | Build error | Source code / SDK |
Validate installer packages — expected vs actual package list mismatch | Installer validation regex | dotnet/installer |
Run Tests with SourcelinkTests.VerifySourcelinks | Sourcelink validation | dotnet/dotnet |
Run Tests with The task has timed out across many SB_*_Validation_* legs | Run Tests timeout epidemic | dotnet/dotnet |
Run Tests with locale test failure (e.g., tr-TR) | Scenario test bug | dotnet/templating |
Build with IBCMerge / PGO error in Windows_Pgo_* | PGO optimization failure | dotnet/runtime |
Download Previous Build with "Artifact not found" | Artifact cascade failure | Prior build failed first |
Build with curl / tar / download failure (exit code 2, "not recoverable") | External resource fetch failure | Retry first; if persistent, check URL/version |
Build with npm ci ETIMEDOUT / ECONNREFUSED | npm network timeout | Transient; shell retry wrapper needed |
Build task with compilation errors | Source code build break | Varies by component |
Crossgen.targets with exit code 57005 (0xDEAD) | crossgen2 fatal crash | dotnet/runtime (area-crossgen2-coreclr) |
ESRP MacSignFailed / FailDoNotRetry / notarization errors | Signing/notarization failure | dotnet/sdk or ESRP team |
exit code null on cross-compilation legs in containers | Container OOM kill | Infrastructure — pool/container config |
Build start == finish, HTTP 204 timeline, validationResults has errors | YAML pre-flight rejection | PR author — pipeline YAML invalid |
Routing: AzDO tests vs Helix tests. If the test runs directly as an AzDO task (e.g.,
Run TestsinSB_*_Validation_*legs — SourcelinkTests, scenario tests), it's pipeline-investigation. If the test is submitted to Helix (has a Helix job ID, work items, console logs at helix.dot.net), use helix-investigation.
TOKEN=$(azureauth ado token --output token --prompt-hint "copilot-cli")
curl -s -H "Authorization: Bearer $TOKEN" "{log_url}" > /tmp/task-{buildId}.log
Key patterns to search for:
exit code null — process terminated by signal (OOM, timeout). Check for memory-related warnings before the crash.exit code 57005 (0xDEAD) — crossgen2 fatal error. Check which assembly was being compiled. Intermittent crashes need crash dumps for diagnosis.[ERROR] / ##[error] — explicit error messages from the task[WARNING] floods — excessive warnings (e.g., 1000+ hardlink failures) indicate resource exhaustionMSB3073 (command failed), NETSDK* (SDK errors), NU1105 (invalid target framework — often transient forward flow)MacSignFailed / FailDoNotRetry — ESRP signing rejection. FailDoNotRetry means deterministic content failure, not transient.ETIMEDOUT / ECONNREFUSED — TCP-level network failures in npm/curl that aren't retried by defaultQuery failed builds over a time range and count how many hit the same failure:
# Get failed builds for a pipeline definition
curl -s -H "Authorization: Bearer $TOKEN" \
"https://dev.azure.com/{org}/{project}/_apis/build/builds?definitions={defId}&resultFilter=failed&minTime={iso8601}&$top=200&api-version=7.1"
💡 Rolling builds give cleaner signal. Add
&reasonFilter=scheduleto filter to scheduled builds only. PR builds include broken branches that inflate failure counts and obscure systemic trends.
For each build, check its timeline for the same failure pattern. Track in a SQL table:
CREATE TABLE pipeline_failures (
build_id INT, branch TEXT, queued TEXT, failure_category TEXT,
failed_task TEXT, notes TEXT
);
Look for:
Search the relevant repo for existing issues:
gh search issues "{failure_pattern}" --repo dotnet/dotnet --limit 5
If found, check if the issue is being worked on. If not found and the failure is recurring, consider filing one.
For non-obvious failures, pull up the source code of the failing test or tool:
gh api "repos/{owner}/{repo}/contents/{path}" --jq '.content' | base64 -d
Look for:
Parallel.ForEach without MaxDegreeOfParallelismWhen task logs don't reveal enough, download the build's binlog artifacts for detailed MSBuild analysis:
# List build artifacts to find binlogs
curl -s -H "Authorization: Bearer $TOKEN" \
"https://dev.azure.com/{org}/{project}/_apis/build/builds/{buildId}/artifacts?api-version=7.1"
# Download the artifact zip
curl -s -H "Authorization: Bearer $TOKEN" -o /tmp/logs.zip "{downloadUrl}"
unzip -o /tmp/logs.zip "*/Build.binlog" -d /tmp/binlogs/
Then use the binlog MCP tools (Microsoft.AITools.BinlogMcp, wired under the binlog MCP namespace). Call tools/list on the binlog namespace first if you're unsure which capabilities your server version exposes — names below are typical for Microsoft.AITools.BinlogMcp:
binlog_overview){code, message, file, line, column, projectFile, targetName, taskName} per row (typically binlog_errors / binlog_warnings)MacSignFailed or crossgen2 (typically binlog_search, same StructuredLog-Viewer query syntax)Command, RAR's Assemblies/AppConfigFile, etc. (typically binlog_task_details)binlog_tasks_in_target)binlog_diagnose; not present on older servers)binlog_explain_property; newer servers only)💡 Binlogs capture the full MSBuild execution including command lines, environment variables, and interleaved output that task logs lose. Essential for signing, crossgen2, and SBRP failures.
For health assessments, use the Output Formats section above instead.
Provide:
When a build leg fails, downstream legs that depend on its artifacts will also fail with "Artifact not found." This creates a cascade:
SB_CentOS_Build (fails: NetAnalyzers error)
→ SB_CentOS_Validation (fails: missing artifacts)
→ SB_Fedora_Offline (fails: missing artifacts)
Don't investigate the cascade — find the root failure. Look for the first failed task chronologically, or filter out "Download Previous Build" failures to find the real cause.
For detailed investigation techniques for each failure category in the table above, see references/investigation-techniques.md. Covers: ESRP signing/notarization, container OOM, crossgen2 crashes, YAML pre-flight rejections, and network transient failures.
When a fix is merged, verify it's tested by checking builds queued after the merge — not builds that finished after it.
Always include in-progress and not-started builds, not just completed ones. The AzDO builds API requires explicit statusFilter to return active builds.
⚠️ The AzDO API rejects combining
completedwithinProgress/notStartedin a singlestatusFilter. You must make separate calls and merge the results:
# Completed builds
curl -s -H "Authorization: Bearer $TOKEN" \
"https://dev.azure.com/{org}/{project}/_apis/build/builds?definitions={defId}&branchName=refs/heads/{branch}&statusFilter=completed&api-version=7.1"
# Active builds (in-progress and queued)
curl -s -H "Authorization: Bearer $TOKEN" \
"https://dev.azure.com/{org}/{project}/_apis/build/builds?definitions={defId}&branchName=refs/heads/{branch}&statusFilter=inProgress,notStarted&api-version=7.1"
If you only query completed builds, you'll miss active builds that are currently testing the fix and incorrectly conclude "not tested yet."
Fixes often need backporting to multiple release branches. For each branch:
queueTime to the merge time⚠️ batchedCI builds pick up source at queue time. A build queued before a PR merges runs against old source, even if it finishes hours later.
🚨 Don't confuse cascade failures with root causes. "Missing artifacts" means a prior leg failed — find that leg.
🚨 Don't assume
exit code nullis a code bug. It usually means the process was terminated externally (OOM, signal). Look for resource exhaustion in the log. In containers, check memory limits.
🚨 Don't investigate all 100+ failed builds. Sample 3-5 spread across the time range to confirm the pattern, then count occurrences.
🚨 Don't assume ESRP
FailDoNotRetryis transient. It means the binary content is deterministically invalid. Investigate the source commits, don't retry the build.
🚨 Don't skip infrastructure failures. Container OOM, agent timeouts, signing failures, and network issues deserve the same depth of investigation as code failures. They often have actionable fixes (memory tuning, retry wrappers, pool changes).
Never hardcode definition IDs — they vary across projects and can change. Discover them at runtime:
# Public pipelines (AzDO MCP tools work here too)
curl -s "https://dev.azure.com/dnceng-public/public/_apis/build/definitions?name=dotnet-unified-build&api-version=7.1" | jq '.value[] | {id, name, project: .project.name}'
# Internal pipelines (requires auth)
TOKEN=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 --query accessToken -o tsv)
curl -s -H "Authorization: Bearer $TOKEN" \
"https://dev.azure.com/dnceng/internal/_apis/build/definitions?name=dotnet-unified-build&api-version=7.1" \
| jq '.value[] | {id, name, project: .project.name}'
If querying internal fails (401/redirect), fall back to public-only analysis and note the limitation in the report.
Required format for pipeline health assessments. See Output Formats section above for routing, and references/health-assessment-format.md for the complete specification including build classification rules, branch filtering, and codeflow analysis methodology.
4 skills in this plugin
/ci-analysisAnalyze CI build and test status from Azure DevOps and Helix for dotnet repository PRs. Use when checking CI status, investigating failures, determining if a PR is ready to merge, or given URLs containing dev.azure.com or helix.dot.net. Also use when asked "why is CI red", "test failures", "retry CI", "rerun tests", "is CI green", "build failed", "checks failing", or "flaky tests". DO NOT USE FOR: investigating stale codeflow PRs or dependency update health, tracing whether a commit has flowed from one repo to another, reviewing code changes for correctness or style.
/ci-crash-dumpDownload and debug crash dumps from CI test failures in dotnet repositories. Use when a CI test crashed (not just failed), when the user wants to debug a crash dump from a PR or build, or when asked "debug dump", "download dump", "crash dump from CI", "test crashed", "analyze crash in PR", or "why did the test crash". DO NOT USE FOR: test failures that are not crashes (use ci-analysis), build failures, performance analysis, or analyzing dumps you already have locally.
/helix-investigationDeep-dive investigation of Helix test failures starting from AzDO build legs. USE FOR: investigating recurring Helix test failures, downloading and analyzing Helix console logs, comparing passing vs failing runs, identifying machine-specific issues, XHarness timeout analysis, Android emulator DEVICE_NOT_FOUND errors, bulk failure aggregation across legs, "why does this test fail on some machines", "top 5 failing tests in the last 2 days", "download helix logs for build X", "compare passing and failing helix runs", "what are the most common failures". DO NOT USE FOR: high-level CI status checks (use ci-analysis), codeflow PRs (use flow-analysis). INVOKES: Helix and AzDO MCP tools, curl, gh CLI.
Other plugins' skills for the same job