Command Palette

Search for a command to run...

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

disruption-find-runs

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

Use when choosing which Prow job runs to analyze for a disruption question — sampling the currently disrupted runs of a series, proposing before/after cohorts…

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

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

Disruption Find Runs

This skill answers which runs to look at. It does not analyze them. It has three purposes; the request or the workflow names one:

Purpose Use when Script
sample-disrupted "What is disrupting this series right now?" An alert or dashboard URL, no regression comparison find_disruption_runs.py
cohorts-around A regression: before/after cohorts around a transition from disruption-trend cohorts.py around
validate The user gave their own before and after runs cohorts.py validate

If the purpose is not clear, ask: "Do you want the currently disrupted runs, or runs from before and after a change?"

Prerequisites

  1. Python 3.7+ and network access to sippy.dptools.openshift.org and storage.googleapis.com. Both are public.
  2. 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. Do not query Sippy or fetch the Grafana URL yourself; the scripts do all of it in one call each.

Rules shared by the disruption skills

  • Backend names are exact. 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. Say so wherever it appears; do not rest a conclusion on its disruption counts alone.
  • State. With a state file (investigation.json), {investigation_dir} is its directory. Without one, create .work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/investigation.json.
  • One block. Do not run another disruption skill yourself. End with the checkpoint below; chaining is the caller's job.

Purpose: sample-disrupted

Read references/run-discovery.md and follow it. It runs find_disruption_runs.py once with the alert text or dashboard URL unchanged, presents the candidate table, and collects the user's selection. It picks runs across the outlier and percentile-tail tiers so the sample explains what drives the dashboard line.

These runs explain current disruption. They are not a before/after comparison, so they cannot by themselves say why disruption got worse. Say that when the request was about a regression, and offer cohorts-around instead.

Purpose: cohorts-around

Run disruption-trend first; this purpose reads its per-run records from the state file and makes no Sippy request.

python3 "${CLAUDE_SKILL_DIR}/cohorts.py" around \
  --state-file "{investigation_dir}/investigation.json" \
  [--transition N | --at 2026-11-04T10:00:00Z] [--per-side 5] [--window-days 7]
  • Without --transition or --at, it uses the strongest practical increase from the trend. Use --transition N (an index into trend.transitions) or --at when the user picked a different point.
  • Each cohort comes from jobs that ran on both sides, nearest the step, at most one run per launch batch, so the two cohorts differ in time, not in job mix. Runs with liveness disruption or missing data are left out and counted.
  • The cohorts are not chosen for high or low disruption. A before run with some disruption is expected: the baseline does not have to be 0s. The script prints each cohort's median and max next to its whole side's median and P95.
  • It reads each chosen run's prowjob.json for its payload pair. Add --no-payloads only if GCS is unreachable.

Then judge the proposal and say what you see:

  • Every comparability note the script printed, in plain words. Jobs only on one side are not in the cohorts; name them, because a new job can be the change.
  • Whether the after cohort shows the change. If its median is not above the before cohort's, the cohorts may not capture the regression; offer a larger --per-side, a different transition, or --window-days.
  • For upgrade jobs, the payload pairs: after runs that tested a payload no newer than a before run mean a payload change does not separate the cohorts.

Purpose: validate

Keep the user's cohorts exactly as given. Do not add, drop, or swap runs; only report what makes them hard to compare.

python3 "${CLAUDE_SKILL_DIR}/cohorts.py" validate \
  --before "<url>,<url>" --after "<url>,<url>" \
  --state-file "{investigation_dir}/investigation.json" [--backends <exact names>]

Always pass --state-file: the cohorts are recorded only there, and the comparison step reads them from it. The backends come from --backends, or else the state file's series. If neither is available, ask which backends the comparison is about. The script records the backends it used under cohorts.backends. The script read

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

Установить disruption-find-runs в Claude Code и Claude Desktop

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

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

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

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

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

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

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

cohorts.pyfind_disruption_runs.pyreferences/run-discovery.mdtest_cohorts.pytest_find_disruption_runs.py

FAQ

Что делает скилл disruption-find-runs?

Use when choosing which Prow job runs to analyze for a disruption question — sampling the currently disrupted runs of a series, proposing before/after cohorts around a disruption-trend transition, or checking cohorts the user supplied. To investigate a DisruptionRegression alert or dashboard, start with investigate-disruption; this skill is usually one of its steps.

Как установить скилл disruption-find-runs?

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

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

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

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

Сравнить disruption-find-runs с