-
Notifications
You must be signed in to change notification settings - Fork 226
test: isolate library wheel smoke test #1624
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,17 @@ EOF | |
| # generate constraints (possibly pinning to oldest support versions of dependencies) | ||
| rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}" | ||
|
|
||
| python -m venv libcuopt-env | ||
| . libcuopt-env/bin/activate | ||
|
|
||
| rapids-pip-retry install \ | ||
| -v \ | ||
| --prefer-binary \ | ||
| --constraint "${PIP_CONSTRAINT}" \ | ||
| "${LIBCUOPT_WHEELHOUSE}"/libcuopt*.whl | ||
| python -c "import libcuopt; assert libcuopt.load_library() is not None" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- ci/test_wheel_cuopt.sh (lines 1-80) ---'
nl -ba ci/test_wheel_cuopt.sh | sed -n '1,80p'
printf '%s\n' '--- changed lines ---'
git diff -- ci/test_wheel_cuopt.sh
printf '%s\n' '--- assert behavior ---'
python3 - <<'PY'
import os
import subprocess
import sys
code = "assert False, 'assertion ran'"
for env_name, extra in [("default", {}), ("optimized", {"PYTHONOPTIMIZE": "1"})]:
env = os.environ.copy()
env.update(extra)
result = subprocess.run(
[sys.executable, "-c", code],
env=env,
capture_output=True,
text=True,
)
print(f"{env_name}: returncode={result.returncode}, stderr={result.stderr.strip()!r}")
PYRepository: NVIDIA/cuopt Length of output: 449 Replace Python disables 🤖 Prompt for AI Agents |
||
| deactivate | ||
|
|
||
| # notes: | ||
| # | ||
| # * echo to expand wildcard before adding `[test]` requires for pip | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 515
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 5789
Use a fresh virtual environment for each run.
If
libcuopt-envexists,python -m venv libcuopt-envpreserves previously installed packages. Delete it first or usepython -m venv --clear libcuopt-env.🤖 Prompt for AI Agents