ci-failure-triage
Skill663 starsChanged 6 days agoApache-2.0View on GitHub
Triage one failing CI acceptance test to a verdict: cause, evidence, route. Use when the maintainer names a test from `inv ci-report` to triage.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- HumSaw/shipwright-skillstheir own version, first seen Nov 8, 2026
- OpenSelfHosting/skillstheir own version, first seen Oct 25, 2026
- skwashd/skillstheir own version, first seen Oct 15, 2026
- n1m21n/Infinitetheir own version, first seen Oct 9, 2026
- kaeawc/auto-mobiletheir own version, first seen Oct 8, 2026
- berntpopp/clingen-linktheir own version, first seen Jul 12, 2026
Used with
Projects with it also use dependency-cve-sweep, fleet-standard-adoption and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
berntpoppSkilldependency-cve-sweep
Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.
Also in 12 projects that use this
berntpoppSkillfleet-standard-adoption
Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.
Also in 12 projects that use this
VersoXBTSkillcode-quality-review
Perform structured code reviews enforcing quality standards, naming conventions, architecture patterns, and team agreements. Use when the user says 'review this code', 'code review', 'check quality', 'review my PR', 'what's wrong with this', 'improve this code', 'review before merge', 'peer review', or 'audit this'. Also triggers on 'code quality', 'review standards', 'enforce conventions', 'tech debt check', 'lint review', or when user completes a significant code change.
Also in 12 projects that use this
Microsoft AzureSkillrelease-readiness
Complete ODIN release documentation and validation checks before declaring user-visible work complete, preparing a release, or opening the Release-to-main pull request.
Also in 14 projects that use this
SentrySkillsecurity-review
Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.
Also in 13 projects that use this
- +2 more from berntpopp
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- n1m21n/Infinite★ 318same name
- proflead/codex-skills-library★ 153same name
- kaeawc/auto-mobile★ 56same name
- IgorGanapolsky/ThumbGate★ 30same name
- berntpopp/genefoundry-router★ 6same name
- OpenSelfHosting/skills★ 2same name
- skwashd/skills★ 2same name
- berntpopp/hpo-link★ 1same name
- berntpopp/mgi-link★ 1same name
- berntpopp/stringdb-link★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- change-keywordSkill
- write-node-unit-testsSkill
- parse-rf-resultsSkill
- write-python-unit-testsSkill
- write-robot-testsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Use the mattpocock-skills:diagnosing-bugs skill.
- Distinctive: line 96
When the timing window lies entirely inside the node process (no gRPC hop), a script copying the node loop is a valid stand-in for the full …
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CI failure triage
Takes one test the maintainer chose and ends on a verdict: the cause, the evidence that proves it, and the route it takes. Triage only — the fix itself belongs to this skill only when the route says "fix on the spot".
The words below — Test Name, Group, Occurrence, Leg, Executor, Attempt, Adjacent Run, Control, Fixture Failure, Failure Scope, Configuration, Inconclusive Zero, Known Cause — mean what tools/ci_failures/GLOSSARY.md says. tools/ci_failures/README.md has every task and flag. inv ci-report and inv ci-artifact are the whole data path: every question about CI goes through them, never straight to the database.
Steps
1. Read the report
inv ci-report --test "<Test Name>" --days <n>Start with --days 7; widen when the Group is rare. A name in no Result is refused with the Test Names it may mean; use one of those. A test that ran without failing gets one line saying how often it ran. Read every Group of the test, its known_cause, where_to_look, the per-Configuration rates, and each Occurrence's Adjacent Runs, retry, log and also_failed_in_this_leg. When the Group already has a Known Cause with fixed_by set, check each Occurrence's commit with git merge-base --is-ancestor <fixed_by> <commit>, after fetching main from the remote that points at MarketSquare/robotframework-browser (exit 128 means the commit is not in this clone): a failure on a commit that contains the fix means the fix did not hold — say so first, it changes the question. Failures on commits without the fix are the old cause.
Done when you can state, with numbers: how often it fails and over what, on which Configurations, whether later Attempts pass, and which class below it most resembles.
2. Fetch artifacts, when the report is not enough
inv ci-artifact --run <run> --leg "<leg>" --attempt <attempt> --test "<Test Name>"Pass all four from the same Occurrence — a re-run Leg uploads once per Attempt, and the wrong one holds a pass. The printout names each file's role; read its markers this way:
MISSING— the test's log named the file and the artifact lacks it. Note it and carry on; the file is gone. A screenshotMISSINGis a known gap in the artifact, not evidence about this failure. No screenshot line at all is normal when the failing keyword'skeyword_kindis notlibrary— an assertion inatest/library, say — because only the Browser library takes one on failure.(not named by the test)— the likeliest node log, a guess rather than proof that it is the test's.(the Leg's shared node process)— every Executor's node lines in one log; narrow it to the test's start and end times.also:— the files not listed, counted by extension; they are all indirectory:to open.
When the failure is limited to one Configuration, fetch a Control: a Leg of the same Run where the test passed, with the same --test, and compare the same log line in both. inv ci-artifact --run <run> --test "<Test Name>" without --leg lists the candidates. Pick the Control closest to the failing Leg — the same Platform on another Install, or the same Install on another Platform.
Done when the failing Attempt's files are local, and for a failure limited to one Configuration, a Control's too.
Exit code 3 means the download failed: ask the maintainer whether to retry or continue from the report alone — they are sometimes on a limited connection.
3. Prove the cause
Use the mattpocock-skills:diagnosing-bugs skill. A cause counts as proven when it is reproduced locally or shown by an artifact; anything less is a hypothesis and the verdict says so.
4. Give the verdict
Cause, evidence, route:
| library change needed? | fixable in this context? | route |
| yes (any size) | — | GitHub issue, type Bug or Feature |
| no (test / test app) | yes | fix on the spot; the commit message carries the cause |
| no (test / test app) | no | GitHub issue, type Task |
The route follows from where the change lands, not from how big it is.
5. Agree the Known Cause, and record it once the fix is on main
A Known Cause needs all three: the cause is proven (step 3), the signature matches the Group, and it is agreed — either side proposes, the other accepts. Agree its wording now, but write it to tools/ci_failures/known_causes.json (gitignored) only once the fix is merged to main of MarketSquare/robotframework-browser. Until then, give the maintainer the draft entry and say it is recorded after the merge. The entry takes the shape of the existing ones:
test,signature— exactly as the report gives themcause— one line and a pointer to the PR that fixed it, e.g.Timing ceiling measured runner speed; fixed in #1234. The PR explains what was done, references the issue, and everything else can be traced from itreference— the issue URL, ornullfor an on-the-spot fixrecorded— the date it is writtenfixed_by— the bare commit SHA the fix has onmain, never the branch commit (inv ci-verify-fixesintools/ci_failures/README.mdsays why)fix_verified—null; triage never fills it.inv ci-verify-fixes --markdoes, once the fix has held for seven days
6. Act on the route
- Fix on the spot: make the change, run the test locally, commit with the cause and evidence in the message. Record the Known Cause once the change is on
main. - Issue: draft title and body (cause, evidence, run links) and show it to the maintainer. File only on approval:
gh issue create --type <Bug|Feature|Task>. The issue type field is what keeps Task out of the release notes, so it carries the classification on its own, with no label. Implementing it is a separate task for other skills.
Then inv ci-artifact --clean. Done when the route is acted on, the Known Cause is agreed or declined (and written, if the fix is already on main), and the artifacts are gone.
The Known Cause plus the commit message or issue is the whole record — the triage leaves no markdown write-up behind.
Classes, and where to look for each
- Shared node process state — pabot workers share one node process (
tasks.py), so module-level state innode/playwright-wrapperleaks between workers. Everything meant to be per-worker is keyed by gRPC peer ingrpc-service.ts. Seen twice:highlightDisposableCacheinplaywright-state.ts(fixed per peer in #5211) and the logger's RF context (#5260). - Timing limits in tests — a wall-clock ceiling measures runner speed, not the library. Examples:
atest/library/event_delay.py(key timings),08_Scope_Tests(#5223). - Test app —
node/dynamic-test-appis slow or wrong, not the library. Look first at thetest-app:log from step 2:responseTimeMsper request and the gaps between events. Seen once: the first/login-challengestalled 1–8 s onbatteries · windows-latest(Credentials). - Fixture failures — one broken suite setup or teardown looks like many flaky tests. The report lists the Fixture Failures of the enclosing suites, counted per Leg (Failure Scope in
tools/ci_failures/GLOSSARY.md). - Platform-only failures — read the per-Configuration rates and the Inconclusive Zeros before calling any platform healthy.
- Chromium protocol flakes — e.g.
Page.captureScreenshotrefusing the first capture ondarwin(#5237, closed as wontfix, worked around in the test).
Reproducing CI timing locally
Learnt the hard way:
- Plain CPU busy-loops (
yes > /dev/null) andtaskpolicy -c backgroundslow nothing down on Apple silicon. - Chrome's
Emulation.setCPUThrottlingRateover a CDP session does: 8–16× turned a 0.7% CI flake into 45–70% locally. Results drift between runs; compare modes within one session. - A standalone Playwright script needs
PLAYWRIGHT_BROWSERS_PATH=0to find the library's browsers (Browser/playwright.py). - When the timing window lies entirely inside the node process (no gRPC hop), a script copying the node loop is a valid stand-in for the full robot run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

