← Back to Pull requests

[SPARK-62432] Upgrade gRPC Swift NIO Transport to 2.13.2 #627

Closed
unknown closed this pull request without merging on Nov 29, 2026 01:00 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 23:59 UTC
Author

What changes were proposed in this pull request?

This PR aims to upgrade grpc-swift-nio-transport from 2.12.0 to 2.13.2.

  • Package.swift: bump the exact pin of grpc-swift-nio-transport to 2.13.2.

  • README.md: update the listed dependency version to 2.13.2 (November 2026).
  • The latest 2.13.3 is skipped on purpose. With 2.13.3, GRPCClient.runConnections() does not return after beginGracefulShutdown() when no RPC was made on the channel. As a result, SparkConnectClientTests.connectWithInvalidUUID hangs forever because SparkConnectClient.stop() awaits the connection task. 2.13.0, 2.13.1 and 2.13.2 do not have this issue. The only change in 2.13.3 is the following.

  • https://github.com/grpc/grpc-swift-nio-transport/pull/203 (Trigger name resolution when all current LB addresses fail)
  • Why are the changes needed?

    To bring the latest bug fixes.

  • https://github.com/grpc/grpc-swift-nio-transport/releases/tag/2.13.0 (2026-11-16)

  • - https://github.com/grpc/grpc-swift-nio-transport/pull/197 (Report the listening address from the listener factory)
    - https://github.com/grpc/grpc-swift-nio-transport/pull/198 (Add vsock peer credentials on Posix.Context)
    - https://github.com/grpc/grpc-swift-nio-transport/pull/192 (Add UDS peer credentials on Posix.Context)
  • https://github.com/grpc/grpc-swift-nio-transport/releases/tag/2.13.1 (2026-11-19)

  • - https://github.com/grpc/grpc-swift-nio-transport/pull/210 (Fail RPCs started on an already cancelled task)
  • https://github.com/grpc/grpc-swift-nio-transport/releases/tag/2.13.2 (2026-11-23)

  • - https://github.com/grpc/grpc-swift-nio-transport/pull/211 (Remove timers on channelInactive in ServerConnectionManagementHandler)

    Does this PR introduce _any_ user-facing change?

    No.

    How was this patch tested?

    Pass the CIs. The full test suite also passed locally on macOS against an Apache Spark 4.3.0 Connect server (716 tests in 66 suites).

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

    Generated-by: Claude Opus 5.5

    Diff: 264 lines (+198 / -66) across 3 files Reviewer: viirya Review duration: 61m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 264 lines diff across 3 files
    0.39
    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%
    56%
    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.334
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #627"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 17% · Safe to merge
    17%