binlog-failure-analysis
Binlog Failure Analysis (reuse AzDO binlog, don't rebuild)
Analyze a failed AzDO PR build by reading the binlog that build already produced, not by re-running the local build (./build.sh -bl or equivalent) on a GitHub Actions runner. This is the AI-build-failure-analyst pattern: it makes the analyst run cheap enough to be turned on for every failing PR sync.
🛑 NEVER use
gh pr review --approveor--request-changes. Only--commentis allowed. Approval and blocking are human-only actions.
Workflow: gate on check_run: completed → resolve PR + build id → download AzDO artifact → ask the binlog MCP server for the build overview, errors, and warnings (drilling into root-cause diagnostics or property-value tracing when the basics aren't enough) → group symptoms by root cause → post a single summary comment → optionally attach ≤10 inline suggestion blocks. The agent drives the analysis; tools provide the data.
When to use
- A GitHub PR check from app slug
azure-pipelines(or the repo's AzDO check slug) transitions tofailure. - The pipeline publishes a binlog artifact (arcade-onboarded repos do this via
eng/common/core-templates/steps/publish-logs.yml; arbitrary AzDO pipelines may not). - You want a structured per-PR comment with grouped root causes and concrete
suggestionblocks — not just a link to the raw log.