analyze-ci-failures
Skill6.1k starsChanged 8 months agoMITView on GitHub
Analyze CI failures on Azure SDK for .NET pull requests and post a comment with how-to-fix instructions. Use when a PR has failing checks, CI is red, or someone asks for help fixing CI.
1 other project uses a version of this.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- microsoft/vcpkgtheir own version, first seen Sep 23, 2026
Who's talking about Azure/azure-sdk-for-net
- Azure/Azurite“Add support for Blob Batch operations”GitHub · Nov 26, 2019 · 33 reactions
- microsoft/DockerTools“Cannot authenticate using DefaultAzureCredential when running in container”GitHub · Jul 5, 2022 · 27 reactions
- NixOS/nixpkgs“.NET Core tooling stops working due to `ñ` in release codename and lack of HTTP headers sanitization”GitHub · May 29, 2024 · 15 reactions
- dotnet/msbuild“Using ValueTuple with PackageReference on Azure Cloud Services”GitHub · Jul 27, 2018 · 15 reactions
- A Hacker News story“DocumentDB as not a service”Hacker News · Mar 9, 2015 · 2 points
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub, Bluesky and Hacker News (9 times).
On GitHub · 4
- Nov 26, 2019Add support for Blob Batch operations — Azure/Azurite33 reactions · 15 comments
- Jul 5, 2022Cannot authenticate using DefaultAzureCredential when running in container — microsoft/DockerTools27 reactions · 12 comments
- May 29, 2024.NET Core tooling stops working due to `ñ` in release codename and lack of HTTP headers sanitization — NixOS/nixpkgs15 reactions · 29 comments
- Jul 27, 2018Using ValueTuple with PackageReference on Azure Cloud Services — dotnet/msbuild15 reactions · 8 comments
On Bluesky · 4
- Nov 27, 2024📦 Azure / azure-sdk-for-net ⭐ 5,492 (+1) 🗒 C# This repository is for active development of the Azure SDK for .NET. For consumers of the… — @github-trending.bsky.social1 likes and repost
- Oct 26, 2024📦 Azure / azure-sdk-for-net ⭐ 5,378 (+2) 🗒 C# This repository is for active development of the Azure SDK for .NET. For consumers of the… — @github-trending.bsky.social1 likes and repost
- Jun 14, 2024📦 Azure / azure-sdk-for-net ⭐ 5,089 (+2) 🗒 C# This repository is for active development of the Azure SDK for .NET. For consumers of the… — @github-trending.bsky.social1 likes and repost
- Apr 30, 2024📦 Azure / azure-sdk-for-net ⭐ 4,985 (+2) This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we… — @github-trending.bsky.social1 likes and repost
On Hacker News · 1
- Mar 9, 2015DocumentDB as not a service2 points
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- microsoft/vcpkg★ 28ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- auto-build-repairSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-releaseSkill
- azure-sdk-mgmt-pr-reviewSkill
- csharp-azure-spector-coverage-gapsSkill
- dpg-migrationSkill
- find-package-skillSkill
- mgmt-review-comment-resolutionSkill
- mitigate-breaking-changesSkill
- ownersSkill
- pre-commit-checksSkill
- provisioning-library-generationSkill
- refresh-arm-sdk-releaseSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
If that tool is unavailable, query the public Azure DevOps timeline API with curl: …
- Distinctive: line 30
Do not use GitHub Actions job-log tools for Azure DevOps checks.
- Very specific: line 39
Do not infer the root cause from the check name, because Build/Pack jobs also run changelog verification, package validation, and ApiCompat.
- Distinctive: line 40
Do not call a failure transient or flaky unless the logs contain infrastructure evidence (for example, an agent disconnect, timeout, …
- Distinctive: line 41
If logs cannot be retrieved, state that the root cause is unconfirmed and provide the failed task link.
- Distinctive: line 47
Summary table: All checks with ✅ ❌ ⏳ status
- Very specific: line 51
Before posting, check existing comments for ## 🔍 CI Failure Analysis to avoid duplicates.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: analyze-ci-failures
Analyze CI failures on an Azure SDK for .NET pull request and post a GitHub comment with actionable fix instructions.
When Invoked
Trigger phrases: "analyze CI failures", "fix CI", "why is CI failing", "help with CI", "analyze PR checks", "CI is red", "failing checks".
Inputs
The user must provide a PR number, PR URL, or pipeline build ID. If not provided, ask the user.
Workflow
1. Gather information
- Fetch PR details, check statuses, changed files, and workflow runs using GitHub MCP tools.
- Extract service directory and package name from changed file paths (
sdk/<service>/<package>/). - Identify the CI provider from each failed check URL before fetching logs:
- For an Azure DevOps URL (
dev.azure.com), extract thebuildId. Useazure-sdk-mcp:azsdk_analyze_pipelinewhen available. - If that tool is unavailable, query the public Azure DevOps timeline API with
curl:https://dev.azure.com/<organization>/<project>/_apis/build/builds/<buildId>/timeline?api-version=7.1. Inspectissueson failed task records first. If the issues are insufficient, fetch the failed record'slog.url. - For a GitHub Actions URL, use
github-mcp-server-get_job_logswithreturn_content: true.
- For an Azure DevOps URL (
- Do not use GitHub Actions job-log tools for Azure DevOps checks; their job IDs and run IDs are unrelated.
2. Identify failures
Classify each failure using the CI check mapping and log symptom patterns below. Also inspect the PR's code directly (e.g., read generated files for compile errors, check for missing scaffolding files).
Diagnosis must be based on the failed task's actual error text:
- Quote the decisive error and name the affected file or project.
- Do not infer the root cause from the check name, because
Build/Packjobs also run changelog verification, package validation, and ApiCompat. - Do not call a failure transient or flaky unless the logs contain infrastructure evidence (for example, an agent disconnect, timeout, service outage, or network failure). A documentation-only last commit does not establish flakiness because packaging validates files such as
CHANGELOG.md. - If logs cannot be retrieved, state that the root cause is unconfirmed and provide the failed task link. Do not substitute a guessed compilation or ApiCompat diagnosis.
3. Post a comment
Compose a GitHub comment with:
- Header:
## 🔍 CI Failure Analysis for PR #<number> - Summary table: All checks with ✅ ❌ ⏳ status
- Per-failure sections: Specific to THIS PR — include actual error messages, affected files, and concrete fix commands with
<service>/<package>filled in - Quick fix command at the end if applicable
Before posting, check existing comments for ## 🔍 CI Failure Analysis to avoid duplicates.
CI Check Name → Failure Mapping
These are the Azure DevOps and GitHub checks that run on SDK PRs. The check names are repo-specific and not discoverable from general knowledge.
| Check Name Pattern | What It Validates | Key Script |
Build Analyze PRBatch | Umbrella: code generation, API export, snippets, spelling, CPM, build + pack | eng/scripts/CodeChecks.ps1 |
Verify Generated Code | Generated code matches what the generator produces | eng/scripts/CodeChecks.ps1 |
Validate CPM Compliance | Central Package Management policy | eng/scripts/Validate-CpmCompliance.ps1 |
Build / Pack | Compilation + package validation, including changelog verification and ApiCompat | dotnet pack |
Analyze | Samples, READMEs, snippets compile | eng/scripts/Build-Snippets.ps1 |
check-spelling | Spell-checking changed files | cspell via eng/common/scripts/check-spelling-in-changed-files.ps1 |
verify-links | Markdown link validation | eng/common/scripts/Verify-Links.ps1 |
checkenforcer | Meta-check: waits for all other checks to pass | .github/workflows/event-processor.yml |
Log Symptom → Root Cause Mapping
These are exact strings/patterns to search for in CI logs. They are specific to this repo's scripts and not inferrable from general knowledge.
| Log symptom | Root cause | Category |
Generated code is not up to date | Generated code out of sync | Regenerate code |
git diff --exit-code failure in CodeChecks | Generated or API files changed after re-running scripts | Regenerate + export API |
error CS####: | C# compilation error | Build failure — inspect the specific error code |
Build FAILED | Compilation failure | Build failure |
MembersMustExist / TypesMustExist | ApiCompat breaking change (only surfaces in dotnet pack) | API compatibility |
changelog entry has the following sections with no content | Release-dated changelog contains empty template sections | Changelog validation |
ChangeLog verification failed / Verify-ChangeLog.ps1 | Changelog format or content validation failed; use the preceding error for the exact issue | Changelog validation |
ManagePackageVersionsCentrally / VersionOverride | CPM policy violation | CPM compliance |
cspell unknown words | Spelling error in code or API surface | Spelling |
Spell check failed | Spelling error in API surface files | Spelling |
README instruction format / NuGet\\Install-Package | README uses wrong install format (must use dotnet add package) | README validation |
verify-links broken URL | Broken markdown links | Link verification |
| Path length exceeded | File path > 210 chars | File path issue |
New Package Checklist
For PRs that introduce a new SDK package (all files are added, no prior version exists), also check for these commonly missing scaffolding files:
CHANGELOG.mdREADME.mdDirectory.Build.props(must import parent props)ci.mgmt.yml(for management-plane) or CI pipeline configapi/*.cs(public API surface listings — generated viaExport-API.ps1)assets.json(test recording assets)
Without ci.mgmt.yml, the Azure DevOps CI pipeline won't trigger — this is a common reason for checkenforcer staying permanently pending.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

