← Back to Pull requests

build: Add optional S3-backed sccache support to Prestissimo build #27973

Closed
unknown closed this pull request without merging on Nov 03, 2026 16:24 UTC
View on GitHub
unknown unknown commented on Jun 11, 2026 14:06 UTC
Author

Description


Adds optional distributed compile caching for the Prestissimo native build using sccache (https://github.com/mozilla/sccache) with an S3 backend:
  • Install a pinned sccache binary in the CentOS dependency image.

  • Wire sccache in as the CMake C/C++/CUDA compiler launcher when an SCCACHE_BUCKET build arg is set; otherwise the build falls back to local ccache exactly as before.

  • Expose SCCACHE_BUCKET, SCCACHE_REGION, and SCCACHE_S3_KEY_PREFIX build args and print cache statistics after the build.

  • Split the prestissimo runtime Dockerfile into explicitly named build and runtime stages, and add a CentOS section header to docker-compose.yml.
  • Depends on https://github.com/prestodb/presto/pull/27972

    Motivation and Context


    Native (cuDF/CUDA) builds are expensive, as they have to consider a sufficiently wide range of Nvidia GPU architectures, but they are required to get the best performance with GPU-enabled presto. ccache is local to a single machine, so CI and developer rebuilds repeatedly recompile identical objects. A shared S3-backed sccache lets builds reuse compilation results across machines and CI runs, cutting build times significantly. The feature is opt-in and does not change the default local-ccache behavior.

    Impact


    Docker build only; no runtime or API changes. sccache activates only when SCCACHE_BUCKET is provided, so existing builds are unaffected. Adds sccache as a build-time dependency in the dependency image.

    == NO RELEASE NOTE ==
    

    Summary by Sourcery

    Add optional S3-backed sccache support and modern GPU architecture defaults to the Prestissimo native Docker build while splitting the Dockerfile into explicit build and runtime stages.

    Build:

  • Install a pinned sccache binary in the CentOS dependency image for optional distributed compile caching.

  • Expose SCCACHE_* build arguments and conditionally wire sccache as the C/C++/CUDA compiler launcher in the Prestissimo build when an S3 bucket is configured.

  • Update CUDA and UCX default versions in the dependency image and propagate CUDA version into the runtime image setup.

  • Refactor the Prestissimo runtime Dockerfile into distinct build and runtime stages with explicit CUDA runtime and RDMA library installation and UCX library handling.

  • Clarify docker-compose configuration with a CentOS services section header.
  • Diff: 295 lines (+221 / -74) across 3 files Reviewer: lga-zurich Review duration: 208938m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 295 lines diff across 3 files
    0.40
    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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #27973"
    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: 40.0% (MEDIUM) · Higher = larger blast radius
    40.0%
    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: 15.8% · Safe to merge
    15.8%