Command Palette

Search for a command to run...

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

fetch-prowjob-json

БесплатноБез исполняемых скриптовНе проверен

Fetch and return key data from a Prow job's prowjob.json artifact given a Prow job URL

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Fetch ProwJob JSON

This skill fetches the prowjob.json artifact for a given Prow job and returns key fields including job metadata, spec details, status, and release annotations.

When to Use This Skill

Use this skill when you need to:

  • Get metadata about a specific Prow job run (status, timing, cluster, pod name)
  • Determine what payload a job was tested against (release.openshift.io/tag)
  • Determine the upgrade source version for upgrade jobs (release.openshift.io/from-tag)
  • Get the release images (RELEASE_IMAGE_LATEST, RELEASE_IMAGE_INITIAL) used in a job
  • Check the ci-operator target and variant for a job
  • Get the GCS bucket path for a job's artifacts

Prerequisites

  1. Network Access: Must be able to reach the GCS web proxy
    • Check: curl -s -o /dev/null -w '%{http_code}' https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/
    • No authentication required

Implementation Steps

Step 1: Parse the Prow Job URL

Extract the GCS path from the Prow job URL. Prow URLs follow this pattern:

https://prow.ci.openshift.org/view/gs/<bucket>/<path>/<job-name>/<build-id>

Extract everything after /view/ to get the GCS reference:

gs/<bucket>/<path>/<job-name>/<build-id>

Step 2: Construct the GCS Web URL

Convert the Prow URL to a gcsweb URL that serves the raw prowjob.json:

https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/<bucket>/<path>/<job-name>/<build-id>/prowjob.json

Example:

  • Input Prow URL: https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/periodic-ci-openshift-release-master-ci-4.22-e2e-gcp-ovn-upgrade/2019864414127132672
  • GCS Web URL: https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results-public/logs/periodic-ci-openshift-release-master-ci-4.22-e2e-gcp-ovn-upgrade/2019864414127132672/prowjob.json

The conversion is: replace https://prow.ci.openshift.org/view/ with https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/ and append /prowjob.json.

Step 3: Fetch the prowjob.json

Use curl or WebFetch to retrieve the JSON content from the constructed URL.

curl -s "https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results-public/logs/<job-name>/<build-id>/prowjob.json"

Step 4: Extract and Return Key Fields

From the full prowjob.json, extract and return the following fields:

Required Fields

Field JSON Path Description
Job Name spec.job Full periodic/presubmit/postsubmit job name
Job Type spec.type periodic, presubmit, or postsubmit
Build ID status.build_id Unique build identifier
State status.state success, failure, aborted, pending, triggered
Description status.description Human-readable status description
Start Time status.startTime ISO 8601 timestamp
Completion Time status.completionTime ISO 8601 timestamp (null if still running)
Cluster spec.cluster Build cluster (e.g., build02, build05)
Pod Name status.pod_name Kubernetes pod name
Prow URL status.url Link back to the Prow job view
Payload Tag metadata.annotations["release.openshift.io/tag"] The payload version tested or upgraded to (e.g., 4.22.0-0.ci-2026-02-06-195709). This is the payload the cluster was tested against or upgraded to.
Upgrade From Tag metadata.annotations["release.openshift.io/from-tag"] The original payload version before upgrade (e.g., 4.22.0-0.ci-2026-02-05-195709). Only present for upgrade jobs. This is the version the cluster starts at before upgrading to the payload tag.
Release Source metadata.annotations["release.openshift.io/source"] Release stream source (e.g., ocp/4.22)
Architecture metadata.annotations["release.openshift.io/architecture"] CPU architecture (e.g., amd64, arm64, multi)
Refs spec.extra_refs Array of repo references (org, repo, base_ref)
Target From spec.pod_spec.containers[0].args The --target= value from ci-operator args
Variant From spec.pod_spec.containers[0].args The --variant= value from ci-operator args
RELEASE_IMAGE_LATEST From spec.pod_spec.containers[0].env The release image the job upgrades to or installs
RELEASE_IMAGE_INITIAL From spec.pod_spec.containers[0].env The initial release image (for upgrade jobs)

Notes on Release Annotations

  • release.openshift.io/tag: Present on release-controller-triggered jobs. Identifies the payload being validated. For upgrade jobs, this is the version the cluster upgrades to.
  • release.openshift.io/from-tag: Only present on upgrade jobs. Identifies the version the cluster starts at before the upgrade. If absent, the job is not an upgrade job.
  • These annotations may not be present on manually triggered or
Полный SKILL.md на GitHub

Установить fetch-prowjob-json в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл fetch-prowjob-json?

Fetch and return key data from a Prow job's prowjob.json artifact given a Prow job URL

Как установить скилл fetch-prowjob-json?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fetch-prowjob-json запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить fetch-prowjob-json с