Command Palette

Search for a command to run...

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

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от 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

  1. Python 3 (3.10 or later)

    • Uses only standard library (no external dependencies)
  2. 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
  3. 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 gcloud entirely, JUnit data is skipped and the snapshot is reported as incomplete (see Data completeness)
  4. Container runtime (podman) — for RHCOS RPMDB extraction

    • Install: available in most Linux distributions; brew install podman on 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
  5. rpm CLI — 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
  6. Network access to:

    • *.ocp.releases.ci.openshift.org (release controller)
    • sippy.dptools.openshift.org (historical payload fallback)
    • api.github.com (via gh CLI)
    • storage.googleapis.com (via gcloud CLI)

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:

  1. Parse the payload tag to determine version, stream, and architecture
  2. Probe all available streams for the version (nightly, ci, across architectures)
  3. 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
  4. 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
  5. Split jobs into blocking/informing directories with metadata and GCS browser links
  6. For each failed blocking job, download and parse JUnit XML test results
  7. For each failed blocking job, download build-log.txt from GCS and extract error/warning lines + log tail
  8. Track test failure regressions — when did each failure first appear?
  9. Track per-job failure streaks — consecutive failures, originating payload, failure pattern
  10. For each unique PR across all changelogs, fetch the git diff, comments, and CI jobs via gh
  11. For each payload in the chain, extract the full RPM database from RHCOS images via podman
  12. Diff the target payload's RPM changelogs against every older payload in the chain, using the extracted RPMDBs
  13. 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
Полный SKILL.md на GitHub

Установить payload-snapshot в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/payload_snapshot.pyscripts/test_collection_completeness.pyscripts/test_gcs_bucket_remap.pyscripts/test_rpm_changelogs.pyscripts/test_sippy_fallback.pyscripts/test_test_classification.py

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 запускает скрипты?

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

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

Сравнить payload-snapshot с