trigger-payload-job
БесплатноБез исполняемых скриптовНе проверенMUST be used whenever triggering payload testing on a PR. Do not post payload commands without following this skill — the command syntax is specific and other…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Trigger Payload Job
This skill triggers payload validation jobs on a GitHub PR by posting the correct Prow commands as PR comments, then polls for the bot response to collect the resulting job URLs.
When to Use This Skill
This skill MUST be used whenever triggering payload testing on a PR. This includes revert PRs, draft experimental revert PRs, or any PR that needs payload validation. Do not post payload commands without following this skill — the command syntax is specific and other formats will be silently ignored by the bot.
Inputs (passed in-context by the caller):
pr_url: The GitHub PR URL to trigger jobs on (e.g.,https://github.com/openshift/ovn-kubernetes/pull/3040)org,repo,pr_number: Parsed from the PR URLjobs: List of jobs to trigger, each with:job_name: The full job name (e.g.,aggregated-hypershift-ovn-conformance-4.22)is_aggregated: Whether this is an aggregated job (hasaggregated-prefix)underlying_job_name: For aggregated jobs only — the underlying periodic job name (e.g.,periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-aws-ovn-conformance). This MUST be extracted from the aggregated job's junit artifacts by the caller's analysis — it cannot be derived from the aggregated job name.count: For aggregated jobs only — how many runs (default: 10). Use judgement: fewer runs when triggering many jobs to limit resource consumption, more when only one or two jobs need validation.
Prerequisites
- GitHub CLI (
gh): Installed and authenticated - Repository Access: User must have permission to comment on the PR
Job Triggering Limits
The caller is responsible for enforcing global limits before invoking this skill. However, this skill also enforces the following hard limits per invocation:
- Non-aggregated jobs: No more than 5 per comment
- Aggregated jobs: No more than 1 per comment. Aggregated jobs are expensive (they run many iterations), so only trigger one at a time. A second aggregated job should only be triggered after the first completes, and only if confirmation is needed.
If the jobs input exceeds these limits, trigger only the allowed number (prioritizing by the order provided) and return the remainder as skipped in the return format.
Implementation Steps
Step 1: Idempotency Check
Before posting new payload commands, check whether jobs were already triggered on this PR:
gh api "repos/<org>/<repo>/issues/<pr_number>/comments?per_page=100&sort=created&direction=desc" \
--jq '[.[] | select(.user.login == "openshift-ci[bot]" and (.body | contains("pr-payload-tests")))] | .[0] | .body'
If a pr-payload-tests.ci.openshift.org/runs/ci/<uuid> URL is found, reuse it — skip to Step 3 to extract prow job URLs from that page.
Step 2: Post Payload Commands
First, validate each job entry. If any job has is_aggregated == true but underlying_job_name is empty or null, skip that job and return an error for it — do NOT post a comment with an incomplete command.
Build the comment body with one command per line. Use the correct command for each job type:
- Aggregated jobs (
is_aggregated == true):- If the aggregated job failed 10/10 runs, use
/payload-job <underlying_job_name>instead of/payload-aggregate. A single successful run is sufficient to validate the revert when the original failure was 100%. - Otherwise, use
/payload-aggregate <underlying_job_name> <count>
- If the aggregated job failed 10/10 runs, use
- Non-aggregated jobs (
is_aggregated == false):/payload-job <job_name>
gh pr comment "<pr_url>" --body "<commands>"
Example with a mix of job types:
gh pr comment "https://github.com/openshift/ovn-kubernetes/pull/3040" --body "/payload-aggregate periodic-ci-openshift-hypershift-release-4.22-periodics-e2e-aws-ovn-conformance 10
/payload-job periodic-ci-openshift-release-main-nightly-4.22-e2e-aws-ovn"
Common mistakes to avoid:
- Do NOT use
/payload <version> <stream> <filter>— this triggers a different workflow and does NOT include the PR's changes in the payload - Do NOT use the aggregated job name with
/payload-job— aggregated jobs are not directly triggerable; you must use/payload-aggregatewith the underlying job name - Do NOT use
/payload-aggregatefor non-aggregated jobs
Step 3: Poll for Bot Response
After posting the comment, wait ~30 seconds for the openshift-ci[bot] to process the commands, then poll for its reply:
sleep 30
gh api "repos/<org>/<repo>/issues/<pr_number>/comments?per_page=100&sort=created&direction=desc" \
--jq '[.[] | select(.user.login == "openshift-ci[bot]" and (.body | contains("pr-payload-tests")))] | .[0] | .body'
If no reply is found, retry up to 3 times with 30-second intervals. If still no reply after ~2 minutes, record the comment URL and report that manual checking is required.
Step 4: Extract URLs
From the bot reply, extract:
payload_test_url: The
Установить trigger-payload-job в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл trigger-payload-job?
MUST be used whenever triggering payload testing on a PR. Do not post payload commands without following this skill — the command syntax is specific and other formats will be silently ignored by the bot.
Как установить скилл trigger-payload-job?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл trigger-payload-job запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub