openshift-eng/ai-helpers/bulk-triage-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.

Use this skill for Component Readiness triage duty - holistically analyze and triage all untriaged regressions for a set of components in a view, clustering them into root-cause buckets

Install

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

SKILL.md

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

Bulk Triage Regressions

Input

bulk-triage-regressions <view> [--components comp1 comp2 ...] [--auto-triage] [--existing-only]
bulk-triage-regressions --views <v1> <v2> ... --policy post-ga [--write-mode report|auto]

Example: bulk-triage-regressions 5.0-main --components Installer Unknown

Description

This skill implements the Component Readiness triage duty workflow: it fetches all untriaged regressions for a set of components in a view (e.g., 5.0-main, components Installer and Unknown), analyzes them as a batch, clusters them into root-cause buckets, and then triages each bucket to a single JIRA bug (existing or new).

This differs from /ci:analyze-regression (which analyzes a single regression in depth). Triage duty requires a holistic view, because:

  1. Many regressions, few root causes. One product bug commonly opens 5–30 regressions across variants (different platforms, arches, featuresets, upgrade modes) and across "wrapper" tests (install should succeed: overall, : cluster bootstrap, : cluster creation, verify the cluster readiness and stability, mass-failure tests, etc.). Analyzing regressions one-by-one wastes effort and risks filing duplicate bugs. Cluster first, deep-dive once per cluster.
  1. Component attribution is often wrong. Regressions in Installer and Unknown are catch-all attributions. A failed installation or bootstrap is frequently caused by a specific component — e.g., a monitoring operator failing to go available blocks cluster creation, an etcd slowness issue breaks bootstrap, an MCO bug degrades nodes during install. The Sippy component label tells you which test failed, not whose bug it is. The real owner must be determined from artifacts (cluster operator status, log bundle, operator logs), and the JIRA bug must be filed against the actual owning component, not Installer.

Use this skill when doing triage duty for a view, or whenever a user asks to "look at all untriaged regressions from <components>" rather than a single regression ID.

Implementation

Script invocation rules: Run Python skill scripts directly and analyze their JSON output with your own reasoning (pass --format json where the script offers the flag; scripts without it, such as list_regressions.py, emit JSON by default). Do not pipe script output through inline Python one-liners. Do not suppress stderr: if a script exits non-zero or returns invalid/empty JSON, stop and surface the error — an authentication or API failure must never be mistaken for an empty inventory ("nothing to triage").

Authentication: Read steps (listing, fetching details, test runs, GCS artifacts) require no auth — Phases 1–3 and a read-only report must work without any credentials. Two Sippy hosts exist and the split matters: https://sippy.dptools.openshift.org is public and read-only (regressions, test details, and the full symptom/label catalog — see the list-symptoms skill), while everything on https://sippy-auth.dptools.openshift.org requires a DPCR Bearer token, including the reevaluate probe, which has no public equivalent (the route returns 404 on the public host). The only Phase 3 step that needs a token is therefore the active symptom probe. When it is unavailable (no token, or a 401/403), treat the result as an unknown — never as "no symptoms matched", the same error as reading a failed listing script as an empty inventory, and work down this fallback: (1) passive label_summary / job_labels from fetch-regression-details; (2) list the catalog from the public API with the list-symptoms skill and grep each plausible symptom's match_string against its file_pattern in the GCS artifacts you are already fetching — this reproduces the probe locally for the handful of symptoms related to the bucket's stage and platform; (3) only then the full evidence ladder, recording that the active probe was unavailable so the next shift knows the catalog was checked by hand. Write credentials are validated only when writes are going to happen: with --auto-triage, validate both up front (so an expired token surfaces before hours of analysis); otherwise validate at the start of Phase 4, before the first write. Sippy writes (creating/updating triage records) require a Bearer token from the DPCR cluster (api.cr.j7t7.p1.openshiftapps.com:6443) — see the oc-auth skill and the token-extraction snippet in /ci:analyze-regression; check with an authenticated GET against https://sippy-auth.dptools.openshift.org/api/component_readiness/triages (200 vs 401/403).

JIRA writes (filing bugs, set-release-blocker, add-jira-triage-link) additionally require JIRA credentials in the environment: either JIRA_USERNAME and JIRA_API_TOKEN (API token from https://id.atlassian.com/manage-profile/security/api-tokens), or a service-account OAuth credential in JIRA_CLIENT_ID, JIRA_CLIENT_SECRET and JIRA_CLOUD_ID, which takes precedence when set and never falls back to the API token. Verify either kind with python3 plugins/ci/scripts/jira_auth.py check (exit 0 and the account vs an error). With a service-account credential, Basic auth against https://redhat.atlassian.net does not work: send every direct JIRA REST call (searches, comments, issue creation when the Jira MCP tools are unavailable) through python3 plugins/ci/scripts/jira_auth.py request <METHOD> '/rest/api/3/...' [--data-file body.json], which obtains the access token itself and prints only the response. If a required write credential is missing or invalid, pause before Phase 4 and ask the user to fix it — the analysis and report so far remain valid and must still be presented.

Phase 0: Run the pre-pass (post-ga only)

With --policy post-ga, first run scripts/prepass.py with the given views. Treat the prepass.json clusters as the complete batch inventory: do not re-derive clusters, and do not call the list/details/related APIs for inventory. Analyse clusters in file order (HIGH first) within the time budget. A symptom_probe.status other than ok means unknown, never "no symptoms matched". Read and follow references/post-ga-policy.md for everything else in this mode, and skip Phase 1's collection steps.

Phase 1: Collect the full batch
  1. Load CI context: Read the files in plugins/ci/references/ (jobs.md, tests.md, sippy-apis.md) for conventions on tests, jobs, and Sippy APIs.
  1. Parse arguments:
  • view: required, e.g. 5.0-main
  • --components: component filter list, e.g. Installer Unknown. Matching is case-insensitive and hierarchy-aware: a filter matches the full component name or any / -separated segment of it, so Installer also covers Installer / openshift-installer, and Networking covers Networking / ovn-kubernetes, Networking / router, and every other Networking / * component. If omitted, ask the user which components the duty covers.
  • --auto-triage: if present, triage buckets without per-bucket confirmation when confidence is high (see Phase 4). Default is to present findings and confirm before writing.
  • --existing-only: never file new JIRA issues; write only for matches to existing issues (see "Existing-only mode" in Phase 4).
  1. List regressions with the list-regressions skill:

``bash python3 plugins/teams/skills/list-regressions/list_regressions.py \ --view <view> --components <components...> ``

Keep only open, untriaged regressions (empty triages array), but note recently-triaged ones — they are prime candidates for absorbing untriaged siblings.

Closed regressions are out of scope — even when untriaged. A regression whose closed field is set has already resolved itself; do not inventory it, cluster it, deep-dive it, or recommend retroactive triage for it. The duty batch consists solely of open untriaged regressions. Closed regressions may be consulted as evidence (e.g., a closed sibling that shares a root cause with an open bucket, or a closed sibling whose existing triage/JIRA an open bucket should reuse — see Pitfalls), but they must never appear as bucket members, action items, or "leftovers" in the report. The only exception is the explicit closed-set audit mode (--audit-closed, see below), which the user must request by name — it is never part of a normal duty run.

  1. Build a batch inventory table: For every open untriaged regression record: regression ID, test name, component/capability, variants (Platform/Arch/Network/Topology/FeatureSet/Upgrade), opened date, failure/run counts. Present this table to the user up front so the scope of the duty run is visible. Do not include closed regressions in the inventory.
  1. Stale-triage sweep (mandatory) — a 100% triaged board can still hide live defects. For every open, already-triaged regression, compare its last_failure against the state of its triage's JIRA: a regression whose bug is Closed/Verified/resolved but which has failed after the resolution date is an alarm, not a statistic. Its fresh failure window is either a failed fix or — more often — a different cause hiding behind the old triage record. For each such regression, verify the recent runs' signature (armed Sippy symptoms are a cheap first oracle: dry-run reevaluate the newest runs — label hits map windows to known causes instantly; unlabeled recent runs mean a new, uninvestigated cause; a hit label whose bugs differ from the triage's JIRA suggests a new cause, one listing the same closed bug a failed fix; a label linking several bugs is inconclusive — compare the runs' signature and timing with each) and add the correct triage(s) for the new window rather than trusting the stale one. (Case 4 in case-notes.md: three "triaged" regressions pointing at a Closed bug while failing daily from two new causes.)
  1. Long-lived wrapper regressions are cause *timelines*, not single buckets. A wrapper regression that stays open for weeks accumulates causes, each window separately verified and separately triaged. When a previously-analyzed regression shows new last_failure dates, re-verify the new window from scratch — never assume the existing triage covers it. (Case 13: one record carried four causes.)
Phase 2: Cluster into candidate buckets (cheap signals first)

Before any deep log analysis, group regressions using signals already in hand:

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/bulk-triage-regressions/badge)](https://verified-skill.com/skills/openshift-eng/ai-helpers/bulk-triage-regressions)

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