[AutoSparkUT] Enable Spark 4.2 inherited suites in premerge [reduced-it] #16974
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 533 lines diff across 6 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.376
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16974"
general
weight: 0.35
wjxiz1992
JaCoCo production line coverage: not fully measurable locally — only a cached Scala 2.12/shim 350 baseline is available; validation uses Scala 2.13/shim 420, and no compatible baseline has been verified. No applicable module delta or total is reported.
Closes #16973.
Description
Spark 4.2 has a unit-test build profile, but inherited upstream Spark suites are registered only for Spark 3.3. Add Spark 4.2 support to the RAPIDS migration framework, register
ConditionalExpressionSuiteandDataFrameTungstenSuiteas small expression and SQL examples, and include 420 alongside 350 and 401 in Scala 2.13 premerge.Run the inherited tests once through the existing Maven/ScalaTest path, using the default configuration when
SPARK_CONFis unset and applying explicit overrides to both expression and SQL sessions. Retain the expression suite's GPU/fallback checks and verify GPU execution in each inherited SQL test's final asserted query. For the filtered-cache count, require a GPU filter in that query so GPU cache warm-up cannot mask CPU fallback. Share the GPU memory configuration between both session builders, applying explicitSPARK_CONFentries after JVM properties and defaults so explicit GPU memory settings take precedence. Upstream metadata/code-generation assertions remain auxiliary CPU checks. This changes test infrastructure and CI coverage only; production execution is unchanged.AI assistance: The change and PR description were prepared with Codex assistance.
Validation (JDK 17, NVIDIA RTX 5880 Ada):
mvn packagepassed both inherited suites on Spark 4.2.0 / Scala 2.13 (15 tests: 9 expression, 6 SQL) and Spark 3.3.0 / Scala 2.12 (14 tests), with zero failures, cancellations, ignores or pending tests. All six Spark 4.2 SQL cases verified GPU execution in the final captured query.GpuFilterExecassertion as expected even with GPU aggregation still present.SPARK_CONFvalues for all three GPU memory parameters over conflicting JVM properties. Scoped ANSI changes and restoration also passed.Upstream test mapping (all tests are inherited without exclusions):
| RAPIDS suite | Original Spark suite | Fixed Spark 4.2.0 source | Current Spark source |
| --- | --- | --- | --- |
|
RapidsConditionalExpressionSuite|ConditionalExpressionSuite(9 tests) | class and tests, lines 27–305 | master ||
RapidsDataFrameTungstenSuite|DataFrameTungstenSuite(6 tests) | class and tests, lines 30–112 | master |Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance