Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/test_wheel_cuopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export OMP_NUM_THREADS=1

RAPIDS_DATASET_ROOT_DIR=./datasets timeout 30m python -m pytest --verbose --capture=no ./python/cuopt/cuopt/tests/

# run jump tests and cvxpy integration tests for only nightly builds
# run thirdparty integration tests for only nightly builds
if [[ "${RAPIDS_BUILD_TYPE}" == "nightly" ]]; then
./ci/thirdparty-testing/run_jump_tests.sh
./ci/thirdparty-testing/run_cvxpy_tests.sh
Expand Down
16 changes: 15 additions & 1 deletion ci/thirdparty-testing/run_jump_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ git clone https://github.com/jump-dev/cuOpt.jl.git "${CUOPT_JL_DIR}"

cd $CUOPT_JL_DIR || exit 1

# Patch cuOpt.jl to bypass version check
rapids-logger "Patching cuOpt.jl to relax cuOpt version constraint..."
if [ -f src/cuOpt.jl ]; then
# Replace max version in pattern: min, max = v"X.Y", v"A.B" -> v"99.99"
sed -i 's/\(min.*max.*=.*v"[0-9]\+\.[0-9]\+"\),\s*v"[0-9]\+\.[0-9]\+"/\1, v"99.99"/g' src/cuOpt.jl
rapids-logger "Updated max cuOpt version to v\"99.99\" - all versions will pass"
fi

# Patch MOI_wrapper.jl test to skip test_air05
rapids-logger "Commenting out test_air05"
if [ -f test/MOI_wrapper.jl ]; then
sed -i '/^function test_air05()/,/^end$/s/^/# /' test/MOI_wrapper.jl
fi

# Find libcuopt.so and add its directory to LD_LIBRARY_PATH
LIBCUOPT_PATH=$(find /pyenv/ -name "libcuopt.so" -type f 2>/dev/null | head -1)

Expand All @@ -64,6 +78,6 @@ try
Pkg.add("Test")
catch
end
println("Running Pkg.test() for cuOpt.jl -- this will spew output and may fail loudly");
println("Running Pkg.test() for cuOpt.jl");
Pkg.test(; coverage=true)
'
Loading