@@ -28,7 +28,9 @@ def validate_matrix(matrix_dict: Dict[str, Any]) -> None:
2828
2929
3030def filter_matrix_item (
31- item : Dict [str , Any ], is_jetpack : bool , limit_pr_builds : bool , is_nightly : bool
31+ item : Dict [str , Any ],
32+ is_jetpack : bool ,
33+ limit_pr_builds : bool ,
3234) -> bool :
3335 """Filter a single matrix item based on the build type and requirements."""
3436 if item ["python_version" ] in disabled_python_versions :
@@ -42,21 +44,13 @@ def filter_matrix_item(
4244 item ["python_version" ] = "3.10"
4345 item ["container_image" ] = jetpack_container_image
4446 return True
45- elif is_nightly :
46- # nightly build, matrix passed from test-infra is cu128, all python versions, change to cu126, python 3.10
47+ else :
48+ # nightly/main build, matrix passed from test-infra is cu128, all python versions, change to cu126, python 3.10
4749 if item ["python_version" ] in jetpack_python_versions :
4850 item ["desired_cuda" ] = "cu126"
4951 item ["container_image" ] = jetpack_container_image
5052 return True
5153 return False
52- else :
53- if (
54- item ["python_version" ] in jetpack_python_versions
55- and item ["desired_cuda" ] in jetpack_cuda_versions
56- ):
57- item ["container_image" ] = jetpack_container_image
58- return True
59- return False
6054 else :
6155 if item ["gpu_arch_type" ] == "cuda-aarch64" :
6256 # pytorch image:pytorch/manylinuxaarch64-builder:cuda12.8 comes with glibc2.28
@@ -92,14 +86,6 @@ def main(args: list[str]) -> None:
9286 default = os .getenv ("LIMIT_PR_BUILDS" , "false" ),
9387 )
9488
95- parser .add_argument (
96- "--is-nightly" ,
97- help = "If it is a nightly build" ,
98- type = str ,
99- choices = ["true" , "false" ],
100- default = os .getenv ("LIMIT_PR_BUILDS" , "false" ),
101- )
102-
10389 options = parser .parse_args (args )
10490 if options .matrix == "" :
10591 raise ValueError ("--matrix needs to be provided" )
@@ -120,7 +106,6 @@ def main(args: list[str]) -> None:
120106 item ,
121107 options .jetpack == "true" ,
122108 options .limit_pr_builds == "true" ,
123- options .is_nightly == "true" ,
124109 ):
125110 filtered_includes .append (item )
126111
0 commit comments