← Back to Pull requests

[AutoSparkUT] Enable Spark 4.2 inherited suites in premerge [reduced-it] #16974

Closed
unknown closed this pull request without merging on Nov 24, 2026 05:49 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 06:33 UTC
Author

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 ConditionalExpressionSuite and DataFrameTungstenSuite as 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_CONF is 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 explicit SPARK_CONF entries 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):

  • On this update, mvn package passed 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.

  • The original Spark 4.2 CPU suites passed the same 15 inherited tests. The focused GPU filtered-cache test passed normally; disabling GPU filtering failed the new GpuFilterExec assertion as expected even with GPU aggregation still present.

  • Both Spark 4.2 session builders honored explicit SPARK_CONF values for all three GPU memory parameters over conflicting JVM properties. Scoped ANSI changes and restoration also passed.

  • Thirty temporary configuration checks passed across Scala 2.12 and 2.13, covering full/partial overrides, existing configuration/defaults, whitespace and value preservation. Two regression checks failed as expected on the previous implementation. These ad hoc checks are not committed and are not part of CI.

  • Earlier validation, before this update, also passed the 15 Spark 4.2 inherited cases on CPU and GPU with ANSI disabled. Updated-head premerge validation is pending.
  • 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

  • Updated for new or modified user-facing features or behaviors

  • No user-facing change
  • Testing

  • Added or modified tests to cover new code paths

  • Covered by existing tests

  • (Please provide the names of the existing tests in the PR description.)
  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Diff: 533 lines (+399 / -134) across 6 files Reviewer: wjxiz1992 Review duration: 10036m
    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
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.9% (MEDIUM) · Higher = larger blast radius
    47.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%