Generalize presto-nvl72 slurm scripts for any cluster #352
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 299 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.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #352"
general
weight: 0.35
Avinash-Raj
Summary
- Make
presto/slurm/presto-nvl72/cluster-agnostic: all per-cluster values (partition, account, cpus-per-task, time limits, images, image paths, data root, etc.) now come from~/.cluster_config.env. Seecluster_config.env.example.- Introduce two shared libraries:
launcher_common.sh(cluster-variant resolution, sbatch arg assembly, preflight checks, job monitoring) andslurm_common.sh(shared.slurmpreamble). Eliminates ~80% of the per-launcher duplication.- Pre-flight checks in every launcher: missing image / data dir / analyzed metastore produce actionable errors pointing at the exact command to run next, before any sbatch submission.
- Job state surfaced via
sacct: launcher printsJob FAILED (state: …, exit: …)and always displays stderr, so silent failures don't masquerade as success.-
launch-analyze-tables.shis now always CPU (ANALYZE TABLE disables cudf regardless). NewCLUSTER_DEFAULT_VARIANTsetting lets CPU-only clusters drop the--cpuflag.- gen-data uses the same
run_py_script.sh+ miniforge3 pattern as analyze/benchmark instead of inventing its own pip flow.- Several CPU-variant fixes in
functions.sh:run_worker(gateNVIDIA_VISIBLE_DEVICESexport and GDS bind-mounts onVARIANT_TYPE=gpuso CPU nodes don't hit enroot hook failures).- README rewritten as a three-step workflow walkthrough; all 6 entry points now documented.
## Test plan
- [x]
./launch-gen-data.sh -s 1on CPU cluster → 240 MB of parquet under${DATA}/tpch-rs-1- [x]
./launch-analyze-tables.sh -s 1on CPU cluster →tpchsf1/populated in.hive_metastore/- [x]
./launch-run.sh -n 1 -s 1 --cpuon CPU cluster → all 22 TPC-H queries pass- [x]
./launch-run.sh -n 1 -s 1on GPU cluster (job currently pending inbatchqueue)- [x] download image -> gen data -> analyze data -> run_benchmark for tpch sf1k on NVL72 GPU/CPU
- [x] Preflight failure modes: missing image / missing data / missing metastore each print correct actionable hint
- [x] Failure reporting: jobs that exit non-zero are surfaced as
FAILEDwith stderr displayed- [x]
./launch-run.sh -n 1 -s 1 --disable-gdson GDS GPU cluster- [x]
./launch-run.sh -n 1 -s 1 -pon GPU cluster- [x]
./launch-run.sh -n 1 -s 1 -p --nsys-worker-idon GPU cluster- [x]
./launch-run.sh -n 1 -s 1 -q 1,10on GPU cluster