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★ 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
- gcloud CLI (
which gcloud). Thetest-platform-results-publicbucket is public. Do not rungcloud auth login, and do not change the user's gcloud config.download_timelines.pysetsCLOUDSDK_AUTH_DISABLE_CREDENTIALS=trueon each gcloud subprocess, and any directgcloud storagecommand here uses the same variable. Anonymous access still needs network execution when the command runs in a sandbox. - Python 3.7+.
- The
disruption_commonlibrary: thedisruptionplugin'sscripts/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
--backendsunchanged. Do not shortenkube-api-new-connectionstokube-api, and do not substitute derived probes (*-localhost-*,*-http1-*,*-http2-*,*-service-network-*,*-internal-lb-*) orcache-*backends unless the user named them. - Liveness. A run where
ci-cluster-network-livenessis 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.orgorgcsweb-ci), one or more. Orjob:build_idpairs, such ascohorts.handoff.download_runsfromdisruption-find-runsin the state file. - Backends (
--backends): the exact names. Take them from the request, or from the state file'sseries.backends, or else itscohorts.backends(written bycohorts.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
Установить disruption-analyze-run в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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