Repository navigation
Add a skill for triaging GitHub Actions CI failures - #1796
david-tingdahl-nvidia wants to merge 1 commit into
Conversation
Signed-off-by: David Tingdahl <[email protected]>
[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
SummaryAdds a CI-triage skill and its discovery symlink.
Reviews (1) · Last reviewed commit: "Add a skill for reading GitHub Actions C..." · Reviewed by Greptile |
| `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. |
There was a problem hiding this comment.
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(","))' |
There was a problem hiding this comment.
🟡 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?
| 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 |
There was a problem hiding this comment.
🟡 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?
| 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`, |
There was a problem hiding this comment.
🔵 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.
| 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 *) |
There was a problem hiding this comment.
🔵 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.
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds a Findings🟡 Warning: skills/developer/triage-ci-failures/SKILL.md:12: A job that hits its Test Coverage and CI CostThe new 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. VerdictMinor fixes needed |
Add the
triage-ci-failuresskill for finding the real cause of failing GitHub Actions runs. Agents often miss the real reason due to truncation of large logsWhy this change?
gh run view --log-failedtruncates 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?
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..agents/skills/triage-ci-failures.