prow-job-analysis
БесплатноЗапускает вложенные скриптыНе проверенUse this skill when debugging a failed Prow CI job.
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Prow Job Analysis
Analyze failures in OpenShift Prow CI jobs. Identify the job type, inspect artifacts, classify the failure, and route to the specialized reference for deep analysis.
Input Format
The user will provide:
Prow job URL (required) — Prow UI or gcsweb URL
https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/<job>/<build_id>https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results-public/...
Test name (optional) — specific failed test to focus on
Flags (optional):
--backends <list>— focus disruption analysis on specific backends
Prerequisites
- Python 3.7+:
which python3 - jq:
which jq - gcloud CLI (recommended, not required):
which gcloud— fastest access to the public bucket (no auth required). Without it, every artifact operation works over plain HTTPS: prow_job_artifact_search.py (stdlib-onlylist/search/fetch;fetch --tailreads a log's end) orcurlagainsthttps://storage.googleapis.com/test-platform-results-public/....
Investigation Workflow
Step 1: Parse URL and Extract Metadata
- Find
/view/gs/<bucket>/(Prow UI) or/gcs/<bucket>/(gcsweb) in the URL. Any non-empty bucket segment is accepted. - Extract the object path after the bucket name, then
build_id— pattern(\d{10,})in the path. - Construct GCS base:
gs://{bucket}/{bucket-path}/using the URL bucket as-is, includingprow-artifact-archive. A private bucket will 403.
Step 2: Fetch prowjob.json
Use the fetch-prowjob-json skill to get job metadata. Extract:
- Job name from
.spec.job - Target from
--target=in ci-operator args - Job state from
.status.state - Refs (org, repo, PR number) from
.spec.refs
Step 3: Read the Pre-Digested Failure Summaries
openshift-tests and the gather steps already summarize most of what you need. Read these small (KB-sized) files before downloading logs, journals, or must-gather — they usually name the failed step, the failed tests, the cluster shape, and known failure signatures. Each may be absent; absence is itself a signal (noted below).
# 1. ci-operator verdict: which step failed and why (tail only — the log can exceed 500 KB)
curl -s -r -20000 "https://storage.googleapis.com/{bucket}/{bucket-path}/build-log.txt" \
| grep -aE "Reporting job state|could not run steps|step .* failed"
# 2. Locate the per-job summaries (one per test step that ran openshift-tests)
gcloud storage ls "gs://{bucket}/{bucket-path}/artifacts/**/test-failures-summary_*.json"
gcloud storage ls "gs://{bucket}/{bucket-path}/artifacts/job_labels/*.json"
gcloud storage ls "gs://{bucket}/{bucket-path}/artifacts/{target}/gather-extra/artifacts/junit/"
| Artifact | What it answers | Notes |
|---|---|---|
build-log.txt (tail) |
Failed step and ci-operator reason (e.g. ...:executing_multi_stage_test) |
A setup reason (importing_release, acquiring_lease, pod_pending, …) means the test never got a fair run — see flaky-test-identification.md |
{target}/*/artifacts/junit/test-failures-summary_*.json |
.Tests[].Test.Name — the failed tests; .ClusterData — release, platform, network, topology, region/zone, ClusterVersionHistory |
Names only, no error text (get that from junit_e2e_*.xml or the step build-log.txt). test-failures-summary_monitor_*.json covers monitor tests. More than one ClusterVersionHistory entry means an upgrade ran. Absent → unknown, not proof that tests never ran: openshift-tests may have failed before writing it. Check the test step's build-log.txt and JUnit before classifying as install/infra |
artifacts/job_labels/*.json |
Sippy symptoms already matched on this run (e.g. OVSExcessivePollIntervals200, QuayCDNImageConfigEOF) |
Skip label-summary.html. Context, not cause — see flaky-test-identification.md. ci:diagnose-job-run-symptoms explains each label |
gather-extra/artifacts/junit/junit_install_status.xml |
One testcase per ClusterOperator; a failure means it was unavailable, degraded, or progressing at gather time | Despite the name it is not install-specific; useful for every job that created a cluster |
gather-extra/artifacts/junit/junit_symptoms.xml |
Gather-time grep of pods and node journals for panics, segfaults, quota errors | A failure here is an OS-layer trigger (Step 6) |
{target}/*/artifacts/junit/alerts_*.json |
Every alert that fired, with namespace, level, and duration | Read when an alert test failed — see alerts.md |
Optionally, ci:fetch-job-run-summary {build_id} returns the failed tests with error
messages, grouped by SIG. It works only after
Установить prow-job-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prow-job-analysis?
Use this skill when debugging a failed Prow CI job.
Как установить скилл prow-job-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prow-job-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic