Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .buildkite/intel_jobs/misc_intel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ steps:
export VLLM_WORKER_MULTIPROC_METHOD=spawn &&
cd tests &&
pytest -v -s v1/logits_processors --ignore=v1/logits_processors/test_custom_online.py --ignore=v1/logits_processors/test_custom_offline.py &&
pytest -v -s v1/test_oracle.py v1/test_request.py v1/test_outputs.py &&
pytest -v -s v1/test_oracle.py v1/test_request.py &&
pytest -v -s v1/test_outputs.py &&
pytest -v -s v1/sample'
retry:
automatic:
Expand Down
27 changes: 26 additions & 1 deletion .buildkite/scripts/hardware_ci/run-intel-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,32 @@ export HF_TOKEN ZE_AFFINITY_MASK VLLM_DISABLE_COMPILE_CACHE
-e CMDS \
--name "${container_name}" \
"${IMAGE}" \
bash -c 'set -e; echo "ZE_AFFINITY_MASK is ${ZE_AFFINITY_MASK:-}"; eval "$CMDS"' \
bash -c 'set -e
echo "ZE_AFFINITY_MASK is ${ZE_AFFINITY_MASK:-}"
if [[ -n "${PYTEST_ADDOPTS:-}" ]]; then
# Tolerate exit 5 only when pytest-shard reports 0 items for this shard while the pre-shard selection (collected minus deselected) was non-empty;
# -k/-m filters that deselect everything still fail normally.
pytest() {
local ec=0 log collected deselected shard_count selected
log="$(mktemp)"
command pytest "$@" 2>&1 | tee "$log"
ec=${PIPESTATUS[0]}
if [[ $ec -eq 5 ]]; then
collected=$(grep -oE "collected [0-9]+ item" "$log" | grep -oE "[0-9]+" | tail -1)
deselected=$(grep -oE "[0-9]+ deselected" "$log" | grep -oE "[0-9]+" | tail -1)
shard_count=$(grep -oE "Running [0-9]+ items? in this shard" "$log" | grep -oE "[0-9]+" | tail -1)
selected=$(( ${collected:-0} - ${deselected:-0} ))
if [[ "${shard_count:-}" == "0" && $selected -gt 0 ]]; then
echo "pytest exited with status 5 but ${selected} item(s) were selected (0 assigned to this shard); treating as success."
rm -f "$log"
return 0
fi
fi
rm -f "$log"
return $ec
}
fi
eval "$CMDS"' \
>/dev/null
} 9>/tmp/docker-pull.lock

Expand Down
Loading