← Back to Pull requests

Generalize presto-nvl72 slurm scripts for any cluster #352

Closed
unknown closed this pull request without merging on Jun 24, 2026 15:50 UTC
View on GitHub
unknown unknown commented on May 22, 2026 03:52 UTC
Author

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. See cluster_config.env.example.
- Introduce two shared libraries: launcher_common.sh (cluster-variant resolution, sbatch arg assembly, preflight checks, job monitoring) and slurm_common.sh (shared .slurm preamble). 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 prints Job FAILED (state: …, exit: …) and always displays stderr, so silent failures don't masquerade as success.
- launch-analyze-tables.sh is now always CPU (ANALYZE TABLE disables cudf regardless). New CLUSTER_DEFAULT_VARIANT setting lets CPU-only clusters drop the --cpu flag.
- 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 (gate NVIDIA_VISIBLE_DEVICES export and GDS bind-mounts on VARIANT_TYPE=gpu so 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 1 on CPU cluster → 240 MB of parquet under ${DATA}/tpch-rs-1
- [x] ./launch-analyze-tables.sh -s 1 on CPU cluster → tpchsf1/ populated in .hive_metastore/
- [x] ./launch-run.sh -n 1 -s 1 --cpu on CPU cluster → all 22 TPC-H queries pass
- [x] ./launch-run.sh -n 1 -s 1 on GPU cluster (job currently pending in batch queue)
- [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 FAILED with stderr displayed
- [x] ./launch-run.sh -n 1 -s 1 --disable-gds on GDS GPU cluster
- [x] ./launch-run.sh -n 1 -s 1 -p on GPU cluster
- [x] ./launch-run.sh -n 1 -s 1 -p --nsys-worker-id on GPU cluster
- [x] ./launch-run.sh -n 1 -s 1 -q 1,10 on GPU cluster

Diff: 299 lines (+224 / -75) across 3 files Reviewer: Avinash-Raj Review duration: 48237m
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
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%
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.341
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #352"
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: 40% (MEDIUM) · Higher = larger blast radius
40%
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.3% · Safe to merge
17.3%