WIP: Fix DataSource opt-out DIC label handling and add state logging (CNV-98159) #6607
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 176 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.310
Real PR Conversation Timeline
1 comments
"Review active on #6607"
general
weight: 0.35
RoniKishner
Summary
Noneon opt-out instead of deleting the key, so the label is actually removed from the live DataSource.wait_for_data_import_cron_label_in_data_source_when_opt_into wait untilsample == opt_in(was a tautology) and checkdata_source.labels.keys().Context
CNV-98159:
TestDataSourcesOptOutLabelteardown hit422(spec.source.pvc.namespace: Required value) when ResourceEditor restored an incomplete PVC backup after the live source had flipped. Investigation pointed at DIC re-managing the DataSource (label returning) despite opt-out; the label wait did not catch that. This PR addresses the opt-out/label assertion path suggested in review and adds logging for verification runs.Test plan
/build-and-push-container→ imagequay.io/openshift-cnv/openshift-virtualization-tests:pr-6607TestDataSourcesOptOutLabelon post-upgrade cluster (e.g. test-pytest-cnv-4.18-post-upgrade-marker-infrastructure) withIMAGE_TAG=...:pr-6607mainas requested in review