/ci:diagnose-job-run-symptomsfrom ci
Explains which Sippy Symptoms and failure Labels apply to a Prow CI job run given only the Prow URL. Helps identify known failure modes without re-debugging.
Ships in ci. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Use this skill when:
manage-symptoms)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.
oc loginhttps://api.cr.j7t7.p1.openshiftapps.com:6443oc-auth skill to obtain the token (see the token-acquisition snippet in reevaluate-job-runs/SKILL.md); prefer export SIPPY_TOKEN=... over --token — argv is visible in process listingsPython 3: Python 3.6 or later, standard library only.
python3 plugins/ci/skills/diagnose-job-run-symptoms/diagnose_job_run.py \
"https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/<job>/<build_id>"
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.
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:
python3 plugins/ci/skills/diagnose-job-run-symptoms/diagnose_job_run.py \
"<prow_url>" --deep
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.
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 the SIPPY_TOKEN environment variable is set, which is preferred — argv is visible in process listings; --token takes precedence)--format json|summary: Output format (default: summary)Default mode uses the public GCS JSON API (no auth):
GET https://storage.googleapis.com/storage/v1/b/{bucket}/o?prefix={path}/artifacts/job_labels/GET https://storage.googleapis.com/storage/v1/b/{bucket}/o/{object}?alt=mediaGCS 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):
{
"symptom_label_v1": {
"symptom": {"id": "...", "summary": "...", "matcher_type": "string",
"file_pattern": "...", "match_string": "...", "label_ids": ["..."]},
"label": {"id": "...", "label_title": "...", "explanation": "...",
"bugs": ["OCPBUGS-12345"]},
"file_match": "artifacts/.../nodes.json",
"text_match": "the exact text that matched"
}
}
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.
/view/gs/ and end in a numeric build ID (exit 1 client-side).job_labels artifacts: The run may be too old (artifacts pruned) or was never scanned — suggest --deep to rescan server-side.--deep first, then create a new symptom via manage-symptoms).oc-auth skill.Exit Codes:
0: Diagnosis completed (including "no labels found")1: Validation, network, or API errorlist-symptoms (browse/search the symptom and label catalogs)manage-symptoms (create a new symptom when nothing matched)reevaluate-job-runs (apply symptoms retroactively to past runs)oc-auth (token for deep mode)prow-job-analyze-test-failure (deeper manual failure analysis)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ci-failure-analysis, sippy, prow, openshift-ci, known-failures
npx claudepluginhub openshift-eng/ai-helpers --plugin ci36 skills in this plugin
/add-jira-triage-linkAdd a Component Readiness triage record link to a JIRA issue description/bulk-triage-regressionsUse this skill for Component Readiness triage duty - holistically analyze and triage all untriaged regressions for a set of components in a view, clustering them into root-cause buckets/detect-permafailAnalyze consecutive job failures to determine if they represent a permafail pattern versus flaky failures/fetch-jira-issueFetch JIRA issue details including status, assignee, comments, and progress classification/fetch-job-run-summaryFetch a Prow job run summary from Sippy showing all failed tests grouped by SIG with error messages/fetch-new-prs-in-payloadFetch pull requests that are new in a given OpenShift payload compared to the previous payloadOther plugins' skills for the same job