query-test-result

query-test-result is a command for Claude Code from openshift-eng/ai-helpers. It costs 11 tokens per session (2,523 once invoked), scanned A, original, Apache-2.0.

A command that queries Sippy, a service that stores and analyzes OpenShift CI test results, using an OpenShift version and test-name keywords.

In plain words
What is it for?
Use it to check pass rates and run counts, find failure patterns, inspect regressions, and open failed Prow job runs.
Why use it?
It avoids searching test dashboards manually and brings failure details and run links together.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the ci plugin — 37 skills, 21 commands, 2 agents shipped together

Good fit Use it to check pass rates and run counts, find failure patterns, inspect regressions, and open failed Prow job runs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/ai-helpers/query-test-result
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install ci, the plugin that ships this one along with the rest of its 37 skills, 21 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for query-test-result

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/query-test-result/github.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/query-test-result)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/query-test-result"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/query-test-result/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for query-test-result

Your own site · 80×15
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/query-test-result"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/query-test-result.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,523 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.02523
Opus 5.5 $0.00004 $0.01009
Sonnet 5.5 $0.00002 $0.00505
Haiku 4.5 $0.00001 $0.00252

Measured 1mo ago against content hash a825745c4fda, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

query-test-result scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/ci/commands/query-test-result.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

ci:query-test-result

Synopsis

/ci:query-test-result <version> <keywords> [sippy-url]

Description

The ci:query-test-result command queries OpenShift CI test results from Sippy based on the OpenShift version and test name keywords. It retrieves test statistics including pass rate, number of runs, failures, and links to failed job runs.

By default, it queries the production Sippy instance at sippy.dptools.openshift.org. You can optionally specify a different Sippy instance URL to query alternative environments (e.g., QE component readiness).

This command is useful for:

  • Checking the health of specific test cases
  • Finding test failure patterns
  • Getting links to failed Prow job runs for debugging
  • Monitoring test regression trends
  • Querying different Sippy instances (production, QE, etc.)

Arguments

  • $1 (version): OpenShift version to query (e.g., "4.21", "4.20", "4.19")
  • $2 (keywords): Keywords to search in test names (e.g., "PolarionID:81664", "olmv1", "sig-storage")
  • $3 (sippy-url) [optional]: Sippy instance base URL. Defaults to "sippy.dptools.openshift.org" if not provided. Examples: "qe-component-readiness.dptools.openshift.org"

Implementation

  1. Parse Arguments

    • Extract version from $1 (e.g., "4.21")
    • Extract keywords from $2 (e.g., "81664" or "olmv1")
    • Extract Sippy URL from $3 if provided, otherwise use default "sippy.dptools.openshift.org"
    • Normalize URL to extract base domain for API endpoint (strip "/sippy-ng/" suffix if present)
    • Add "https://" prefix if not already present
  2. Build Sippy API Request

    • Construct filter JSON for the /api/tests endpoint:
      filters = {
          "items": [
              {
                  "columnField": "name",
                  "not": False,
                  "operatorValue": "contains",
                  "value": keywords
              }
          ],
          "linkOperator": "and"
      }
      
    • Set query parameters:
      • release: The OpenShift version
      • filter: JSON-encoded filter object
      • sort: "asc"
      • sortField: "net_improvement"

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +5 lines a825745c4fda
  2. 2mo ago Changed 00d6424a2a43
  3. 3mo ago First seen · 248 lines · 11 tokens per session scan A 7729cbaa76b2

Subscribe to this mod's changes

query-test-result is a command published in the GitHub repository openshift-eng/ai-helpers (123 stars, last pushed 4d ago), licensed Apache-2.0. It adds 11 tokens to every session and 2,523 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

query-test-result compared with commands from other repositories

query-test-result next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
query-test-resultopenshift-eng/ai-helpersCommand1234d agoApache-2.0A11Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
convergegithub/spec-kitCommand153k3d agoMITA35Claude Code
implementgithub/spec-kitCommand153k3d agoMITA14Claude Code