Command Palette

Search for a command to run...

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

analyze-regressions

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

Grade component health based on regression triage metrics for OpenShift releases

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

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

Analyze Regressions

This skill provides functionality to analyze and grade component health for OpenShift releases based on regression management metrics. It evaluates how well components are managing their test regressions by analyzing triage coverage, triage timeliness, and resolution speed.

When to Use This Skill

Use this skill when you need to:

  • Grade component health for a specific OpenShift release
  • Identify components that need help with regression handling
  • Track triage and resolution efficiency across releases
  • Generate component quality scorecards
  • Produce health reports (text or HTML) for stakeholders

Important Note: Grading is subjective and not meant to be a critique of team performance. This is intended to help identify where help is needed and track progress as we improve our regression response rates.

Prerequisites

  1. Python 3 Installation

    • Check if installed: which python3
    • Python 3.6 or later is required
    • Comes pre-installed on most systems
  2. Network Access

    • The scripts require network access to reach the component health API and release dates API
    • Ensure you can make HTTPS requests
  3. Required Scripts

    • plugins/teams/skills/get-release-dates/get_release_dates.py
    • plugins/teams/skills/list-regressions/list_regressions.py
    • plugins/teams/skills/analyze-regressions/generate_html_report.py (for HTML reports)
    • plugins/teams/skills/analyze-regressions/report_template.html (for HTML reports)

Implementation Steps

Step 1: Parse Arguments

Extract the view name and optional component filter from the command arguments:

  • View format: "X.Y-suffix" (e.g., "4.22-main", "4.17-main")
  • The release is derived from the view name (e.g., "4.22" from "4.22-main")
  • Components (optional): List of component names to filter by

Example argument parsing:

/teams:analyze-regressions 4.17-main
/teams:analyze-regressions 4.21-main --components Monitoring etcd

Step 2: Fetch Release Dates

Derive the release from the view name (e.g., "4.17" from "4.17-main"), then run the get_release_dates.py script to determine the development window:

python3 plugins/teams/skills/get-release-dates/get_release_dates.py \
  --release 4.17

Expected output (JSON on stdout):

{
  "release": "4.17",
  "development_start": "2024-05-17T00:00:00Z",
  "feature_freeze": "2024-08-26T00:00:00Z",
  "code_freeze": "2024-09-30T00:00:00Z",
  "ga": "2024-10-29T00:00:00Z"
}

Processing steps:

  1. Parse the JSON output
  2. Extract development_start date - convert to YYYY-MM-DD format
  3. Extract ga date - convert to YYYY-MM-DD format (may be null for in-development releases)
  4. Handle null dates as follows:
    • development_start: Usually always present; if null, omit --start parameter
    • ga: Will be null for in-development releases; if null, omit --end parameter

Date conversion example:

"2024-05-17T00:00:00Z" → "2024-05-17"
null → do not use this parameter

Step 3: Execute List Regressions Script

Run the list_regressions.py script with the appropriate arguments:

python3 plugins/teams/skills/list-regressions/list_regressions.py \
  --view 4.17-main \
  --start 2024-05-17 \
  --end 2024-10-29 \
  --short

Parameter rules:

  • --view: Always required (from Step 1). The release is derived from the view name internally.
  • --components: Optional, only if specified by user (from Step 1)
  • --start: Use development_start date from Step 2 (if not null)
    • Always applied for both GA'd and in-development releases
    • Excludes regressions closed before development started (not relevant to this release)
  • --end: Use ga date from Step 2 (only if not null)
    • Only applied for GA'd releases (when GA date is not null)
    • Excludes regressions opened after GA (post-release regressions, often not monitored/triaged)
    • Not applied for in-development releases (when GA date is null)
  • --short: Always include this flag
    • Excludes regression data arrays from response
    • Only includes summary statistics
    • Prevents truncation problems with large datasets

Example for GA'd release (4.17-main):

python3 plugins/teams/skills/list-regressions/list_regressions.py \
  --view 4.17-main \
  --start 2024-05-17 \
  --end 2024-10-29 \
  --short

Example for in-development release (4.22-main with null GA):

python3 plugins/teams/skills/list-regressions/list_regressions.py \
  --view 4.22-main \
  --start 2025-09-02 \
  --short

Example with component filter:

python3 plugins/teams/skills/list-regressions/list_regressions.py \
  --view 4.21-main \
  --components Monitoring etcd \
  --start 2025-09-02 \
  --short

Step 4: Parse Output Structure

The script outputs JSON to stdout with the following structure:

{
  "summary": {
    "total": 62,
    "triaged": 59,
    "triage_percentage": 95.2,
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

README.mdgenerate_html_report.pyreport_template.html

FAQ

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

Grade component health based on regression triage metrics for OpenShift releases

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

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

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

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

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

Сравнить analyze-regressions с