feat(rhdh-pr-review): add rhdh-chart PR review support#35
feat(rhdh-pr-review): add rhdh-chart PR review support#35Fortune-Ndlovu wants to merge 2 commits into
Conversation
Extend the rhdh-pr-review skill to support reviewing rhdh-chart PRs in addition to rhdh-operator PRs. Chart PRs are tested by checking out the PR branch and deploying the full chart via helm upgrade, since chart CI does not build container images. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract shared phases (PR fetch, active verification, findings structure) into reusable references so adding a new repo requires only ~200 lines of repo-specific content instead of duplicating the full ~500-line workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
durandom
left a comment
There was a problem hiding this comment.
Good work on the shared/specific split — phases 1, 6, 7 are genuinely repo-agnostic and the extraction is well-structured. The chart workflow is thorough (covers both OpenShift and vanilla K8s, handles OLM conflict detection, has proper rollback).
1 blocking issue:
Non-OLM rollback commands dropped from operator workflow. In review-operator-pr.md, the refactored Phase 7.5 only includes OLM-managed rollback. The non-OLM path (oc apply -f /tmp/rollback-install.yaml) was lost during the extraction. Since the operator workflow supports both OLM (4.4a) and non-OLM (4.4b) deployment, both rollback paths must be preserved. Fix: add back the non-OLM rollback block to the operator-specific section of Phase 7.5.
5 non-blocking suggestions:
- Operator security bullets lost specificity — the original mentioned environment variables and digest pinning explicitly; the shared version generalizes these. Consider keeping operator-specific supplements. Also the remaining operator bullet (
go.modCVEs) duplicates the generic version already in the shared file. gh pr checkout --detachinchart-pr-testing.mdassumes CWD is already a rhdh-chart clone — this isn't clear from context and will fail otherwise.--reuse-values+--setin Helm upgrade (Phase 4.3) can surprise when the new chart introduces new required values or renames existing ones — worth noting--reset-valuesas a fallback.find .. -maxdepth 1 -name "rhdh-chart"to locate the chart repo is fragile — depends on CWD being a sibling directory.helm repo add bitnami+helm dependency updateappears in bothchart-pr-testing.mdandreview-chart-pr.mdPhase 2.2 — pick one location to avoid maintenance drift.
Summary
rhdh-pr-reviewskill to support reviewingrhdh-chartPRs alongside the existingrhdh-operatorPR supportWhat changed
New shared framework (
references/shared-*.md)Phases that are structurally identical across repos are extracted into three shared references:
shared-pr-fetch.mdREPO/PR_NUMBERshared-verification.mdshared-findings-structure.mdEach repo-specific workflow references these via the existing pattern: "Read
../references/shared-X.mdand follow the<section>instructions."New chart support
references/chart-pr-testing.md— Thin reference for chart CI behavior (no CI images, local checkout,helm template,ct lint)workflows/review-chart-pr.md— 7-phase chart review workflow (checkout PR branch → local validation → ensure cluster →helm upgradefrom PR branch → diff-based checklist → active verification → findings & rollback)What stays repo-specific
Phases 2-5 are fundamentally different per repo and remain inline:
helm dep updateinstall.yamlmanifestshelm upgradefrom local checkoutBest-practice bullets and rollback commands are also repo-specific, defined inline in each workflow.
Adding a future repo
After this PR, adding a new repo requires:
SKILL.mdNo touching shared references or existing workflows.
Design decisions
ct lint+ct installon KIND without publishing container images. The workflow checks out the PR branch and deploys from the local checkout.deploy_full_bundleprinciple from PR feat: add rhdh-pr-review skill for testing operator PRs on live clusters #20: deploys the complete chart viahelm upgradefrom the PR branch, not just a values override.chart-pr-testing.mdteaches where to look and how to interpret, pointing torhdh-repos.mdand upstream READMEs per PR feat: add rhdh-pr-review skill for testing operator PRs on live clusters #20 review feedback.Test plan
pytest)/skill-makeraudit againstskills/rhdh-pr-review/SKILL.md🤖 Generated with Claude Code