fix(sparkconnect): update GPU specs for per-argument container args #3212
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 · 313 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.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3212"
general
weight: 0.35
nabuskey
Purpose of this PR
masterdoes not compile, and one spec fails once it does.#3169 added GPU coverage that depends on the pre-#3188 shape of the server container:
options_test.gocallsshellParsedSparkConfig, which #3188 renamed toparsedSparkConfig.reconciler_test.goreadspod.Spec.Containers[0].Args[0]as the single joined command string. Since #3188,Args[0]is--masterand each option is its own element.The two PRs edited different regions of both files, so they merged without a textual conflict and neither PR's CI built the combined tree.
Proposed changes:
shellParsedSparkConfigcall sites toparsedSparkConfig.Change Category
Rationale
Test-only. No production code and no behaviour changes; the GPU support from #3169 and the argument construction from #3188 are both unchanged.
The two
spark.executor.resource.gpu.*assertions become exact element matches, which is stronger than the previous substring check —gpuConfOptionemits--conffollowed by exactlykey=value. The negative assertion keepsContainSubstringnested insideContainElement, since it checks for a key prefix with no value and should still mean "no argument mentions this key".The
spark.executor.resource.gpu.discoveryScriptvalue in "takes precedence over the same keys in sparkConf" contains a space. It previously survived a round trip throughbashbecause of the shell quoting #3188 removed; read directly from the argument slice it is a single element, so that assertion holds unchanged.I swept the
sparkconnectpackage andtest/e2efor other code depending on the old joined-string shape (Args[0], substring assertions againstArgs,strings.Join) and found none, so this should be the complete set.Checklist
Additional Notes
Existing coverage only; this restores compilation and fixes the failing spec.