Skip to content
Check Build Status logo

Check Build Status

Check CI build status, PR checks, and pull request build results

SKILL.md

Full skill instructions

Check Build Status

Check GitHub Actions CI build status for the current branch, pull requests, or recent workflow runs.

Quick Status Check

# Check status for current branch's PR
gh pr checks

# Check specific PR
gh pr checks <PR_NUMBER>

# List recent workflow runs
gh run list --limit 5

Detailed Build Information

Current PR Status

# Full details on all checks for current branch
gh pr checks

# View specific PR with number
gh pr view <PR_NUMBER>
gh pr checks <PR_NUMBER>

Output shows:

  • ✓ Passing checks (green)
  • ✗ Failed checks (red)
  • ○ Pending/​running checks (yellow)

Recent Workflow Runs

# List last 10 workflow runs
gh run list --limit 10

# Filter by workflow name
gh run list --workflow="Build Firmware"

# Filter by status
gh run list --status=failure
gh run list --status=success

View Build Logs

# View summary of a specific run
gh run view <RUN_ID>

# View full logs
gh run view <RUN_ID> --log

# View logs for specific job
gh run view <RUN_ID> --log --job=<JOB_ID>

Common Build Failure Scenarios

Firmware Build Failures

Typical causes:

  • Compilation errors in C code
  • Missing header files
  • Target-specific issues (specific board configs)
  • Linker errors (flash/​RAM overflow)

How to investigate:

# Check build logs
gh run view <RUN_ID> --log | grep -i error

# Look for specific target failures
gh run view <RUN_ID> --log | grep "FAILED"

# Reproduce locally
cd inav
./​build.sh SITL  # or specific target

Configurator Build Failures

Typical causes:

  • JavaScript syntax errors
  • ESM/​CommonJS import issues
  • Missing dependencies
  • Linter/​format errors

How to investigate:

# Check build logs
gh run view <RUN_ID> --log | grep -i error

# Reproduce locally
cd inav-configurator
npm install
NODE_ENV=development npm start

Test Failures

How to investigate:

# Look for test failures in logs
gh run view <RUN_ID> --log | grep -i "test.*fail"

# Run tests locally
cd inav-configurator
npm test  # if test suite exists

Parsing Build Failures

When a build fails, look for these patterns in logs:

C Compilation Errors

error: 'variableName' undeclared
error: conflicting types for 'functionName'
error: implicit declaration of function
region 'FLASH' overflowed by XXX bytes

JavaScript Errors

SyntaxError: Unexpected token
ReferenceError: X is not defined
TypeError: Cannot read property
Error: Cannot find module

Linker Errors

undefined reference to 'functionName'
region 'FLASH' overflowed
multiple definition of 'symbolName'

Build Status Summary

Quick Visual Summary

# Create a simple status report
echo "=== Current Build Status ==="
gh pr checks | grep -E "✓|✗|○"
echo ""
echo "=== Recent Failures ==="
gh run list --status=failure --limit 5

Monitoring Specific Workflows

For INAV projects, common workflows include:

  • Firmware builds (all targets)
  • SITL builds
  • Configurator builds
  • Linter/​format checks
# Check specific workflow status
gh run list --workflow="CI" --limit 5

Fixing Build Failures

General Process

  1. Identify the failure:

    gh pr checks
    gh run view <RUN_ID> --log
    
  2. Reproduce locally:

    • Firmware: cd inav && ./​build.sh SITL
    • Configurator: cd inav-configurator && NODE_ENV=development npm start
  3. Fix the issue:

    • Edit code to resolve the error
    • Test locally to verify fix
  4. Commit and push:

    git add <files>
    git commit -m "Fix: <describe the fix>"
    git push
    
  5. Verify fix:

    # Wait for CI to run, then check
    gh run list --limit 1
    gh run view <NEW_RUN_ID>
    

Re-running Failed Builds

Sometimes builds fail due to transient issues (network, runner problems):

# Re-run a failed workflow
gh run rerun <RUN_ID>

# Re-run only failed jobs
gh run rerun <RUN_ID> --failed

Example Investigations

Investigating PR Build Failure

# Scenario: PR #2434 has failing builds
gh pr checks 2434
gh pr view 2434

# Get the failed run ID
gh run list --limit 5

# View the failure details
gh run view <RUN_ID> --log | grep -i error

# Check what changed in the PR
gh pr diff 2434

# Reproduce locally
cd inav
./​build.sh SITL

Monitoring All Builds

# Quick status of everything
echo "PR Checks:"
gh pr checks
echo ""
echo "Recent Runs:"
gh run list --limit 3
echo ""
echo "Recent Failures:"
gh run list --status=failure --limit 3

Resources

  • GitHub CLI docs: gh run --help, gh pr --help
  • Build failure projects: See claude/​projects/​investigate-pr*/ for examples
  • CI configuration: .github/​workflows/ in each repository

Related Skills

  • pr-review - Review PRs (uses check-builds to verify CI status)
  • create-pr - Create PRs (use check-builds after PR creation)
  • git-workflow - Git operations (often precedes build checks)
  • finish-task - Complete tasks (verify builds pass before finishing)

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View