@@ -135,18 +135,27 @@ def main() -> None:
135135 components_arg = chain .from_iterable (("--component" , component ) for component in components )
136136 components_with_resources = os .environ .get ("COMPONENTS_W_RESOURCES" , "" ).split ()
137137 components_with_resources_arg = chain .from_iterable (("--no-remove-resources" , component ) for component in components_with_resources )
138+ snapshot_components = {component .name for component in snapshot .components }
138139 deploy_frontends = os .environ .get ("DEPLOY_FRONTENDS" ) or "false"
139140 deploy_timeout = get_timeout ("DEPLOY_TIMEOUT" , labels )
140141 extra_deploy_args = os .environ .get ("EXTRA_DEPLOY_ARGS" , "" )
141142 optional_deps_method = os .environ .get ("OPTIONAL_DEPS_METHOD" , "hybrid" )
142143 ref_env = os .environ .get ("REF_ENV" , "insights-production" )
143144
144145 if pr_number :
146+ if "run-jenkins-tests" in labels :
147+ display ("PR labeled to run Jenkins tests instead of Konflux" )
148+ return
149+
145150 if "ok-to-skip-smokes" in labels :
146- display ("[INFO] PR labeled with 'ok-to- skip-smokes'. Skipping deploy. " )
151+ display ("PR labeled to skip smoke tests " )
147152 return
153+
154+ if "koku" in snapshot_components and "smokes-required" in labels and not any (label .endswith ("smoke-tests" ) for label in labels ):
155+ sys .exit ("Missing smoke tests labels." )
156+
148157 else :
149- display ("[INFO] No PR number found. Assuming this is a scheduled or manual test run." )
158+ display ("[INFO] No PR number found. Assuming nightly/ manual test run." )
150159 display ("[INFO] Proceeding with full smoke tests..." )
151160
152161 for secret in ["koku-aws" , "koku-gcp" ]:
@@ -182,4 +191,4 @@ def main() -> None:
182191
183192
184193if __name__ == "__main__" :
185- main ()
194+ main ()
0 commit comments