Command Palette

Search for a command to run...

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

qa-verify-console

БесплатноЗапускает вложенные скриптыНе проверен

Capture before/after screenshots of OpenShift Console PRs running against a live cluster using Puppeteer, generate visual diff comparisons, and post evidence…

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

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

qa-verify-console — Visual QA Verification for OpenShift Console PRs

Overview

This skill captures before/after screenshots of an OpenShift Console PR running against a live cluster, generates flicker GIFs to highlight visual differences, and posts evidence to the PR. It enables rapid visual QA without manual browser testing.

"Agent" throughout this document refers to the Claude Code agent executing the skill — the LLM-driven process that runs commands, makes decisions about which routes to capture, and interprets results.

Post-PR design: This skill operates on an already-published pull request. It requires a valid PR number so it can fetch both the head and base branches, read the diff to identify affected routes, and post evidence back as a PR comment. It is not designed for pre-PR / local-branch workflows.

The agent:

  1. Clones openshift/console, builds both the base and PR branches
  2. Runs the console bridge (dev server) against a real OCP cluster
  3. Uses Puppeteer to capture screenshots of affected routes
  4. Compares baseline vs candidate screenshots and posts evidence to the PR

Prerequisites

Dependency Minimum Version Notes
Node.js 22+ Required by console's frontend build
Corepack (bundled) Must be enabled: corepack enable
Yarn Berry 4.x Managed via corepack, .yarnrc.yml in repo
Go 1.25+ Required for backend (bridge) build
oc 4.x OpenShift CLI for cluster access
gh 2.99+ GitHub CLI for PR metadata + comment posting
git 2.x Full clone required (both branches needed)
Chrome/Chromium 120+ Installed by Puppeteer; system libs needed

Recommended Pod Resources

CPU:               8 cores
Memory:            16Gi
Ephemeral Storage: 40Gi

The console frontend build (yarn install --immutable && yarn run build) is CPU- and memory-intensive. The Go backend build is lighter but still benefits from multiple cores.


Inputs

The agent receives two inputs:

  1. PR number — The openshift/console pull request to verify (e.g., 17199)
  2. OC login command — A full oc login command string with token and server URL, passed explicitly as the OC_LOGIN_CMD environment variable. This is not an ambient kubeconfig assumption — the caller must provide a complete oc login --token=... --server=... command that the script evals to authenticate against the target cluster.

Optional:

  1. Routes — Comma-separated list of console routes to capture. If not provided, the agent analyzes the PR diff to determine affected routes.

Evidence Directory Layout

/workspace/evidence/
  baseline/           # Screenshots from the base branch
    overview.png
    k8s_cluster_nodes.png
    ...
  candidate/          # Screenshots from the PR branch
    overview.png
    k8s_cluster_nodes.png
    ...
  flicker/            # Animated GIFs showing differences
    overview.gif
    k8s_cluster_nodes.gif
    ...
  metadata.json       # PR metadata (branches, author, etc.)
  baseline.json       # Capture summary for baseline
  candidate.json      # Capture summary for candidate

Phases

Phases 0–1 — Validate Inputs & Setup Environment

Fully automated by scripts/setup.sh — the agent just runs it and checks the exit code. No LLM decisions needed.

OC_LOGIN_CMD="oc login --token=... --server=..." \
  bash /workspace/qa-verify-console/scripts/setup.sh "$PR_NUMBER"

On success (exit 0), the script produces:

  • /workspace/evidence/metadata.json — PR metadata
  • /workspace/console/ — cloned repo with base-branch checked out and pr-branch available
  • /workspace/evidence/setup-env.sh — sourceable env vars (LD_LIBRARY_PATH, CHROME_BIN, QA_TOOLS_DIR, branch refs)

The agent should source /workspace/evidence/setup-env.sh before proceeding.

On failure (non-zero exit), setup.sh prints a descriptive error to stderr. The agent should report the error and stop.


Phase 2 — Determine Routes & Capture Baseline

Goal: Decide which console routes to screenshot, then build the base branch and capture them.

Agent decisions (LLM judgement required):

  1. Route selection — Analyze the PR diff (gh pr diff "$PR_NUMBER") to determine which console routes are visually affected by the changes. Consider:
    • Which React components are modified and what routes render them
    • Whether the change is cosmetic (CSS/layout) vs. behavioral
    • Common route patterns:
      • / (overview/dashboard)
      • /k8s/cluster/nodes, /k8s/cluster/projects
      • /k8s/ns/<namespace>/pods
      • /monitoring/alerts, `/settings
Полный SKILL.md на GitHub

Установить qa-verify-console в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/capture-screenshots.jsscripts/setup.sh

FAQ

Что делает скилл qa-verify-console?

Capture before/after screenshots of OpenShift Console PRs running against a live cluster using Puppeteer, generate visual diff comparisons, and post evidence to the PR. Use when a Console PR needs visual QA verification or screenshot-based regression testing.

Как установить скилл qa-verify-console?

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

Скилл qa-verify-console запускает скрипты?

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

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

Сравнить qa-verify-console с