build: Add optional S3-backed sccache support to Prestissimo build #27973
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
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.340
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #27973"
general
weight: 0.35
lga-zurich
Description
Adds optional distributed compile caching for the Prestissimo native build using sccache (https://github.com/mozilla/sccache) with an S3 backend:
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.
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: