Skip version check for cuOpt in Julia code#539
Conversation
WalkthroughUpdated a comment in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Potential review focus:
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
ci/test_wheel_cuopt.sh (1)
79-85: Remove the duplicate cvxpy test execution within the nightly conditional block.The git history confirms this is a bug. Commit a57d894 moved cvxpy tests into the nightly-only conditional, but commit 2e9625a (today) re-added the unconditional cvxpy execution at line 85 without removing the duplicate at line 82. This causes cvxpy tests to run twice on nightly builds.
The original intent was to run cvxpy on all builds and jump tests only on nightly builds. Remove line 82 to restore that behavior:
if [[ "${RAPIDS_BUILD_TYPE}" == "nightly" ]]; then ./ci/thirdparty-testing/run_jump_tests.sh fi ./ci/thirdparty-testing/run_cvxpy_tests.sh
🧹 Nitpick comments (1)
ci/thirdparty-testing/run_jump_tests.sh (1)
43-49: Improve sed pattern robustness and add validation.The sed regex uses greedy matching (
min.*max.*=.*v") which could unintentionally match across multiple lines or statements if the cuOpt.jl source has multiple version constraints. Additionally, there's no validation that the pattern was actually found and replaced.Suggested improvements:
- More specific pattern: Anchor to line boundaries or use more precise matching to avoid greedy overreach.
- Validation: Check if the replacement succeeded, and log or fail if the expected pattern is not found.
For example:
if sed -i 's/\(min.*max.*=.*v"[0-9]\+\.[0-9]\+"\),\s*v"[0-9]\+\.[0-9]\+"/\1, v"99.99"/g' src/cuOpt.jl; then if grep -q 'v"99.99"' src/cuOpt.jl; then rapids-logger "Patch applied successfully; verified v\"99.99\" in src/cuOpt.jl" else rapids-logger "Warning: sed completed but version string not found in result" fi fiAlternatively, if you have the exact line format from cuOpt.jl, consider using a more specific pattern that matches only the intended context.
Please verify the sed pattern works correctly with the actual cuOpt.jl source file. Consider running the script in a test environment and inspecting src/cuOpt.jl to confirm the replacement is correct and no unintended changes occur.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ci/test_wheel_cuopt.sh(1 hunks)ci/thirdparty-testing/run_jump_tests.sh(1 hunks)
ci/test_wheel_cuopt.sh
Outdated
| ./ci/thirdparty-testing/run_cvxpy_tests.sh | ||
| fi | ||
|
|
||
| ./ci/thirdparty-testing/run_jump_tests.sh |
There was a problem hiding this comment.
Nah, just left it out to test, once it completes the run, I will move it back.
|
@gforsyth May I get your review on this PR |
Description
cuOpt.jl checks for cuOpt version to be <= latest release. But for CI testing we need that check to be disabled, so this change will update the max version to 99.99 so we can get pass that.
Checklist
Summary by CodeRabbit