agentleFS
redhat-developerredhat-developer/rhdh-skills/skills/plugins/rhdh-operator-pr-test/SKILL.md

rhdh-operator-pr-test

Skill20 starsChanged 20 days agoApache-2.0View on GitHub

Tests an rhdh-operator pull request's CI-built operator, operator-bundle, and operator-catalog images on a live OpenShift cluster with oc, and reports evidence plus rollback. Use for "test this operator PR on a cluster", redhat-developer/rhdh-operator PR images or bundles, OLM CatalogSource and Subscription from a PR catalog, quay.io/rhdh-community/operator, or deploying a PR's CI bundle with oc.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow workflows/test-operator-pr.md from the top.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RHDH Operator PR Test

Deploy the PR's CI-built bundle onto a live cluster and verify the change there. GitHub code review belongs to /rhdh-pr-review.

Start here

Follow workflows/test-operator-pr.md from the top. Load references/operator-pr-images.md when extracting or validating CI image URLs.

Gates

GateRequired checkIf fail
Forge/rhdh-forge is installed and returns the PRStop; name /setup-rhdh-skills install
ococ is on PATHStop; name /setup-rhdh-skills
Clusteroc whoami succeedsStop; the human runs oc login, or follows the rhdh-test-instance provision path in the workflow
RepositoryThe PR is redhat-developer/rhdh-operatorStop; this skill tests that repository only

Boundaries

  • /rhdh-forge owns GitHub reads. Invoke it by name with the PR URL or number and consume repository, number, state, files, diff, head and base refs, and comments. Do not parse the URL here or copy a fetch workflow.
  • /rhdh-pr-review owns analyzing the diff for merge comments and posting a GitHub review.
  • /rhdh-local owns a local compose runtime, not a live OpenShift cluster.
  • /rhdh-overlay owns overlay PR artifact checks, not operator bundles.
  • /rhdh-context locates an RHDH checkout when a local rhdh-test-instance tree is needed. Do not add it as a catalog dependency.

Writes

Posting a /test comment, applying or deleting cluster resources, and deploying or rolling back an RHDH instance are external writes: invoke /mutation-gate and follow it. A cluster operation's target names the namespace; a comment's target names the repository and PR number. A request to test approves no write.

Deploy the full PR bundle or manifests, not only the operator binary image. Preserve the original cluster state and report it with cleanup.

Completion

Complete when the report names the PR and images used, one result per live check, the overall verdict, the deployed bundle or manifests, original and final cluster state, rollback commands, cleanup status, and the outcome of every approved write including skipped ones. Do not cache cluster state inside the skill directory.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.