Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add binlog-analysis skill (build-failure triage via binlog-mcp)#19957

Merged
T-Gro merged 3 commits into
dotnet:mainfrom
0101:binlog-analysis-skill
Jun 17, 2026
Merged

Add binlog-analysis skill (build-failure triage via binlog-mcp)#19957
T-Gro merged 3 commits into
dotnet:mainfrom
0101:binlog-analysis-skill

Conversation

@0101

@0101 0101 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What

A binlog-analysis agent skill that turns a failed build's MSBuild binary log into root causes:

  • Fetch the binlog — the newest local artifacts/log/*.binlog, or the published artifact of a failed fsharp-ci Azure DevOps PR build (by PR number or build id).
  • Analyze it live via the binlog-mcp MCP server (Microsoft.AITools.BinlogMcp): build overview, structured errors, root-cause diagnosis, and MSBuild target/task timings.

It no-ops on test / CheckCodeFormatting failures, where a build binlog has no errors.

Changes

  • .github/skills/binlog-analysis/SKILL.md + scripts/Get-Binlog.ps1 (resolves/downloads the binlog and prints its path; analysis is delegated to the MCP server).
  • .config/dotnet-tools.json — pin Microsoft.AITools.BinlogMcp so dotnet tool restore provisions the MCP server.
  • Reference the skill from existing build-failure entry points: copilot-instructions.md, pr-build-status, compiler-perf-investigator, hypothesis-driven-debugging.
  • Add a missing name: field to .github/agents/agentic-workflows.agent.md — a pre-existing gap the skill-validator flags once this PR touches .github/.

Validation

Ran the MCP tools (binlog_overview / binlog_diagnose / binlog_errors) against real fsharp-ci binlogs, and smoke-tested the fetch script for local paths and Azure DevOps download.

Fetches a build's MSBuild binary log (local build, or a failed fsharp-ci
Azure DevOps PR build) and analyzes it live via the binlog-mcp MCP server
(Microsoft.AITools.BinlogMcp): structured errors, root-cause diagnosis, and
an MSBuild perf X-ray.

- .github/skills/binlog-analysis/: SKILL.md + scripts/Get-Binlog.ps1 (acquisition;
  analysis delegated to the MCP).
- .config/dotnet-tools.json: pin Microsoft.AITools.BinlogMcp so `dotnet tool
  restore` provisions the MCP server (restores from the existing dnceng feed).
- Point existing build-failure entry points at the skill.
@github-actions

Copy link
Copy Markdown
Contributor

✅ No release notes required

The skill-validator (.github/skills CI) requires a 'name' frontmatter field on every agent. agentic-workflows.agent.md lacked one, failing the 'Validate skills and agents' check.
@github-actions github-actions Bot added ⚠️ Affects-Agent-Config Tooling check: PR modifies AI agent instructions or workflows ⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure ⚠️ Affects-Restore Tooling check: PR touches NuGet packages or feeds labels Jun 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Agent-Config, Affects-Build-Infra, Affects-Restore
Affects-Agent-Config: modifies copilot-instructions, agent files, adds new skill
Affects-Build-Infra: adds dotnet tool (microsoft.aitools.binlogmcp) to manifest
Affects-Restore: new tool entry in dotnet-tools.json changes restore output

Generated by PR Tooling Safety Check · opus46 5.9M ·

1.0.0 is the canonical public release of Microsoft.AITools.BinlogMcp; it restores from the existing dnceng dotnet-tools feed (verified) and has the same tool surface. No NuGet.config change.
@github-project-automation github-project-automation Bot moved this from New to In Progress in F# Compiler and Tooling Jun 17, 2026
@T-Gro T-Gro enabled auto-merge (squash) June 17, 2026 08:38
@T-Gro T-Gro merged commit eb5f50d into dotnet:main Jun 17, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in F# Compiler and Tooling Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Agent-Config Tooling check: PR modifies AI agent instructions or workflows ⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure ⚠️ Affects-Restore Tooling check: PR touches NuGet packages or feeds

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants