@@ -28,7 +28,9 @@ def validate_matrix(matrix_dict: Dict[str, Any]) -> None:
28
28
29
29
30
30
def 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 ,
32
34
) -> bool :
33
35
"""Filter a single matrix item based on the build type and requirements."""
34
36
if item ["python_version" ] in disabled_python_versions :
@@ -42,21 +44,13 @@ def filter_matrix_item(
42
44
item ["python_version" ] = "3.10"
43
45
item ["container_image" ] = jetpack_container_image
44
46
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
47
49
if item ["python_version" ] in jetpack_python_versions :
48
50
item ["desired_cuda" ] = "cu126"
49
51
item ["container_image" ] = jetpack_container_image
50
52
return True
51
53
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
60
54
else :
61
55
if item ["gpu_arch_type" ] == "cuda-aarch64" :
62
56
# pytorch image:pytorch/manylinuxaarch64-builder:cuda12.8 comes with glibc2.28
@@ -92,14 +86,6 @@ def main(args: list[str]) -> None:
92
86
default = os .getenv ("LIMIT_PR_BUILDS" , "false" ),
93
87
)
94
88
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
-
103
89
options = parser .parse_args (args )
104
90
if options .matrix == "" :
105
91
raise ValueError ("--matrix needs to be provided" )
@@ -120,7 +106,6 @@ def main(args: list[str]) -> None:
120
106
item ,
121
107
options .jetpack == "true" ,
122
108
options .limit_pr_builds == "true" ,
123
- options .is_nightly == "true" ,
124
109
):
125
110
filtered_includes .append (item )
126
111
0 commit comments