← Back to Pull requests

OCPSTRAT-3686: Inject the layered image into a configurable env var for prow jobs #825

Closed
unknown closed this pull request without merging on Sep 29, 2026 12:32 UTC
View on GitHub
unknown unknown commented on Sep 28, 2026 17:10 UTC
Author

Layered releases are not release payloads: each tag is a reference to a single pre-built image in an external repository, and the controller never mirrors it. Setting RELEASE_IMAGE_LATEST to that image would break the install, and IMAGE_FORMAT / IMAGE_ cannot be resolved at all because there is no mirror imagestream.

Instead, prow jobs for layered releases now get the image from the source of the tag injected into a single environment variable, which is also passed through to ci-operator as a multi stage parameter. This lets a layered job install OpenShift from the release named in its own configuration while overriding just the one image within its steps.

The variable name defaults to LAYERED_IMAGE_LATEST and can be set stream wide via layeredImageEnvVar on the release config, or per job via the same field on a verify or periodic entry, where the job level value wins. Names are validated when the release config is parsed so that an invalid name is rejected up front rather than producing an unusable prow job.

Periodics also no longer fail to schedule on layered streams: GetMirror is skipped entirely rather than treated as a fatal error.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Layered releases can pass their container image to verification and periodic jobs through a configurable environment variable. Set the variable for a release or individual job; job-level settings take precedence, and the default is LAYERED_IMAGE_LATEST.
Invalid environment-variable names are rejected during release configuration validation. Layered releases require a tag that references a container image.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 222 lines (+166 / -56) across 2 files Reviewer: JoelSpeed Review duration: 1161m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 222 lines diff across 2 files
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.323
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #825"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 60.0% (MEDIUM) · Higher = larger blast radius
60.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.7% · Safe to merge
23.7%