[CI] Fail fast on empty install_script in Rerun Test workflow (#28721)
This commit is contained in:
@@ -112,6 +112,16 @@ jobs:
|
||||
if [[ "${{ inputs.runs_on }}" == "1-gpu-5090" ]]; then
|
||||
source /etc/profile.d/sglang-ci.sh
|
||||
fi
|
||||
# Fail fast on an empty install_script. `bash <empty>` is a silent
|
||||
# no-op that "succeeds" without installing sglang, so the test step
|
||||
# then dies with `ModuleNotFoundError: No module named 'sglang'`.
|
||||
# /rerun-test resolves install_script from runner_configs.yml; a manual
|
||||
# workflow_dispatch must pass it explicitly (it can't be derived from
|
||||
# runs_on, which is shared across configs, e.g. default vs deepep).
|
||||
if [ -z "${{ inputs.install_script }}" ]; then
|
||||
echo "::error::install_script is required for cuda mode (empty would silently skip installing sglang). Pass e.g. scripts/ci/cuda/ci_install_dependency.sh"
|
||||
exit 1
|
||||
fi
|
||||
bash ${{ inputs.install_script }}
|
||||
|
||||
- name: Run test
|
||||
|
||||
Reference in New Issue
Block a user