Skip to content

Commit c12007e

Browse files
committed
Cleans up duplicative deps change check
Signed-off-by: dougbtv <[email protected]>
1 parent 172d679 commit c12007e

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

buildkite/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ else
221221
fi
222222

223223
# Determine the lowest common ancestor (LCA) commit with main branch if skipping image build
224+
DOCKER_IMAGE_OVERRIDE=""
224225
if [[ "${SKIP_IMAGE_BUILD}" == "1" ]]; then
225226
LCA_COMMIT=""
226227
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then

buildkite/test-template-ci.j2

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@
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+
4247
echo "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
4651
rm -rf /vllm-workspace/vllm || true
4752
cp -a /workdir/. /vllm-workspace/
@@ -54,6 +59,7 @@ cp -a /vllm-workspace/vllm/* "$$SITEPKG/vllm/"
5459
rm -rf /vllm-workspace/src || true
5560
mkdir -p /vllm-workspace/src
5661
mv /vllm-workspace/vllm /vllm-workspace/src/vllm
62+
{% endif %}
5763

5864
(command -v nvidia-smi >/dev/null && nvidia-smi || true)
5965
export 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:

buildkite/test-template-fastcheck.j2

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{% set hf_home_efs = "/mnt/efs/hf_cache" %}
1111
{% set hf_home_fsx = "/fsx/hf_cache" %}
1212

13-
{% macro vllm_checkoutoverlay_script(step,default_working_dir,skip_image_build,requirements_changed,fail_fast) -%}
13+
{% macro vllm_checkoutoverlay_script(step,default_working_dir,skip_image_build,fail_fast) -%}
1414
set {% if fail_fast == "true" %}-xeuo pipefail{% else %}-xuo{% endif %}
15-
echo "SKIP_IMAGE_BUILD={{ skip_image_build }} REQUIREMENTS_CHANGED={{ requirements_changed }}"
15+
echo "SKIP_IMAGE_BUILD={{ skip_image_build }}"
1616
{% if skip_image_build == "1" %}
1717

1818
# Copy in the code from the checkout to the workspace
@@ -28,11 +28,6 @@ rm -rf /vllm-workspace/src || true
2828
mkdir -p /vllm-workspace/src
2929
mv /vllm-workspace/vllm /vllm-workspace/src/vllm
3030

31-
# If deps changed, re-install (system-wide in the container)
32-
{% if requirements_changed == '1' %}
33-
cd /vllm-workspace
34-
uv pip install --system -r requirements/common.txt -r requirements/build.txt -r requirements/test.txt
35-
{% endif %}
3631
{% endif %}
3732

3833
(command -v nvidia-smi >/dev/null && nvidia-smi || true)
@@ -51,6 +46,13 @@ cd {{ (step.working_dir or default_working_dir) | safe }}
5146
echo "No command(s) defined for this step." >&2; exit 2
5247
{%- endif %}
5348
{%- endmacro %}
49+
{% macro add_pytest_coverage(cmd, coverage_file) %}
50+
{% if "pytest " in cmd %}
51+
COVERAGE_FILE={{ coverage_file }} {{ cmd | replace("pytest ", "pytest --cov=vllm --cov-report= --cov-append --durations=0 ") }} || true
52+
{% else %}
53+
{{ cmd }}
54+
{% endif %}
55+
{% endmacro %}
5456

5557
steps:
5658
{% if skip_image_build != "1" %}

0 commit comments

Comments
 (0)