tests: reject unknown comparison descriptor fields at load #3592
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 220 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.323
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3592"
general
weight: 0.35
juliusvonkohout
What this does
Follow-up to the descriptor harness (#3577), closing the five findings of its final Copilot review (review 5067507448). A comparison descriptor decides what is compared, so a misspelled field must fail at load, not be silently replaced by a default.
ignoredLabelsentry. PreviouslyhelmUsesKustomizeNameHash:orexcludeKind:loaded and were ignored.ignorePodTemplateAnnotationsandcompareDataAsYamlmust be non-empty lists of keys. Previously a boolean raisedTypeErrorat comparison time and a scalar string was iterated character by character.valuesfile must exist in the chart.helmOnlyResourcespatterns now match with per-segmentwildcards**, through the sameresource_matchesused byknownDifferences, astests/README.mdalready documents. Previously the mapping was exact string membership.helmOnlyResourcespatterns get the same shape validation (Kind/nameorKind/namespace/name) as every other pattern family.Verification
python3 tests/run_helm_kustomize_comparison.py all— all eleven components, every scenario, green under Helm 4.2.2: every shipping descriptor loads under the stricter rules.python3 tests/comparison_descriptors_test.py— 24 tests, including new guards for each rejection.python3 tests/helm_kustomize_compare_test.py(both invocation forms) — includes a new wildcard-matching test.black --check tests/,git diff --checkclean.