openshift-eng/ai-helpers/list-regressions

Claude Code and agent skill by openshift-eng/ai-helpers

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Fetch and analyze component health regressions for OpenShift releases

Install

npx vskill@latest install openshift-eng/ai-helpers/list-regressions

SKILL.md

The same SKILL.md was published earlier as openshift-eng/ai-helpers/list-regressions.

List Regressions

This skill provides functionality to fetch regression data for OpenShift components across different releases. It uses a Python script to query a component health API and retrieve regression information.

When to Use This Skill

Use this skill when you need to:

  • Analyze component health for a specific OpenShift release
  • Track regressions across releases
  • Filter regressions by their open/closed status
  • Generate reports on component stability

Prerequisites

  1. Python 3 Installation
  • Check if installed: which python3
  • Python 3.6 or later is required
  • Comes pre-installed on most systems
  1. Network Access
  • The script requires network access to reach the component health API
  • Ensure you can make HTTPS requests
  1. API Endpoint Configuration
  • The script includes a placeholder API endpoint that needs to be updated
  • Update the base_url in list_regressions.py with the actual component health API endpoint

Implementation Steps

Step 1: Verify Prerequisites

First, ensure Python 3 is available:

bash
python3 --version

If Python 3 is not installed, guide the user through installation for their platform.

Step 2: Locate the Script

The script is located at:

plugins/teams/skills/list-regressions/list_regressions.py
Step 3: Run the Script

Execute the script with appropriate arguments:

bash
# Basic usage - all regressions for a view
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.17-main
# Filter by specific components (case-insensitive, hierarchy-aware:
# "Installer" also matches "Installer / openshift-installer";
# "Networking" matches "Networking / ovn-kubernetes", "Networking / router", ...)
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.21-main \
--components Monitoring "kube-apiserver"
# Filter by multiple components
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.21-main \
--components Monitoring etcd "kube-apiserver"
# Filter by development window (GA'd release - both start and end)
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.17-main \
--start 2024-05-17 \
--end 2024-10-01
# Filter by development window (in-development release - start only)
python3 plugins/teams/skills/list-regressions/list_regressions.py \
--view 4.22-main \
--start 2025-09-02
Step 4: Process the Output

The script outputs JSON data with the following structure:

json
{
"summary": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"time_to_resolve_hrs_avg": <number or null>,
"time_to_resolve_hrs_max": <number or null>,
"open": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"open_hrs_avg": <number or null>,
"open_hrs_max": <number or null>
},
"closed": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"time_to_resolve_hrs_avg": <number or null>,
"time_to_resolve_hrs_max": <number or null>
}
},
"components": {
"ComponentName": {
"summary": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"time_to_resolve_hrs_avg": <number or null>,
"time_to_resolve_hrs_max": <number or null>,
"open": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"open_hrs_avg": <number or null>,
"open_hrs_max": <number or null>
},
"closed": {
"total": <number>,
"triaged": <number>,
"triage_percentage": <number>,
"time_to_triage_hrs_avg": <number or null>,
"time_to_triage_hrs_max": <number or null>,
"time_to_resolve_hrs_avg": <number or null>,
"time_to_resolve_hrs_max": <number or null>
}
},
"open": [...],
"closed": [...]
}
}
}

CRITICAL: The output includes pre-calculated counts and health metrics:

  • summary: Overall statistics across all components
  • summary.total: Total number of regressions
  • summary.triaged: Total number of regressions triaged (open + closed)
  • `summary.triage_percentage`: Percentage of all regressions that have been triaged (KEY HEALTH METRIC)
  • `summary.time_to_triage_hrs_avg`: Overall average hours to triage (combining open and closed, KEY HEALTH METRIC)
  • summary.time_to_triage_hrs_max: Overall maximum hours to triage
  • `summary.time_to_resolve_hrs_avg`: Overall average hours to resolve regressions, measured from regression opened to triage resolved timestamp (KEY HEALTH METRIC)
  • summary.time_to_resolve_hrs_max: Overall maximum hours to resolve regressions
  • summary.open.total: Number of open regressions (where closed is null)
  • summary.open.triaged: Number of open regressions that have been triaged to a JIRA bug
  • summary.open.triage_percentage: Percentage of open regressions triaged
  • summary.open.time_to_triage_hrs_avg: Average hours from opened to first triage (open only)
  • summary.open.time_to_triage_hrs_max: Maximum hours from opened to first triage (open only)
  • summary.open.open_hrs_avg: Average hours that open regressions have been open (from opened to current time)
  • summary.open.open_hrs_max: Maximum hours that open regressions have been open (from opened to current time)
  • summary.closed.total: Number of closed regressions (where closed is not null)
  • summary.closed.triaged: Number of closed regressions that have been triaged to a JIRA bug
  • summary.closed.triage_percentage: Percentage of closed regressions triaged
  • summary.closed.time_to_triage_hrs_avg: Average hours from opened to first triage (closed only)
  • summary.closed.time_to_triage_hrs_max: Maximum hours from opened to first triage (closed only)
  • summary.closed.time_to_resolve_hrs_avg: Average hours from regression opened to triage resolved (JIRA bug completed), null if no valid data
  • summary.closed.time_to_resolve_hrs_max: Maximum hours from regression opened to triage resolved, null if no valid data
  • components: Dictionary mapping component names to objects containing:
  • summary: Per-component statistics (includes same fields as overall summary)
  • open: Array of open regression objects for that component
  • closed: Array of closed regression objects for that component

Time to Triage Calculation:

The time_to_triage_hrs_avg field is calculated as:

  1. For each triaged regression, find the earliest created_at timestamp in the triages array
  2. Calculate the time difference between the regression's opened timestamp and the earliest triage timestamp
  3. Convert the difference to hours and round to the nearest hour
  4. Only include positive time differences (zero or negative values are skipped - these occur when triages are reused across regression instances)
  5. Average all valid time-to-triage values for open regressions separately from closed regressions
  6. Return null if no regressions have valid time-to-triage data in that category

Time to Resolve Calculation:

The time_to_resolve_hrs_avg and time_to_resolve_hrs_max fields (only for triaged closed regressions) are calculated as:

  1. For each closed regression that has been triaged, find the earliest resolved timestamp among the triage objects
  2. The triage resolved timestamp indicates when the linked JIRA bug moved to a completed state
  3. Calculate the time difference between the regression's opened timestamp and the earliest triage resolved timestamp
  4. Convert the difference to hours and round to the nearest hour
  5. Only include positive time differences (skip data inconsistencies)
  6. Calculate average and maximum of all valid time-to-resolve values
  7. Return null if no triaged closed regressions have valid resolved timestamps

Note: This metric uses the triage resolved timestamp rather than the regression closed timestamp because the regression closing (bad data rolling off component readiness) can lag by a week or more after the underlying issue is fixed. The triage resolved timestamp provides a more accurate measure of how quickly a team addressed the issue.

Open Duration Calculation:

The open_hrs_avg and open_hrs_max fields (only for open regressions) are calculated as:

  1. For each open regression, calculate the time difference between opened timestamp and current time
  2. Convert the difference to hours and round to the nearest hour
  3. Only include positive time differences
  4. Calculate average and maximum of all open duration values
  5. Return null if no open regressions have valid time data

ALWAYS use these summary counts rather than attempting to count the regression arrays yourself. This ensures accuracy even when the output is truncated due to size.

The script automatically simplifies and optimizes the response:

Time field simplification (closed and last_failure):

  • Original API format: {"Time": "2025-09-27T12:04:24.966914Z", "Valid": true}
  • Simplified format: "closed": "2025-09-27T12:04:24.966914Z" (if Valid is true)
  • Or: "closed": null (if Valid is false)
  • Same applies to last_failure field

Field removal for response size optimization:

  • links: Removed from each regression (reduces response size significantly)
  • test_id: Removed from each regression (large field, can be reconstructed from test_name if needed)

Date filtering (optional):

  • Use --start and --end parameters to filter regressions to a specific time window
  • --start YYYY-MM-DD: Excludes regressions that were closed before this date
  • --end YYYY-MM-DD: Excludes regressions that were opened after this date
  • Typical use case: Filter to the development window
  • --start: development_start date from get-release-dates skill (always applied)
  • --end: GA date from get-release-dates skill (only for GA'd releases)
  • For GA'd releases: Both start and end filtering applied
  • For in-development releases (null GA date): Only start filtering applied (no end date)
  • Benefits: Focuses analysis on regressions during active development, excluding:
  • Regressions closed before the release development started (not relevant)
  • Regressions opened after GA (post-release, often not monitored/triaged - GA'd releases only)

Parse this JSON output to extract relevant information for analysis.

Step 5: Generate Analysis (Optional)

Based on the regression data:

  1. Use the summary counts from the summary and components.*.summary objects (do NOT count the arrays)
  2. Identify most affected components using components.*.summary.open.total
  3. Compare with previous releases
  4. Analyze trends in open vs closed regressions per component
  5. Create visualizations if needed

Error Handling

Common Errors
  1. Network Errors
  • Symptom: URLError or connection timeout
  • Solution: Check network connectivity and firewall rules
  • Retry: The script has a 30-second timeout, consider retrying
  1. HTTP Errors
  • Symptom: HTTP 404, 500, etc.
  • Solution: Verify the API endpoint URL is correct
  • Check: Ensure the release parameter is valid
  1. Invalid Release

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
114
Repository forks
307
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/openshift-eng/ai-helpers/list-regressions/badge)](https://verified-skill.com/skills/openshift-eng/ai-helpers/list-regressions)

Something wrong with this skill or its page? Tell us.