Skip to content

ci: test_doc_examples.sh fails silently in wheel-tests-cuopt-server due to unbound CONDA_PREFIX #1459

Description

@ramakrishnap-nv

./ci/test_doc_examples.sh is called from ci/test_wheel_cuopt_server.sh but fails silently at line 460 with:

./ci/test_doc_examples.sh: line 460: CONDA_PREFIX: unbound variable

The script references CONDA_PREFIX, which is only set in conda environments. In the wheel test path (wheel-tests-cuopt-server), there is no conda environment, so the variable is unbound. Because test_wheel_cuopt_server.sh uses set +e around the doc example step, the failure is swallowed and the job still reports success — but doc example tests are never actually run in the wheel-tests-cuopt-server CI job.

Fix: The script should either check whether CONDA_PREFIX is set before using it, or the doc example step should be skipped gracefully when running outside a conda environment.

Observed in PR #1457 run: job wheel-tests-cuopt-server / 12.9.2, 3.14, amd64, ubuntu24.04, h100 (job ID 83257859948).

Metadata

Metadata

Labels

awaiting responseThis expects a response from maintainer or contributor depending on who requested in last comment.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions