Pr Build Status

Debug Azure DevOps builds and Helix test failures for GitHub PRs

✨ The solution you've been looking for

Verified
Tested and verified by our team
23133 Stars

Retrieve Azure DevOps build information for GitHub Pull Requests, including build IDs, stage status, and failed jobs.

azure-devops github ci-cd testing build-status helix dotnet debugging
Repository

See It In Action

Interactive preview & real-world examples

Live Demo
Skill Demo Animation

AI Conversation Simulator

See how users interact with this skill

User Prompt

What's failing on PR #1234? Show me the build status and any errors.

Skill Processing

Analyzing request...

Agent Response

Complete breakdown of failed builds, compilation errors, and test failures with actionable details

Quick Start (3 Steps)

Get up and running in minutes

1

Install

claude-code skill install pr-build-status

claude-code skill install pr-build-status
2

Config

3

First Trigger

@pr-build-status help

Commands

CommandDescriptionRequired Args
@pr-build-status investigate-failed-pr-checksQuickly identify what's causing CI failures on a pull requestNone
@pr-build-status debug-helix-test-failuresDeep dive into device and integration test failures running on Helix infrastructureNone
@pr-build-status monitor-ci/cd-pipeline-healthTrack build status across multiple stages and identify bottlenecksNone

Typical Use Cases

Investigate Failed PR Checks

Quickly identify what's causing CI failures on a pull request

Debug Helix Test Failures

Deep dive into device and integration test failures running on Helix infrastructure

Monitor CI/CD Pipeline Health

Track build status across multiple stages and identify bottlenecks

Overview

PR Build Status Skill

Retrieve Azure DevOps build information for GitHub Pull Requests, including Helix test logs.

Tools Required

This skill uses bash together with pwsh (PowerShell 7+) to run the PowerShell scripts. No file editing or other tools are required.

When to Use

  • User asks about CI/CD status for a PR
  • User asks about failed checks or builds
  • User asks “what’s failing on PR #XXXXX”
  • User wants to see test results
  • User asks about Helix failures (device tests, integration tests, etc.)
  • User needs to debug why tests are failing on Helix infrastructure

Scripts

All scripts are in .github/skills/pr-build-status/scripts/

1. Get Build IDs for a PR

1pwsh .github/skills/pr-build-status/scripts/Get-PrBuildIds.ps1 -PrNumber <PR_NUMBER>

2. Get Build Status

1pwsh .github/skills/pr-build-status/scripts/Get-BuildInfo.ps1 -BuildId <BUILD_ID>
2# For failed jobs only:
3pwsh .github/skills/pr-build-status/scripts/Get-BuildInfo.ps1 -BuildId <BUILD_ID> -FailedOnly

3. Get Build Errors and Test Failures

1# Get all errors (build errors + test failures)
2pwsh .github/skills/pr-build-status/scripts/Get-BuildErrors.ps1 -BuildId <BUILD_ID>
3
4# Get only build/compilation errors
5pwsh .github/skills/pr-build-status/scripts/Get-BuildErrors.ps1 -BuildId <BUILD_ID> -ErrorsOnly
6
7# Get only test failures
8pwsh .github/skills/pr-build-status/scripts/Get-BuildErrors.ps1 -BuildId <BUILD_ID> -TestsOnly

4. Get Helix Console Logs

 1# List all Helix work items and their status
 2pwsh .github/skills/pr-build-status/scripts/Get-HelixLogs.ps1 -BuildId <BUILD_ID>
 3
 4# Filter by platform
 5pwsh .github/skills/pr-build-status/scripts/Get-HelixLogs.ps1 -BuildId <BUILD_ID> -Platform Windows
 6
 7# Show console log content for failed work items
 8pwsh .github/skills/pr-build-status/scripts/Get-HelixLogs.ps1 -BuildId <BUILD_ID> -ShowConsoleLog
 9
10# Filter by work item name and show more log lines
11pwsh .github/skills/pr-build-status/scripts/Get-HelixLogs.ps1 -BuildId <BUILD_ID> -WorkItem "*Lifecycle*" -ShowConsoleLog -TailLines 200

Workflow

Standard Build Failures

  1. Get build IDs: Get-PrBuildIds.ps1 -PrNumber XXXXX
  2. For each build, get status: Get-BuildInfo.ps1 -BuildId YYYYY -FailedOnly
  3. For failed builds, get errors: Get-BuildErrors.ps1 -BuildId YYYYY

Helix Test Failures

  1. Get build IDs: Get-PrBuildIds.ps1 -PrNumber XXXXX
  2. Find the build with Helix jobs (e.g., maui-pr-devicetests, maui-integration-tests)
  3. Get Helix logs: Get-HelixLogs.ps1 -BuildId YYYYY -ShowConsoleLog
  4. For specific platform: Get-HelixLogs.ps1 -BuildId YYYYY -Platform Windows -ShowConsoleLog

Understanding Helix Logs

Helix is the .NET engineering infrastructure that runs tests across multiple platforms and device types. Tests that run on Helix include:

  • Device tests - Run on real devices/emulators (iOS, Android, Windows, MacCatalyst)
  • Integration tests - Run on various OS configurations
  • Other distributed tests - Any test scenario that requires Helix infrastructure

When Helix tests fail:

  1. Build stage - Compiles and packages the test app/harness
  2. Helix submission - Sends the work items to Helix queues
  3. Work item execution - Helix runs the tests on target machines/devices
  4. Console log - Contains stdout/stderr from the test execution

The Get-HelixLogs.ps1 script retrieves the console logs which show:

  • Test execution output
  • Any crashes or errors
  • Infrastructure issues (timeouts, installation failures, etc.)

Common Helix Failure Patterns

Pattern in Console LogMeaning
“XHarness timeout”Test took too long, killed by infrastructure
“No test result files found”Tests never ran or process crashed
“error MT…” or “error BL…”Build/linking error (check build logs instead)
Exit code non-zeroTest failures or infrastructure issues

Prerequisites

  • gh (GitHub CLI) - authenticated
  • pwsh (PowerShell 7+)

What Users Are Saying

Real feedback from the community

Environment Matrix

Dependencies

GitHub CLI (gh) - authenticated with dotnet/maui repository access
PowerShell 7+ (pwsh)
bash

Framework Support

.NET MAUI ✓ (primary target) Azure DevOps Pipelines ✓ Helix Infrastructure ✓

Context Window

Token Usage ~3K-8K tokens depending on build complexity and log verbosity

Security & Privacy

Information

Author
dotnet
Updated
2026-01-30
Category
productivity-tools