Skip to content

Commit d1e2ec2

Browse files
authored
skip non sanity/security mainline test for vllm/base image (#4847)
1 parent 3e29a7d commit d1e2ec2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/testrunner.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,17 @@ def main():
304304
)
305305
build_context = get_build_context()
306306

307+
# Skip non-sanity/security test suites for base or vllm images in MAINLINE context
308+
if (
309+
build_context == "MAINLINE"
310+
and all("base" in image_uri or "vllm" in image_uri for image_uri in all_image_list)
311+
and test_type not in {"functionality_sanity", "security_sanity"}
312+
):
313+
LOGGER.info(
314+
f"NOTE: {specific_test_type} tests not supported on base or vllm images. Skipping..."
315+
)
316+
return
317+
307318
# quick_checks tests don't have images in it. Using a placeholder here for jobs like that
308319
try:
309320
framework, version = get_framework_and_version_from_tag(all_image_list[0])

0 commit comments

Comments
 (0)