sonarqube: auto-detect newest CUDA env file per branch#1236
Conversation
The nightly main scan has been failing since 2026-05-15 because PR #1198 bumped main from CUDA 13.1 to 13.2 (replacing all_cuda-131_arch-*.yaml with all_cuda-132_arch-*.yaml), but this script still pointed at the deleted 13.1 yaml. Detect inside the per-branch loop: glob conda/environments/, version-sort, take the newest. release/26.04 keeps using cuda-131 (still on disk there); main now picks cuda-132 automatically; future bumps need no script change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe SonarQube analysis script shifts from hardcoded conda environment setup at startup to dynamic selection. CPU architecture is detected once, then per-branch conda environment YAML files matching that architecture are discovered, sorted by version, and the newest is selected. Missing candidates are logged and skipped gracefully. ChangesDynamic conda environment selection by architecture
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
/merge |
The nightly main scan has been failing since 2026-05-15 because PR #1198 bumped main from CUDA 13.1 to 13.2 (replacing
all_cuda-131_arch-*.yamlwithall_cuda-132_arch-*.yaml), butrun-sonar-analysis.shstill pointed at the deleted 13.1 yaml.Detect inside the per-branch loop: glob
conda/environments/, version-sort, take the newest.release/26.04keeps usingcuda-131(still on disk there);mainnow pickscuda-132automatically; future bumps need no script change. Loud failure if no matching env file exists at all.