Command Palette

Search for a command to run...

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

disruption-analyze-run

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

Use when explaining why specific Prow CI job runs were disrupted — downloads their interval/timeline data and analyzes disruption episodes, waves, revision…

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Disruption Analyze Run

This skill answers why these runs were disrupted: the mechanism in each run. It does not decide whether disruption got worse, compare cohorts, or search Jira; other disruption skills do that.

Prerequisites

  1. gcloud CLI (which gcloud). The test-platform-results-public bucket is public. Do not run gcloud auth login, and do not change the user's gcloud config. download_timelines.py sets CLOUDSDK_AUTH_DISABLE_CREDENTIALS=true on each gcloud subprocess, and any direct gcloud storage command here uses the same variable. Anonymous access still needs network execution when the command runs in a sandbox.
  2. Python 3.7+.
  3. The disruption_common library: the disruption plugin's scripts/disruption_common, installed with the plugin. If it is missing, the scripts exit and say so. Report the message; do not work around it.

The scripts are in this skill's directory: ${CLAUDE_SKILL_DIR} in Claude Code, or the directory containing this SKILL.md elsewhere.

Rules shared by the disruption skills

  • Backend names are exact. Pass them as --backends unchanged. Do not shorten kube-api-new-connections to kube-api, and do not substitute derived probes (*-localhost-*, *-http1-*, *-http2-*, *-service-network-*, *-internal-lb-*) or cache-* backends unless the user named them.
  • Liveness. A run where ci-cluster-network-liveness is disrupted has unreliable disruption data. Keep it, say so, and do not rest a conclusion on its disruption counts alone.
  • Platform. The platform in the alert or job name is where disruption was measured, not evidence of the cause. Name a platform-specific cause only when the run evidence shows a platform mechanism (a cloud metric, a cloud API error, a platform-only component).
  • State. With a state file (investigation.json), {investigation_dir} is its directory; otherwise create .work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/. Runs go under {runs_dir} = {investigation_dir}/runs.
  • One block. Do not run another disruption skill yourself. End with the checkpoint below.

Step 1: Inputs

  • Prow URLs (prow.ci.openshift.org or gcsweb-ci), one or more. Or job:build_id pairs, such as cohorts.handoff.download_runs from disruption-find-runs in the state file.
  • Backends (--backends): the exact names. Take them from the request, or from the state file's series.backends, or else its cohorts.backends (written by cohorts.py validate). Without any of these, analyze every backend that shows disruption and say so.
  • When the runs are cohorts (before/after), keep each run's cohort; the analysis of each run is the same, but the checkpoint says which cohort each run is in.

From each Prow URL take the job name and build ID: the last two path segments after /logs/. The job name is letters, digits, ., _, and -, and the build ID is all digits; skip and report anything else rather than putting it in a shell command. Presubmit runs (/pr-logs/pull/...) are not supported: the download reads only /logs/ artifacts, so say so and skip them. Prow URLs may say origin-ci-test; the bucket is always test-platform-results-public.

Step 2: Download timelines

Read references/artifacts.md and follow Timeline download: one download_timelines.py call for every run, with --output-dir {runs_dir}. When the runs are before/after cohorts, add --gather: disruption-compare-cohorts compares component versions from each run's releaseinfo.json, and the revision-trigger check needs the events and configmaps. On exit 2, continue with the runs that downloaded; on exit 1, stop and report each run's error.

Keep each run's payload pair (initial → target) from the output. For upgrade jobs, make no claim that depends on which payload a run started from or upgraded to without that run's pair; if it is unknown, say so.

Step 3: Analyze the timelines

For every run, save the parser's full JSON (the cohort comparison reads it) and print its one-line summary, in one loop:

for run in '{job_1}:{build_id_1}' '{job_2}:{build_id_2}'; do
  job="${run%%:*}"; build_id="${run##*:}"; dir="{runs_dir}/${build_id}"
  if python3 "${CLAUDE_SKILL_DIR}/parse_disruption.py" "${dir}"/logs/e2e-timelines_spyglass_*.json \
      --job-name "${job}" --build-id "${build_id}" --backends '{exact_backends}' --format json > "${dir}/parsed.json.tmp"; then
    mv "${dir}/parsed.json.tmp" "${dir}/parsed.json"
    python3 "${CLAUDE_SKILL_DIR}/parse_disruption.py" "${dir}"/logs/e2e-timelines_spyglass_*.json \
      --job-name "${job}" --build-id "${build_id}" --backends '{exact_backends}' --format summary
  else
    rm -f "${dir}/parsed.json.tmp" "${dir}/parsed.json"; echo "${build_id}: the parser failed; no parsed.json kept" >&2
  fi
done

A run without timelines gets no parsed.json, and a failed rerun removes the one from an earlier run, so the cohort comparison reports the run as missing inst

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

Установить disruption-analyze-run в Claude Code и Claude Desktop

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

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

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

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

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

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

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

download_timelines.pyparse_disruption.pyreferences/artifacts.mdreferences/evidence-links.mdreferences/timeline-analysis.mdrevision_triggers.pytest_download_timelines.pytest_parse_disruption.pytest_revision_triggers.py

FAQ

Что делает скилл disruption-analyze-run?

Use when explaining why specific Prow CI job runs were disrupted — downloads their interval/timeline data and analyzes disruption episodes, waves, revision rollouts, and concurrent etcd, OVS, CPU, and cloud signals per run, with audit and etcd logs when needed. Takes Prow URLs or job:build_id pairs. Usually one step of a disruption investigation (see investigate-disruption).

Как установить скилл disruption-analyze-run?

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

Скилл disruption-analyze-run запускает скрипты?

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

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

Сравнить disruption-analyze-run с