|
32 | 32 | ) |
33 | 33 | from test_utils import KEYS_TO_DESTROY_FILE |
34 | 34 | from test_utils.pytest_cache import PytestCache |
35 | | -from test.vllm.trigger_test import test_vllm_on_eks |
| 35 | +from test.vllm.trigger_test import test |
36 | 36 |
|
37 | 37 | from src.codebuild_environment import get_codebuild_project_name |
38 | 38 |
|
@@ -308,16 +308,25 @@ def main(): |
308 | 308 | ) |
309 | 309 | build_context = get_build_context() |
310 | 310 |
|
311 | | - # Skip non-sanity/security test suites for base or vllm images in MAINLINE context |
312 | | - if ( |
313 | | - build_context == "MAINLINE" |
314 | | - and all("base" in image_uri or "vllm" in image_uri for image_uri in all_image_list) |
315 | | - and test_type not in {"functionality_sanity", "security_sanity"} |
316 | | - ): |
317 | | - LOGGER.info( |
318 | | - f"NOTE: {specific_test_type} tests not supported on base or vllm images. Skipping..." |
319 | | - ) |
320 | | - return |
| 311 | + # Skip non-sanity/security test suites for base images in MAINLINE context |
| 312 | + # Skip non-sanity/security/eks test suites for vllm images in MAINLINE context |
| 313 | + if build_context == "MAINLINE": |
| 314 | + if ( |
| 315 | + all("base" in image_uri for image_uri in all_image_list) |
| 316 | + and test_type not in {"functionality_sanity", "security_sanity"} |
| 317 | + ): |
| 318 | + LOGGER.info( |
| 319 | + f"NOTE: {specific_test_type} tests not supported on base images. Skipping..." |
| 320 | + ) |
| 321 | + return |
| 322 | + elif ( |
| 323 | + all("vllm" in image_uri for image_uri in all_image_list) |
| 324 | + and test_type not in {"functionality_sanity", "security_sanity", "eks"} |
| 325 | + ): |
| 326 | + LOGGER.info( |
| 327 | + f"NOTE: {specific_test_type} tests not supported on vllm images. Skipping..." |
| 328 | + ) |
| 329 | + return |
321 | 330 |
|
322 | 331 | # quick_checks tests don't have images in it. Using a placeholder here for jobs like that |
323 | 332 | try: |
@@ -416,7 +425,7 @@ def main(): |
416 | 425 | if framework == "vllm": |
417 | 426 | try: |
418 | 427 | LOGGER.info(f"Running vLLM EKS tests with image: {all_image_list[0]}") |
419 | | - test_vllm_on_eks(all_image_list[0]) |
| 428 | + test() |
420 | 429 | LOGGER.info("vLLM EKS tests completed successfully") |
421 | 430 | # Exit function after vLLM tests |
422 | 431 | return |
|
0 commit comments