openshift-eng/ai-helpers/fetch-prow-job-runs
Claude Code and agent skill by openshift-eng/ai-helpers
- community
Checking that the SKILL.md file is still in the repository.
List Prow job runs from the Sippy API using its real filter syntax — find run IDs by job name, variant, result, or time window
Install
npx vskill@latest install openshift-eng/ai-helpers/fetch-prow-job-runsSKILL.md
The same SKILL.md was published earlier as openshift-eng/ai-helpers/fetch-prow-job-runs.
Fetch Prow Job Runs
Sippy Symptoms are known-failure signatures for OpenShift CI. A symptom is a rule made of a file pattern (a glob over a CI job run's artifact files, e.g. **/build-log.txt) and a matcher (string = substring, regex = regular expression, none = file merely exists, cel = a compound CEL expression over other label names). When a symptom matches a job run's artifacts, Sippy applies one or more Labels — human-readable tags like InfraFailure — to that run. Labels appear in the Sippy UI and Spyglass and help everyone quickly recognize known failure modes without re-debugging them. You do not need any prior Sippy knowledge to use this skill.
This skill finds Prow job runs (and their prow_id values) via the Sippy /api/jobs/runs endpoint. It exists because this API does not accept ad-hoc query parameters like ?job_name= or ?period= — those do not exist and will be silently ignored or rejected. Filtering is done through a JSON filter parameter with a fixed set of column fields and operators (listed below), and this skill's script builds that JSON with verified fields and operators so you never have to guess.
When to Use This Skill
Use this skill when you need to:
- Find run IDs (
prow_id) to feed intoreevaluate-job-runsafter creating or updating a symptom - Check how widespread a failure is (e.g. all failed runs of a job family in the last day)
- List recent runs matching a platform/network/etc. variant
- Get the Prow URL of recent runs of a given job
Prerequisites
- Network Access: The Sippy API must be accessible at
https://sippy.dptools.openshift.org
- No authentication required
- Python 3: Python 3.6 or later, standard library only
Implementation Steps
Invoke the script with flags matching the question:
Flags:
--release <release>(required): OpenShift release, e.g.5.0--job-contains <substr>(repeatable): job name must contain each substring--variant <Key:Value>(repeatable): run must have each variant entry, e.g.Platform:metal--result <code>: overall result code (Ssuccess,Ffailure,ninfra failure — lowercase n)--since-hours <n>: only runs newer than N hours ago--filter-json <raw>: escape hatch — raw JSON array of extra filter items merged with the generated ones--limit <n>: max rows (default 100)--ids-only: print justprow_idper line (pipeline-friendly)--format {json,summary}: output format (defaultjson)
All filter items are combined with AND.
API Details
Endpoint
No authentication required.
Filter JSON Shape
Verified Column Fields and Operators
Do NOT invent other query parameters or fields — only these are verified to work:
| columnField | operatorValue | value | |
|---|---|---|---|
name | contains | job-name substring | |
variants | has entry | Key:Value, e.g. Platform:metal | |
timestamp | > / < | RFC 3339 UTC timestamp, e.g. 2026-10-14T12:00:00Z | |
overall_result | equals | S (success), F (failure), n (infra failure — lowercase) |
An unknown columnField yields HTTP 400 with a "column does not exist" message; the script surfaces that message verbatim.
Response Row Fields
{"rows": [...]}; each row has prow_id (string), job, url, variants[], overall_result, failed, succeeded, infrastructure_failure, test_failures, timestamp (epoch millis), cluster.
Error Handling
Case 1: Unknown Column (HTTP 400)
Use only the column fields in the table above. Exits 1.
Case 2: Network Error
Exits 1. Check connectivity to sippy.dptools.openshift.org.
Case 3: Empty Results
No matching runs prints [] (JSON), Total: 0 (summary), or nothing (--ids-only) and exits 0 — not an error.
Exit Codes:
0: Success (including empty results)1: Error (HTTP error, network error, invalid--filter-json)
Examples
Example 1: Metal Runs in the Last 24 Hours
Expected Output (excerpt):
Example 2: Failed Runs of a Job Family
Example 3: Feed Run IDs to Reevaluation
Notes
- Results are sorted newest-first (
sortField=timestamp&sort=desc) timestampfilter values must be RFC 3339 UTC strings (the script computes this for--since-hours)- Repeatable flags AND together; there is no OR support in this script (use
--filter-jsonif you need custom items)
See Also
- Related Skill:
reevaluate-job-runs(re-run symptom detection on the run IDs found here) - Related Skill:
diagnose-job-run-symptoms(explain which symptoms/labels apply to a run) - Related Skill:
list-symptoms(browse the symptom/label catalog) - Related Skill:
fetch-regression-details(another source of job run IDs, from regressions)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ci/skills/fetch-prow-job-runs/SKILL.md
Popularity
- Repository stars
- 114
- Repository forks
- 307
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openshift-eng/ai-helpers/fetch-prow-job-runs)