Analyze GitHub Actions failures and identify root causes
Investigate this GitHub Actions URL: $ARGUMENTS
Use the gh CLI to analyze this workflow run. Your investigation should:
Get basic info & identify actual failure:
Check flakiness: Check the past 10-20 runs of THE EXACT SAME failing job:
gh run list --workflow=<workflow-name> to get run IDs, then gh run view <run-id> --json jobs to check the specific job's status(if there's a pattern of failures for the specific job):
Root cause: Based on logs, history, and any breaking commit, what's the likely cause?
Check for existing fix PRs: Search for open PRs that might already address this issue:
gh pr list --state open --search "<keywords>" with relevant error messages or file namesWrite a final report with: