agentleFS
redhat-developerredhat-developer/rhdh-skills/skills/ci/rhdh-prow-jobs/SKILL.md

rhdh-prow-jobs

Skill20 starsChanged 22 days agoApache-2.0View on GitHub

Lists, generates, and removes RHDH test entries and Hive ClusterPools in the openshift/release Prow ci-operator configuration. Covers OCP `e2e-ocp-vX-Y-helm-nightly` entries, `cluster_claim.version`, the `rhdh-cluster-pool` Hive pools, and AKS/EKS/GKE entries with `MAPT_KUBERNETES_VERSION`. Use for "add an OCP test entry", "which OCP versions are we testing", "list the cluster pools", "what AKS/EKS/GKE version is configured", or an OCP coverage-gap analysis.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are 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.

  • 4

    Very specific

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

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

    Read and change which platform versions RHDH is tested on in openshift/release.

    line 16
  2. Very specific:

    Run the bundled scripts instead of reconstructing their YAML logic.

    line 20
  3. Very specific:

    Use --dry-run on generate_cluster_pool.py to preview before writing.

    line 66
  4. Very specific:

    Run make update after any config change, and commit the config and the generated job files together.

    line 69

≈ “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 Prow test entries and cluster pools

Read and change which platform versions RHDH is tested on in openshift/release. Listing and coverage analysis work against the remote repository through gh; generation and removal need a local checkout because they end in make update.

Run the bundled scripts instead of reconstructing their YAML logic. Every script accepts --repo-dir to point at a local openshift/release checkout and falls back to the GitHub API when it is absent.

Route

IntentLoad
List OCP test entries, or add/remove oneworkflows/ocp-jobs.md
List, generate, or delete a Hive ClusterPoolworkflows/ocp-pools.md
Find OCP coverage gaps and stale configurationworkflows/ocp-coverage.md
List AKS, EKS, or GKE entries, or bump their K8s versionworkflows/k8s-jobs.md

Load only the selected workflow.

Scope

This skill owns individual test entries and cluster pools on branches that already exist. Creating or retiring the whole set of jobs for a release branch — the branch config file, its generated jobs, and its branch-protection block — is /rhdh-prow-release-branch. Running a configured job on demand is /rhdh-prow-trigger.

Composition

For whether a platform version is still supported, invoke /rhdh-platform-lifecycle by name and use what it returns. Do not import its Python package or read its files. scripts/analyze_coverage.py queries the lifecycle APIs directly so the scripts stay standalone.

Reading rules

  • Report only versions that came from the read, never from recall. Say which config source was read and when.
  • Extract OCP versions from cluster_claim.version, not from test names — some OCP-targeted tests do not encode the version in their name.
  • A version that is configured is not the same as a version that is supported. Without lifecycle facts, name the platforms that remain unclassified rather than presenting configured versions as supported.

Writing rules

Generating a file, editing a config, running make update, committing, pushing, or opening a pull request is a write. Follow /mutation-gate, naming the config file or job file as the target of each operation.

  • Use --dry-run on generate_cluster_pool.py to preview before writing.
  • generate_test_entry.py prints a block for review; inserting it is a separate approved edit.
  • Run make update after any config change, and commit the config and the generated job files together.
  • Removing an OCP version means both its test entries on every product branch and its cluster pool. Check for the other half before declaring the removal finished.

Completion

A read is complete when the answer names the config source it was read from, every entry, pool, or gap in it came from that read, and anything the scan could not reach is named as unread instead of reported as absent.

A write is complete when every approved file edit has been applied and reported, make update has run, the regenerated job files under ci-operator/jobs/redhat-developer/rhdh/ are named alongside the config change, and the push and pull-request state is stated explicitly — including "not pushed" when nothing was pushed. A removal is complete only once both the test entries and the cluster pool for that version are accounted for.

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.