OCPCRT-640: refresh child-bug PRs when a parent bug transitions to VERIFIED #817
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 309 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #817"
general
weight: 0.35
machine424
Requested and assisted by machine424 via Slack.
What
When the release-controller Jira verifier transitions a bug from
ON_QAtoVERIFIED, also post/jira refreshon the open PRs of any child (clone) bugs that are still carrying thejira/invalid-buglabel.Why
Backport (
release-) bug PRs must satisfy a "waterfall" dependency: the jira-lifecycle-plugin marks themjira/invalid-buguntil the parent (higher-version) bug reaches a valid state (VERIFIED,RELEASE PENDING, or one of theCLOSED ()states). That validation is GitHub-event-driven — it only re-evaluates on PR create / title edit. When the parent bug becomes valid after the child PR was opened, nothing re-triggers the check, so the child PR stays blocked until someone manually comments/jira refresh.VERIFIEDis the first state that satisfies the dependency, and the release-controller is the component that performs that transition — so it is the natural, event-accurate place to nudge the affected child PRs.Tracked by OCPCRT-640.
How
refreshChildPRs(issue)inpkg/jira/jira.go, invoked right after a successfulON_QA → VERIFIEDtransition inVerifyIssues().BlocksandDependlink types (mirroring the jira-lifecycle-plugin dependency resolution), resolves their linked GitHub PRs via Jira remote links, and — only for open PRs in theopenshiftandopenshift-engorgs that still carry thejira/invalid-buglabel — posts/jira refresh.CreateComment(no dedup overhead — VERIFIED fires once per bug). Failures are logged and never block parent verification.Known limitation
This fires only when the release-controller itself transitions a bug to VERIFIED. Bugs verified externally (e.g. via
/verified later→ manual QA) are not covered — that would require Jira webhooks or periodic polling.Testing
TestRefreshChildPRs(table-driven,fakejira/fakegithub): Blocks link, Depend link, no children, missing label, org allow-list, openshift-eng org, multiple mixed links, unrecognized link type, error handling (9 sub-tests).go build ./...,go test ./pkg/jira/...,gofmt,go vetall clean.---
AI-generated. Review for accuracy.