fetch-job-run-summary
БесплатноЗапускает вложенные скриптыНе проверенFetch a Prow job run summary from Sippy showing all failed tests grouped by SIG with error messages
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Fetch Job Run Summary
This skill fetches a summary of a Prow job run from the Sippy API, listing all tests that failed (excluding flakes) along with their error messages.
When to Use This Skill
Use this skill when you need to:
- List all tests that failed in a specific Prow job run
- Understand which components are affected by failures in a job
- Identify dominant error patterns across multiple test failures
- Investigate mass test failure regressions by examining the underlying test failures
- Get a quick overview of a job run's health (pass rate, infrastructure failure, etc.)
Prerequisites
- Python 3: Version 3.6 or later
- Network Access: Must be able to reach
https://sippy.dptools.openshift.org
Implementation
script_path="plugins/ci/skills/fetch-job-run-summary/fetch_job_run_summary.py"
# Text output (AI-readable)
python3 "$script_path" <prow_job_run_id>
# JSON output (structured)
python3 "$script_path" <prow_job_run_id> --format json
Parameters
| Parameter | Required | Description |
|---|---|---|
prow_job_run_id |
Yes | The Prow job run ID (numeric, e.g., 2030845545290928128) |
--format |
No | Output format: text (default) or json |
Extracting a Job Run ID
The job run ID can be extracted from a Prow job URL:
https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/<job-name>/<job_run_id>
The last path segment is the job run ID.
API Details
Endpoint: https://sippy.dptools.openshift.org/api/job/run/summary
Query Parameter: prow_job_run_id (required)
Response Fields:
| Field | Type | Description |
|---|---|---|
id |
int | Prow job run ID |
name |
string | Full job name |
release |
string | OpenShift release (e.g., 4.22) |
cluster |
string | Build cluster (e.g., build01) |
url |
string | Prow job URL |
startTime |
string | ISO 8601 start time |
durationSeconds |
int | Job duration in seconds |
overallResult |
string | S (success) or F (failure) |
reason |
string | Human-readable result reason |
infrastructureFailure |
bool | Whether this was an infrastructure failure |
testCount |
int | Total number of tests run |
testFailureCount |
int | Number of failed tests |
testFailures |
dict | Map of test name to error message (excludes flakes) |
variants |
list | Job variant tags |
Flake Handling
The Sippy API automatically handles flake detection. When a test has both a failure and a pass in the same job run's junit results (the standard flake pattern), it is not included in testFailures. Only true failures — tests that failed without a corresponding pass — appear in the results.
Output
Text Format
The text output is structured for AI consumption with:
- Job Run Summary: Metadata (job name, release, duration, result, variants)
- Test Statistics: Total tests, failures, pass rate
- Failed Tests: Failure count (sorted by count descending)
- Dominant Error Patterns: Error messages appearing in >5% of failures, with counts
- Detailed Failures: Each failed test with its error message, grouped by SIG
JSON Format
Structured JSON with the same data:
{
"success": true,
"job_name": "periodic-ci-openshift-hypershift-...",
"job_run_id": "2030845545290928128",
"release": "4.22",
"test_count": 3827,
"failure_count": 400,
"pass_rate": 89.5,
"failed_tests": [
{"test_name": "[sig-cli] example test name", "error": "error message..."}
],
"dominant_error_patterns": [
{"pattern": "stale GroupVersion discovery: ...", "count": 50, "percentage": 12.5}
]
}
Examples
Example 1: Investigate a Mass Test Failure
# Get the summary of a job run that triggered mass test failures
python3 plugins/ci/skills/fetch-job-run-summary/fetch_job_run_summary.py 2030845545290928128
Example 2: Compare Two Runs
# Fetch summaries for a failing and passing run to diff
python3 plugins/ci/skills/fetch-job-run-summary/fetch_job_run_summary.py 2030845545290928128 --format json > failing.json
python3 plugins/ci/skills/fetch-job-run-summary/fetch_job_run_summary.py 2030845542774345728 --format json > passing.json
Notes
- The
testFailureCountmay be slightly higher than the number of entries intestFailuresdue to internal deduplication - Error messages are truncated to 300 characters in text output to keep output manageable
- The dominant error pattern detection strips UUIDs and timestamps for better grouping
- For test-level output analysis (raw test failure output for a specific test across runs), use the
fetch-test-runsskill instead
See Also
- Related Skill:
fetch-test-runs- Fetch raw outputs for a specific test across multiple job runs - Related Skill:
fetch-regression-details- Fetch Component Readiness regression details - Related Skill:
ci:prow-job-analysis- Comprehensive analysis
Установить fetch-job-run-summary в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fetch-job-run-summary?
Fetch a Prow job run summary from Sippy showing all failed tests grouped by SIG with error messages
Как установить скилл fetch-job-run-summary?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fetch-job-run-summary запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic