Command Palette

Search for a command to run...

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

disruption-trend

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

Use when asked only when disruption started, got worse, improved, or changed for a disruption backend or series (given as an alert, a Grafana disruption…

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

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

Disruption Trend

This skill answers when: when disruption on a series started, or when it changed. It does not explain why. It builds a time series of per-run disruption seconds for one series, then finds step changes (transitions) and the onset, and states every data limitation.

A series is one release, one or more exact backend names, the Sippy job variants (platform, architecture, topology, network, upgrade type, feature set, OS), and optionally master_nodes_updated.

Prerequisites

  1. Python 3.7+ and network access to sippy.dptools.openshift.org and storage.googleapis.com. Both are public, so no credentials are needed.
  2. The disruption_common library. It is the disruption plugin's scripts/disruption_common, installed with the plugin (Claude Code installs the whole plugin; Chai copies scripts/ into each skill). If the library is missing, the script exits and says exactly that. Report the message; do not work around it.

Inputs

Take one of these, unchanged:

  • A DisruptionRegression* alert: pass the full text, including every label and any link: annotation.
  • A Grafana disruption dashboard URL (grafana-loki.ci.openshift.org/d/...): pass it unchanged. Do not open or fetch it, because it is behind SSO.
  • Explicit fields: --release and --backend are required. Add --platform, --upgrade-type, --architecture, --topology, and --network when the user gives them.

Optional inputs:

  • Window: --days N. The default is 30, or the dashboard lookback if that is longer. The maximum is 90, because the public Sippy API only keeps about 90 days of runs. A longer request is capped at 90 and a caveat says so.
  • State file: --state-file <path>, the investigation state shared with the other disruption skills. When none is given, create one at .work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/investigation.json.
  • --auto: a workflow asked you not to pause at the checkpoint (see Step 4). This is an instruction to you, not a script flag.

If the release or backend is missing, ask for it. If only a release and backend were given with no platform or upgrade type, say that the series pools every job for that release and backend, because a change in the job mix can look like a regression. Then either ask for the missing fields or continue and keep that caveat in the answer.

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.

Step 1: Run the series script

The script is disruption_series.py in this skill's directory. In Claude Code that is ${CLAUDE_SKILL_DIR}; elsewhere, it is the directory containing this SKILL.md. Run it once, from the working directory where .work/ should live:

python3 "<skill-dir>/disruption_series.py" \
  --alert-file ".work/disruption-analysis/<id>/alert.txt" \
  --state-file ".work/disruption-analysis/<id>/investigation.json"

Write the pasted alert unchanged to alert.txt in the investigation directory with your file-writing tool first; never put alert text on the command line, where backticks and $(...) in it would run. Use --grafana-url '<url>' (single quotes) instead of --alert-file for a dashboard. For explicit fields, use --release 5.0 --backend kube-api-new-connections --platform gcp --upgrade-type micro. Add --days N when the user asked for a different window.

Run it with a 10-minute command timeout (for example timeout: 600000 on the Bash tool). A 30-day window usually takes 15–60 seconds, but the Sippy disruption API allows only 25 requests per rolling hour, shared by every user, so the script may wait up to 5 minutes (--rate-limit-wait, default 300 seconds) for the limit to free up. Each request covers 500 runs. Progress and rate-limit waits go to stderr. Disruption data is cached under .work/disruption-analysis/cache/ after every request, so a rerun only fetches runs that are not cached yet. Run the script once; do not loop on it.

After the analysis, the script reads prowjob.json from the public GCS bucket for the 20 runs nearest each transition on each side (about 40 small files per transition, 4 at a time, cached) to get each run's initial and target payload. Add --no-payloads only if GCS is unreachable.

The table on stdout has the per-bucket run count, nonzero rate, P50/P75/P95, max, job count, and payload range. Then, for each transition: a summary line, a per-job table, the payload findings, and suggested before/after run pairs. The onset and caveats come last. A DEGRADED: line under the header means runs were lost to API failures (see Error handling). The full result, including every number referenced below, is in the state file under trend, and the per-run records (with initial_payload and target_payload for the sampled runs) are in `trend.runs_f

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

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

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

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

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

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

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

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

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

disruption_series.pytest_disruption_series.py

FAQ

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

Use when asked only when disruption started, got worse, improved, or changed for a disruption backend or series (given as an alert, a Grafana disruption dashboard URL, or a release plus backend), or to run a control series on another platform or release. Builds the per-run disruption time series and locates transitions and onset with stated uncertainty. To investigate why a DisruptionRegression alert fired, start with investigate-disruption; this skill is usually its first step.

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

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

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

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

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

Сравнить disruption-trend с