Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prow-job-analysis

БесплатноЗапускает вложенные скриптыНе проверен

Use this skill when debugging a failed Prow CI job.

openshift-engот 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:

  1. 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/...
  2. Test name (optional) — specific failed test to focus on

  3. 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-only list/search/fetch; fetch --tail reads a log's end) or curl against https://storage.googleapis.com/test-platform-results-public/....

Investigation Workflow

Step 1: Parse URL and Extract Metadata

  1. Find /view/gs/<bucket>/ (Prow UI) or /gcs/<bucket>/ (gcsweb) in the URL. Any non-empty bucket segment is accepted.
  2. Extract the object path after the bucket name, then build_id — pattern (\d{10,}) in the path.
  3. Construct GCS base: gs://{bucket}/{bucket-path}/ using the URL bucket as-is, including prow-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

Полный SKILL.md на GitHub

Установить prow-job-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

prow_job_artifact_search.pyreferences/aggregated.mdreferences/alerts.mdreferences/artifacts.mdreferences/ci-infrastructure-changes.mdreferences/cloud-provider-errors.mdreferences/disruption.mdreferences/flaky-test-identification.mdreferences/hypershift.mdreferences/install/general.mdreferences/install/metal.mdreferences/networking.mdreferences/operating-system-changes.mdreferences/resource-exhaustion.mdreferences/test-extension-binaries.mdreferences/test-failure.mdreferences/upgrade.mdtest_prow_job_artifact_search.py

FAQ

Что делает скилл prow-job-analysis?

Use this skill when debugging a failed Prow CI job.

Как установить скилл prow-job-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prow-job-analysis запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить prow-job-analysis с