-
Notifications
You must be signed in to change notification settings - Fork 115
Add jump testing to nightly testing #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c02f20b
add jump testing
rgsl888prabhu 929d444
fix style
rgsl888prabhu d3f4284
change mode
rgsl888prabhu 9c56eb9
Empty commit
rgsl888prabhu 52b7b0e
Merge branch 'branch-25.10' into jump_testing
rgsl888prabhu db26d48
fix path
rgsl888prabhu 088f219
update for testing
rgsl888prabhu 9e5f15f
update for testing
rgsl888prabhu 7c4b66e
fix issue
rgsl888prabhu 83f798c
fix test
rgsl888prabhu d33b217
testing
rgsl888prabhu 51391e3
testing
rgsl888prabhu f56a38f
test with logs
rgsl888prabhu ae6e9af
update
rgsl888prabhu a60e370
Fix directory path
rgsl888prabhu fc04ab0
fix
rgsl888prabhu 22bdf32
fix
rgsl888prabhu bb35e90
test
rgsl888prabhu 89accb7
Merge branch 'branch-25.10' into jump_testing
rgsl888prabhu 69d1421
Merge branch 'branch-25.10' into jump_testing
rgsl888prabhu fc08fb6
Fix Jump
rgsl888prabhu bb3cfdc
remove unsued files
rgsl888prabhu 1acea03
fix style
rgsl888prabhu 7f06564
Merge branch 'branch-25.10' into jump_testing
rgsl888prabhu 4cf7c53
fix repo link
rgsl888prabhu 7b40567
Merge branch 'jump_testing' of github.com:rgsl888prabhu/cuopt_public …
rgsl888prabhu 03c1192
update
rgsl888prabhu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| #!/bin/bash | ||
|
|
||
| # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| # Install Julia using the official installer | ||
|
|
||
| if ! command -v julia &> /dev/null; then | ||
| rapids-logger "Installing Julia using official installer..." | ||
| # Pass 'yes' to the installer to accept any prompts automatically | ||
| curl -fsSL https://install.julialang.org | sh -s -- --yes | ||
| # Add Julia to PATH for current session | ||
| export PATH="$HOME/.juliaup/bin:$PATH" | ||
| # Also add to .bashrc for future sessions | ||
| rapids-logger 'export PATH="$HOME/.juliaup/bin:$PATH"' >> ~/.bashrc | ||
| else | ||
| rapids-logger "Julia is already installed." | ||
| fi | ||
|
|
||
| # Confirm Julia install | ||
| julia --version | ||
|
|
||
| CUOPT_JL_DIR="$(mktemp -d)/cuOpt.jl" | ||
| rapids-logger "Cloning cuOpt.jl into ${CUOPT_JL_DIR}" | ||
| git clone https://github.com/jump-dev/cuOpt.jl.git "${CUOPT_JL_DIR}" | ||
|
|
||
| cd $CUOPT_JL_DIR || exit 1 | ||
|
|
||
| # 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) | ||
|
|
||
| if [ -n "$LIBCUOPT_PATH" ]; then | ||
| rapids-logger "LIBCUOPT_PATH: $LIBCUOPT_PATH" | ||
| LIBCUOPT_DIR=$(dirname "$LIBCUOPT_PATH") | ||
| rapids-logger "LIBCUOPT_DIR: $LIBCUOPT_DIR" | ||
| export LD_LIBRARY_PATH="${LIBCUOPT_DIR}:${LD_LIBRARY_PATH}" | ||
| rapids-logger "Found libcuopt.so at $LIBCUOPT_PATH, added directory to LD_LIBRARY_PATH: $LIBCUOPT_DIR" | ||
| else | ||
| rapids-logger "Warning: libcuopt.so not found in root filesystem" | ||
| fi | ||
|
|
||
| rapids-logger "Running Julia tests for cuOpt.jl" | ||
|
|
||
| # use Julia to instantiate and run tests for the package | ||
| julia --project=. -e ' | ||
| import Pkg; | ||
| Pkg.instantiate(); | ||
| # forcefully add maybe-missing deps (bad) | ||
| try | ||
| Pkg.add("Test") | ||
| catch | ||
| end | ||
| println("Running Pkg.test() for cuOpt.jl -- this will spew output and may fail loudly"); | ||
| Pkg.test(; coverage=true) | ||
| ' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.