test: add Kustomize overlay contract tests for ODH operator integration #208
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 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.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #208"
general
weight: 0.35
RobuRishabh
What
Add lightweight tests that validate the Kustomize overlays (default, odh, rhoai) produce the resource inventory and image injection the opendatahub-operator depends on when deploying KSO. These run on every PR and catch manifest changes that would silently break the ODH deployment path.
Why
This closes the inter-dependency coverage gap between the Spark Operator and the opendatahub-operator. Today, if someone changes a Deployment name in
config/manager/manager.yamlor restructures a Kustomize overlay, the ODH operator's reconciler would silently fail to deploy KSO — and this would only be caught in full RHOAI e2e post-merge.Per the RHOAI 3.6 testing commitment guidance: _"component B uses lightweight integration tests in its test suite to ensure it does not break the contracts it is making for component A."_
Tests validate (per overlay: default, odh, rhoai)
kustomize buildsucceedsparams.envworks (no unsubstituted placeholders)app.kubernetes.iolabels for pod discoveryapp.kubernetes.io/part-oflabelparams.envkey consistency across all overlaysChanges
test/overlay/overlay_contract_test.go— New test file (22 test cases)Makefile— Addedmake overlay-contract-checktarget.github/workflows/integration.yaml— Wired into CIRun locally