payload-snapshot
БесплатноЗапускает вложенные скриптыНе проверенSnapshot OpenShift payload data (release controller, PR diffs, comments, CI jobs, JUnit results, regression tracking) to a local directory for offline analysis
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Payload Snapshot
This skill downloads all data needed to analyze an OpenShift payload into a local directory tree. The resulting snapshot can be navigated entirely via file reads — no live API calls required during analysis.
When to Use This Skill
Use this skill when you need to:
- Analyze a rejected payload and want all data available locally before starting
- Create a reproducible snapshot of payload state at a point in time
- Track test failure regressions across multiple payloads
- Work offline or reduce API calls during payload analysis
Prerequisites
Python 3 (3.10 or later)
- Uses only standard library (no external dependencies)
GitHub CLI (
gh) — for PR diff, comment, and job data- Install:
brew install gh(macOS) or see https://cli.github.com - Authenticate:
gh auth login - Without
gh, release controller data is still fetched; PR data is skipped
- Install:
Google Cloud SDK (
gcloud) — for JUnit test result download- Install:
brew install google-cloud-sdk(macOS) or see https://cloud.google.com/sdk - Authentication is not required — the CI artifact buckets are public and are read anonymously when no account is configured
- Without
gcloudentirely, JUnit data is skipped and the snapshot is reported as incomplete (see Data completeness)
- Install:
Container runtime (
podman) — for RHCOS RPMDB extraction- Install: available in most Linux distributions;
brew install podmanon macOS - Requires access to the release image registry (e.g.,
registry.ci.openshift.org) - Without
podman, RPMDB data is skipped; all other data is still collected
- Install: available in most Linux distributions;
rpmCLI — for the RPM changelog diffs between payloads- Queries the already-extracted RPMDBs locally; no network, no root
- Without
rpm, changelog diffs are skipped; the RPMDBs themselves are still extracted
Network access to:
*.ocp.releases.ci.openshift.org(release controller)sippy.dptools.openshift.org(historical payload fallback)api.github.com(viaghCLI)storage.googleapis.com(viagcloudCLI)
Implementation Steps
Step 1: Run the Snapshot Script
script_path="plugins/ci/skills/payload-snapshot/scripts/payload_snapshot.py"
# Snapshot a specific payload
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806
# Custom output directory
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --output-dir .work/snapshot
# Limit chain depth
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --max-chain 5
# Skip JUnit download (faster, still generates job structure and summary)
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --no-junit
# Skip RPMDB extraction
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --no-rpmdb
# Skip the RPM changelog diffs (RPMDBs are still extracted)
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --no-rpm-changelogs
# Force Sippy for all payload metadata (normally fallback is automatic)
python3 "$script_path" 4.22.0-0.nightly-2026-02-25-152806 --sippy
The script will:
- Parse the payload tag to determine version, stream, and architecture
- Probe all available streams for the version (nightly, ci, across architectures)
- Chain backwards through Sippy's time-ordered release tag list until finding one where all blocking jobs passed, restoring tags garbage collected from the release controller
- For each payload in the chain, prefer release controller data and changelogs; fall back per historical tag or cross-tag diff to Sippy payload, PR, and job data
- Split jobs into blocking/informing directories with metadata and GCS browser links
- For each failed blocking job, download and parse JUnit XML test results
- For each failed blocking job, download build-log.txt from GCS and extract error/warning lines + log tail
- Track test failure regressions — when did each failure first appear?
- Track per-job failure streaks — consecutive failures, originating payload, failure pattern
- For each unique PR across all changelogs, fetch the git diff, comments, and CI jobs via
gh - For each payload in the chain, extract the full RPM database from RHCOS images via
podman - Diff the target payload's RPM changelogs against every older payload in the chain, using the extracted RPMDBs
- Generate summary.json with comprehensive triage data, plus AGENTS.md/CLAUDE.md for agent orientation
Step 2: Navigate the Snapshot
The output directory is structured for easy navigation:
payload/
<version>/
<stream>/
summary.json # START HERE — full triage data
CLAUDE.md # Imports AGENTS.md for Claude Code
AGENTS.md # Dynamic snapshot orientation doc
streams.json # All streams for this version
<tag>/ # Each payload in the chain
payload.json
Установить payload-snapshot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл payload-snapshot?
Snapshot OpenShift payload data (release controller, PR diffs, comments, CI jobs, JUnit results, regression tracking) to a local directory for offline analysis
Как установить скилл payload-snapshot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл payload-snapshot запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic