[CI] Fail fast on empty install_script in Rerun Test workflow (#28721)

This commit is contained in:
Liangsheng Yin
2026-06-19 02:07:52 -07:00
committed by GitHub
parent a6db86d535
commit 0146692cc9
+10
View File
@@ -112,6 +112,16 @@ jobs:
if [[ "${{ inputs.runs_on }}" == "1-gpu-5090" ]]; then if [[ "${{ inputs.runs_on }}" == "1-gpu-5090" ]]; then
source /etc/profile.d/sglang-ci.sh source /etc/profile.d/sglang-ci.sh
fi 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 }} bash ${{ inputs.install_script }}
- name: Run test - name: Run test