openshift-eng/ai-helpers/diagnose-job-run-symptoms
Claude Code and agent skill by openshift-eng/ai-helpers
- community
Checking that the SKILL.md file is still in the repository.
Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL
Install
npx vskill@latest install openshift-eng/ai-helpers/diagnose-job-run-symptomsSKILL.md
The same SKILL.md was published earlier as openshift-eng/ai-helpers/diagnose-job-run-symptoms.
Diagnose Job Run Symptoms
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 takes a Prow job run URL and explains which symptoms matched the run and what each applied label means — including the matched file and text.
When to Use This Skill
Use this skill when:
- A CI job failed and you want to know if it is a known failure mode before debugging it from scratch
- You are about to create a new symptom and want to check what already matched the run (see
manage-symptoms) - You want a plain-language explanation of the labels shown on a run in the Sippy UI or Spyglass
Prerequisites
- Default mode (already-applied labels): only network access to public GCS (
https://storage.googleapis.com) and the public Sippy API (https://sippy.dptools.openshift.org) — no authentication required.
- Deep mode (
--deep, server-side dry-run rescan): a Bearer token from the DPCR cluster.
- Must be logged into the DPCR cluster via
oc login - Cluster API:
https://api.cr.j7t7.p1.openshiftapps.com:6443 - Use the
oc-authskill to obtain the token (see the token-acquisition snippet inreevaluate-job-runs/SKILL.md); preferexport SIPPY_TOKEN=...over--token— argv is visible in process listings
- Python 3: Python 3.6 or later, standard library only.
Implementation Steps
Step 1: Default mode — explain already-applied labels
For each applied label the summary output shows: the label title and explanation, links to associated Jira issues, the symptom that applied it (summary, matcher type, file pattern, match string), and the actual matched file and matched text from the run's artifacts.
Step 2: Deep mode — server-side rescan
Use when the run predates the current symptom set or shows no labels. This asks Sippy to re-scan the run with dry_run: true — it writes nothing and reports what would match now:
Note: deep mode reports label IDs only — the matched file/text detail is only available in default mode (it comes from the GCS artifacts). Deep mode submits an asynchronous batch, polls its same-origin status link through pending, processing, and running, and reports results after the batch reaches complete. A failed or cancelled batch is an error.
Step 3: Nothing matched?
If default mode finds no labels, first suggest --deep: the run may simply never have been scanned, and default mode cannot distinguish that from "scanned, nothing matched". If a deep rescan also finds nothing and the user has identified the failure cause, guide them to the manage-symptoms skill to create a new symptom (and reevaluate-job-runs to apply it retroactively to past runs).
Arguments:
prow_url: Prow job run URL (https://prow.ci.openshift.org/view/gs/..., positional, required)
Options:
--deep: Server-side dry-run rescan via the reevaluate API (requires a token)--token <token>: Bearer token from the oc-auth skill (only needed with--deep; optional if theSIPPY_TOKENenvironment variable is set, which is preferred — argv is visible in process listings;--tokentakes precedence)--format json|summary: Output format (default: summary)
API Details
Default mode uses the public GCS JSON API (no auth):
- List label artifacts:
GET https://storage.googleapis.com/storage/v1/b/{bucket}/o?prefix={path}/artifacts/job_labels/ - Download each object:
GET https://storage.googleapis.com/storage/v1/b/{bucket}/o/{object}?alt=media
GCS `job_labels` artifact schema (verified live 2026-07): each *.json object under artifacts/job_labels/ contains one wrapped entry (a label-summary.html file is also present and skipped):
The script also cross-references GET /api/jobs/labels and GET /api/jobs/symptoms on the public Sippy API to enrich entries with current explanations and Jira associations (embedded copies are snapshots from labeling time).
Deep mode calls POST https://sippy-auth.dptools.openshift.org/api/jobs/runs/reevaluate with {"prow_job_build_ids": ["<build_id>"], "dry_run": true}. Sippy returns HTTP 202 with batch_id, requested, and links.status. The client validates that status link, polls it with authenticated GET requests, and reads labels from each matching items[].result.labels_applied. Cross-origin status URLs and HTTP redirects are rejected rather than followed with or without credentials.
Error Handling
- Bad / non-Prow URL: Must contain
/view/gs/and end in a numeric build ID (exit 1 client-side). - GCS 404 or no `job_labels` artifacts: The run may be too old (artifacts pruned) or was never scanned — suggest
--deepto rescan server-side. - No labels found: Not an error — the script prints guidance (try
--deepfirst, then create a new symptom viamanage-symptoms). - 401/403 or HTML login page in deep mode: Token missing/expired (the SSO proxy may return a login page instead of 401) — refresh via the
oc-authskill. - HTML gateway error page or non-JSON body in deep mode: Transient gateway error (likely 504) — retry later.
- Unknown or malformed batch status: Rejected as an API error instead of polling indefinitely.
- Failed or cancelled deep batch: Reported as an error (exit 1).
- Sippy API unreachable: exit 1 with a clear message.
Exit Codes:
0: Diagnosis completed (including "no labels found")1: Validation, network, or API error
See Also
- Related Skill:
list-symptoms(browse/search the symptom and label catalogs) - Related Skill:
manage-symptoms(create a new symptom when nothing matched) - Related Skill:
reevaluate-job-runs(apply symptoms retroactively to past runs) - Related Skill:
oc-auth(token for deep mode) - Related Skill:
prow-job-analyze-test-failure(deeper manual failure analysis)
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/diagnose-job-run-symptoms/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/diagnose-job-run-symptoms)