← Back to Pull requests

[SPARK-60815] Upgrade JaCoCo to 0.8.16 for Java 27 #992

Closed
unknown closed this pull request without merging on Nov 02, 2026 20:01 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 19:37 UTC
Author

What changes were proposed in this pull request?

This PR aims to upgrade JaCoCo to 0.8.16.

  • gradle/libs.versions.toml: jacoco 0.8.14 -> 0.8.16

  • gradle/verification-metadata.xml: regenerated from scratch. Only the JaCoCo artifacts and their ASM dependencies (asm, asm-bom, asm-commons, and asm-tree, 9.9 -> 9.11.1) changed.
  • Why are the changes needed?

    To support the JDK 27 test toolchain officially and remove the JaCoCo agent exceptions from the unit test output.

    JaCoCo 0.8.14 cannot read class files of major version 71, so it logs IllegalClassFormatException caused by Unsupported class file major version 71 while instrumenting JDK classes (e.g. java.net.http, jdk.httpserver, and sun.security.pkcs11) and classes generated by Mockito. The tests still pass, but the output contains hundreds of stack traces.

  • JaCoCo 0.8.16 (2026-10-26)

  • - Official support for Java 27 (#2287)
    - Experimental support for Java 28 class files (#2170, #2189)
    - Classes loaded by the platform class loader are instrumented only with the agent option inclbootstrapclasses=true (#2155)
    - ASM 9.11.1 (#2299, #2304)
  • JaCoCo 0.8.15 (2026-06-05)

  • - Official support for Java 26 (#2076)
    - Experimental support for Java 27 class files (#2004)
    - ASM 9.10.1 (#2134)

    Does this PR introduce _any_ user-facing change?

    No. JaCoCo is used only for the unit tests and is not included in the operator distribution.

    How was this patch tested?

    Pass the CIs. In addition, the following passed locally on the JDK 27 test toolchain.

    gradle cleanTest build jacocoTestReport spotlessCheck --refresh-dependencies
    

    The number of Unsupported class file major version 71 occurrences in <module>/build/test-results/test/*.xml was measured before and after this PR.

    | Module | Before (0.8.14) | After (0.8.16) | Tests |
    |---|---|---|---|
    | spark-operator-api | 0 | 0 | 66 |
    | spark-submission-worker | 1 | 0 | 40 |
    | spark-operator | 359 | 0 | 692 |

    All 798 tests passed, and the coverage totals of jacocoTestReport are identical before and after this PR in all three modules.

    Was this patch authored or co-authored using generative AI tooling?

    Generated-by: Claude Opus 5.5

    Diff: 347 lines (+260 / -87) across 4 files Reviewer: peter-toth Review duration: 24m
    All Vouch review confidence checks passed
    Residual risk 0.17 = 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 · 347 lines diff across 4 files
    0.42
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #992"
    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: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 16.8% · Safe to merge
    16.8%