[CI] Mirror external test assets in vLLM S3 (#52064)
Signed-off-by: khluu <khluu000@gmail.com> Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
b369f10d5c
commit
8eb35c5217
@@ -17,6 +17,7 @@ import requests
|
||||
import torch
|
||||
from PIL import Image, ImageChops
|
||||
|
||||
from vllm.assets.base import VLLM_S3_BUCKET_URL
|
||||
from vllm.multimodal.image import convert_image_mode
|
||||
from vllm.multimodal.inputs import PlaceholderRange
|
||||
from vllm.multimodal.media import MediaConnector
|
||||
@@ -30,8 +31,8 @@ TEST_IMAGE_ASSETS = [
|
||||
]
|
||||
|
||||
TEST_VIDEO_URLS = [
|
||||
"https://www.bogotobogo.com/python/OpenCV_Python/images/mean_shift_tracking/slow_traffic_small.mp4",
|
||||
"https://github.com/opencv/opencv/raw/refs/tags/4.12.0/samples/data/vtest.avi",
|
||||
f"{VLLM_S3_BUCKET_URL}/multimodal_asset/slow_traffic_small.mp4",
|
||||
f"{VLLM_S3_BUCKET_URL}/multimodal_asset/vtest.avi",
|
||||
]
|
||||
|
||||
|
||||
@@ -76,8 +77,7 @@ async def test_fetch_image_base64(
|
||||
connector = MediaConnector(
|
||||
# Domain restriction should not apply to data URLs.
|
||||
allowed_media_domains=[
|
||||
"www.bogotobogo.com",
|
||||
"github.com",
|
||||
VLLM_S3_BUCKET_URL.removeprefix("https://"),
|
||||
]
|
||||
)
|
||||
url_image = url_images[raw_image_url]
|
||||
@@ -390,8 +390,7 @@ async def test_allowed_media_domains(video_url: str, num_frames: int):
|
||||
}
|
||||
},
|
||||
allowed_media_domains=[
|
||||
"www.bogotobogo.com",
|
||||
"github.com",
|
||||
VLLM_S3_BUCKET_URL.removeprefix("https://"),
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user