3737{% - set tests_only = (tests_acc .only_tests and tests_acc .any ) %}
3838{% - set changed_tests = tests_acc .changed %}
3939
40- {% macro vllm_checkoutoverlay_script (step ,default_working_dir ,skip_image_build ,fail_fast ,cov_enabled ) -%}
41- set {% if fail_fast == "true" %} -xeuo pipefail{% else %} -xuo{% endif %}
40+ {% macro vllm_checkoutoverlay_script (step , default_working_dir , skip_image_build , fail_fast , cov_enabled ) %}
41+ {% if fail_fast == "true" -%}
42+ set -xeuo pipefail
43+ {% - else -%}
44+ set -xuo pipefail
45+ {% - endif %}
46+
4247echo "SKIP_IMAGE_BUILD={{ skip_image_build }}"
43- {% if skip_image_build == "1" %}
4448
49+ {% if skip_image_build == "1" %}
4550# Copy in the code from the checkout to the workspace
4651rm -rf /vllm-workspace/vllm || true
4752cp -a /workdir/. /vllm-workspace/
@@ -54,6 +59,7 @@ cp -a /vllm-workspace/vllm/* "$$SITEPKG/vllm/"
5459rm -rf /vllm-workspace/src || true
5560mkdir -p /vllm-workspace/src
5661mv /vllm-workspace/vllm /vllm-workspace/src/vllm
62+ {% endif %}
5763
5864(command -v nvidia-smi >/dev/null && nvidia-smi || true)
5965export VLLM_LOGGING_LEVEL=DEBUG
@@ -62,13 +68,6 @@ cd {{ (step.working_dir or default_working_dir) | safe }}
6268
6369# Run tests with intelligent targeting and coverage
6470{{ add_docker_pytest_coverage(step, cov_enabled) }}
65- {% - endmacro %}
66- {% macro add_pytest_coverage (cmd , coverage_file ) %}
67- {% if "pytest " in cmd %}
68- COVERAGE_FILE={{ coverage_file }} {{ cmd | replace("pytest ", "pytest --cov=vllm --cov-report=xml --cov-append --durations=0 ") }} || true
69- {% else %}
70- {{ cmd }}
71- {% endif %}
7271{% endmacro %}
7372
7473{% macro add_docker_pytest_coverage (step , cov_enabled ) %}
@@ -197,7 +196,6 @@ plugins:
197196 volumes:
198197 - /dev/shm:/dev/shm
199198 - {{ hf_home_fsx }}:{{ hf_home_fsx }}
200- - $PWD:/workdir
201199 {% elif step .gpu == "h200" %}
202200 - docker#v5.2.0:
203201 image: {{ image }}
@@ -225,7 +223,6 @@ plugins:
225223 - /dev/shm:/dev/shm
226224 - /data/benchmark-hf-cache:/benchmark-hf-cache
227225 - /data/benchmark-vllm-cache:/root/.cache/vllm
228- - $PWD:/workdir
229226 {% elif step .gpu == "b200" %}
230227 - docker#v5.2.0:
231228 image: {{ image }}
@@ -254,7 +251,6 @@ plugins:
254251 - /dev/shm:/dev/shm
255252 - /data/benchmark-hf-cache:/benchmark-hf-cache
256253 - /data/benchmark-vllm-cache:/root/.cache/vllm
257- - $PWD:/workdir
258254 {% else %}
259255 - kubernetes:
260256 podSpec:
0 commit comments