disruption-compare-cohorts
БесплатноЗапускает вложенные скриптыНе проверенUse when deciding what behavior differs between a before and an after cohort of disrupted Prow runs — builds a candidate x cohort matrix from the per-run…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Disruption Compare Cohorts
This skill answers what differs between the runs before a change and the runs after it. A regression is explained by something that changed, not by stress every run shares. It does not find the change in code (disruption-change-suspects) or search Jira (disruption-known-issues).
Prerequisites
- Python 3.7+.
- The
disruption_commonlibrary: thedisruptionplugin'sscripts/disruption_common, installed with the plugin. If it is missing, the script exits and says so. Report the message; do not work around it. - Analyzed runs: each run's parser output at
{runs_dir}/{build_id}/parsed.jsonand its analysis at{runs_dir}/{build_id}/analysis.md, both written bydisruption-analyze-run. Cohorts come fromdisruption-find-runs(cohortsin the state file).
The script is 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
- Liveness. A run where
ci-cluster-network-livenessis disrupted has unreliable disruption data. Do not rest a conclusion on its disruption counts alone; its other signals still count. - Platform. The platform in the alert is where disruption was measured, not evidence of the cause. Every run in both cohorts usually shares it, so it cannot explain a difference between them. Name a platform-specific cause only with evidence: a cloud signal that is new or stronger in the after cohort, or the same jobs on another platform staying flat over the same period.
- State.
{investigation_dir}is the state file's directory;{runs_dir}is{investigation_dir}/runs. - One block. Do not run another disruption skill yourself. End with the checkpoint below.
Step 1: Build the matrix
python3 "${CLAUDE_SKILL_DIR}/compare_cohorts.py" \
--state-file "{investigation_dir}/investigation.json" --runs-dir "{runs_dir}"
Without a state file, pass the parser outputs directly: --before a.json,b.json --after c.json,d.json.
Each row is one signal, with how many runs in each cohort show it (runs/of) and its median size there:
disruption: disruptions, episodes, waves, and the count per phase on the selected backends.rollout: static-pod revision rollouts per operator, and how many had disruption inside.during: context events near disruption windows (concurrent events).run-wide: the same context sources over the whole run (run_context). A clean run has no disruption windows, so only these rows can show that a before run had the same stress without the disruption.
The suggested label compares counts only. A run listed as missing parsed.json was not analyzed; analyze it or say the comparison is without it.
After the matrix, component repos whose commit differs come from each run's gather/releaseinfo.json (the runs must have been downloaded with --gather). changed means no after run shares a commit with any before run for that repo; mixed means some after runs still have a before commit, so the repo does not separate the cohorts. Both labels cover only runs whose releaseinfo lists component commits; the notes name any run left out, and a left-out before run could have shared a commit. releaseinfo is the payload each cluster ran last, which for upgrade jobs is the target, not the payload it started from. A changed component whose role fits a candidate (for example the kube-apiserver operator for a new rollout) is a lead for disruption-change-suspects, not proof. If the script says component versions were not compared, say so; the change search still works from payload tags.
Step 2: Classify each candidate
A candidate is a mechanism the run analyses named (for example "second kube-apiserver rollout", "etcd slow fdatasync on master-0", "OVS poll stalls on the source node"), with the matrix rows that measure it. Read references/cross-run-comparison.md for how to line up episodes, waves, rollouts, payload pairs, and same-job pairs.
Put every candidate in exactly one class:
| Class | Evidence |
|---|---|
| Pre-existing, unchanged | Present in the before cohort about as often and as strongly as in the after cohort. It explains disrupted runs, but not why disruption increased. |
| Pre-existing, more impact | Present before, but in more after runs, larger, or now inside disruption episodes where before it was not. Say which of those it is. |
| New | Absent from the before cohort and present in most of the after cohort. |
| Not supported | Named by a run analysis but the matrix does not show it consistently in the after cohort. |
Rules:
- Judge "present before" from the run-wide rows, not only the
duringrows: a before run with no disruption has noduringrows at all. - A symptom shared by both cohorts (CPU pressure, etcd slowness) is pre-existing unless its size or its link to episodes changed. Do not let a familiar symptom stand in for the change.
Установить disruption-compare-cohorts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл disruption-compare-cohorts?
Use when deciding what behavior differs between a before and an after cohort of disrupted Prow runs — builds a candidate x cohort matrix from the per-run analyses and classifies each candidate cause as pre-existing and unchanged, pre-existing with more impact, or new. Also compares any set of analyzed runs for shared patterns. Usually one step of a disruption regression investigation (see investigate-disruption).
Как установить скилл disruption-compare-cohorts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл disruption-compare-cohorts запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub