Skip to content

Add a skill for triaging GitHub Actions CI failures - #1796

Open
david-tingdahl-nvidia wants to merge 1 commit into
mainfrom
dtingdahl/docs/ci-log-reading-skill
Open

david-tingdahl-nvidia wants to merge 1 commit into
mainfrom
dtingdahl/docs/ci-log-reading-skill

Conversation

@david-tingdahl-nvidia

@david-tingdahl-nvidia david-tingdahl-nvidia commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Add the triage-ci-failures skill for finding the real cause of failing GitHub Actions runs. Agents often miss the real reason due to truncation of large logs

Why this change?

gh run view --log-failed truncates the large test step, so the log ends mid-test and looks like a hang. Agents then misdiagnose CI failures as timeouts, or blame a PR for a failure that comes from main.

What changes?

  • Add skills/developer/triage-ci-failures/SKILL.md: job and step triage, downloading the raw log zip, finding the failure from the pytest summary, noise to ignore, and telling PR failures from a broken main.
  • Add the discovery symlink .agents/skills/triage-ci-failures.

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · The PR appears safe to merge, with a non-blocking correction to its advice about cache differences.RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The PR changes how agents investigate this repository's CI failures.

The PR appears safe to merge, with a non-blocking correction to its advice about cache differences.

Findings

  1. P2 Useful cache evidence gets ignored ▶

Summary

Adds a CI-triage skill and its discovery symlink.

  • Agents can follow a dedicated guide to trace GitHub Actions failures to their cause.

Reviews (1) · Last reviewed commit: "Add a skill for reading GitHub Actions C..." · Reviewed by Greptile

Comment on lines +50 to +51
`Failed to hardlink files`, onnxruntime device_discovery warnings, "Loading local copy of remote
asset", and Lightwheel cache hit or miss lines. Cache hit versus miss does not explain a failure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Useful cache evidence gets ignored

Cache hits and misses can explain a failure here. LightwheelSource._get_cached_or_download() skips remote calls on a hit but downloads on a miss. Nightly CI starts with a cold cache, while postmerge CI restores one. If Lightwheel is unavailable, this difference can explain why nightly fails while a push passes.

Replace the blanket dismissal with advice to check whether the failing asset needed a remote download.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

## Triage the job and step first

```bash
gh run view <id> --json jobs --jq '.jobs[]|select(.conclusion=="failure")|.name+" / "+([.steps[]|select(.conclusion=="failure")|.name]|join(","))'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Timed-out jobs end as cancelled, not failure

When a job hits its timeout-minutes, GitHub marks the job cancelled, so this filter prints nothing for a real timeout. Two recent nightly runs show this. In run 46364673185, Run tests stopped at exactly its 100-minute limit. In run 46115151763, every step passed but the job still hit the limit, so no step was marked at all. Could the filter also select cancelled? And could line 25 add that a job whose duration equals its timeout-minutes really did time out?

Suggested change
gh run view <id> --json jobs --jq '.jobs[]|select(.conclusion=="failure")|.name+" / "+([.steps[]|select(.conclusion=="failure")|.name]|join(","))'
gh run view <id> --json jobs --jq '.jobs[]|select(.conclusion=="failure" or .conclusion=="cancelled")|.name+" ("+.conclusion+") / "+([.steps[]|select(.conclusion=="failure" or .conclusion=="cancelled")|.name]|join(","))'

test fails on many unrelated PR branches and on main, main is broken.

```bash
gh run list --limit 100 --json databaseId,conclusion,event,headBranch,createdAt,headSha,workflowName

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 This list mixes the two CI workflows

Pushes and nightly runs on main start both IsaacLab Arena CI and Native uv CI, and the two disagree right now. At 4757d514, the Docker workflow passed and the uv workflow failed, and every uv run on main since 2026-11-28 failed or was cancelled. Comparing the first red run with the last green one across both workflows gives the wrong range. Could the command filter to the failing run's workflow?

Suggested change
gh run list --limit 100 --json databaseId,conclusion,event,headBranch,createdAt,headSha,workflowName
gh run list --workflow "<workflowName of the failing run>" --limit 100 --json databaseId,conclusion,event,headBranch,createdAt,headSha

Cancelled runs on main also need a closer look before they count as red or green. Some are pushes that a newer push replaced before they started, so they have no jobs. Others are nightly runs that hit a timeout.

python3 -I -c 'import sys,zipfile; zipfile.ZipFile(sys.argv[1]).extractall(sys.argv[2])' <scratch>/l.zip <scratch>/logs_<id>
```

Files are numbered per step, for example `2_Run tests.txt`, `4_Run tests with subprocess.txt`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 These files are per job, not per step

Run tests, Run tests with subprocess, Build and push Arena image, and Pre-commit are job names in ci.yml. Each top-level <n>_<job name>.txt file holds that job's full log. The zip can also contain per-step files under <job name>/, and gh run view --log reads those when they exist. It may help to add a sentence telling the agent to search the top-level files rather than the step files.

Suggested change
Files are numbered per step, for example `2_Run tests.txt`, `4_Run tests with subprocess.txt`,
Each top-level file holds one job's full log, for example `2_Run tests.txt`, `4_Run tests with subprocess.txt`,

---
name: triage-ci-failures
description: Finds the real cause of a failing GitHub Actions run of Isaac Lab-Arena CI. Use when investigating failing premerge PR runs, postmerge push runs on main, or nightly scheduled runs, when a CI log appears to end in a hang or timeout, or when deciding whether a failure comes from one PR or from a broken main. Do not use for local test runs (run-tests).
allowed-tools: Read Grep Bash(gh run list *) Bash(gh run view *) Bash(gh api repos/isaac-sim/IsaacLab-Arena/actions/runs/*) Bash(python3 -I *) Bash(unzip *) Bash(grep *) Bash(git log *)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 gh api …/actions/runs/* also allows write calls

Tools listed in allowed-tools run without a permission prompt. This pattern also matches calls like gh api repos/isaac-sim/IsaacLab-Arena/actions/runs/<id>/rerun-failed-jobs -X POST or …/<id>/logs -X DELETE. Triage only needs to download the logs. Could the rule cover just that endpoint, and could the skill say it never reruns, cancels, or deletes runs? Also, no step uses Bash(unzip *), while Bash(python3 -I *) approves any Python command. Listing only the extraction tool the skill actually uses would narrow this further.

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR adds a triage-ci-failures developer skill and its .agents/skills alias. The main advice is useful: don't trust --log-failed for the long test step, read the pytest summary instead, and check whether main is broken before blaming the PR. On today's CI runs, two steps would lead an agent to the wrong conclusion. The failing-job filter skips jobs that timed out, and the run list mixes the Docker workflow with the native uv workflow.

Findings

🟡 Warning: skills/developer/triage-ci-failures/SKILL.md:12: A job that hits its timeout-minutes ends as cancelled, not failure, so this filter prints nothing for a real timeout. This happened on recent nightly runs.
🟡 Warning: skills/developer/triage-ci-failures/SKILL.md:62: gh run list returns runs from both IsaacLab Arena CI and Native uv CI, and the two disagree on main right now. Comparing the first red run with the last green one across both workflows gives the wrong commit range.
🔵 Improvement: skills/developer/triage-ci-failures/SKILL.md:37: The top-level files in the log zip hold one log per job, not one per step.
🔵 Improvement: skills/developer/triage-ci-failures/SKILL.md:4: The gh api …/actions/runs/* rule in allowed-tools also lets write calls such as rerun, cancel, and delete run without a prompt.

Test Coverage and CI Cost

The new .agents/skills/triage-ci-failures symlink doesn't match the docs-only filter in .github/workflows/ci.yml (!docs/**, !*.md, !skills/**/*.md). Because of that, this documentation-only PR starts the image build, and once the build passes, the full GPU test jobs. The current red check has nothing to do with this change: Build and push Arena image failed in its Install git (and tools needed by hooks) apt step with exit code 100. Adding '!.agents/skills/**' to that filter would let skill-only PRs skip Docker CI. Since that's a workflow change, it belongs in its own PR.

I couldn't download raw job logs during this review, so I haven't checked the truncation figures (8.8k vs 65k+ lines) or the list of noise lines to ignore.

Verdict

Minor fixes needed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants