@@ -116,19 +116,15 @@ def main():
116
116
# Respect USE_BAZEL_VERSION to override bazel version in presubmit.yml files.
117
117
bazel_version = os .environ .get ("USE_BAZEL_VERSION" )
118
118
for module_name , module_version in modules :
119
- previous_size = len (pipeline_steps )
120
-
121
119
configs = bcr_presubmit .get_anonymous_module_task_config (module_name , module_version , bazel_version )
122
120
bcr_presubmit .add_presubmit_jobs (module_name , module_version , configs .get ("tasks" , {}), pipeline_steps , overwrite_bazel_version = bazel_version , calc_concurrency = calc_concurrency )
123
121
configs = bcr_presubmit .get_test_module_task_config (module_name , module_version , bazel_version )
124
122
bcr_presubmit .add_presubmit_jobs (module_name , module_version , configs .get ("tasks" , {}), pipeline_steps , is_test_module = True , overwrite_bazel_version = bazel_version , calc_concurrency = calc_concurrency )
125
123
126
- if len (pipeline_steps ) == previous_size :
127
- bcr_presubmit .error ("No pipeline steps generated for %s@%s. Please check the configuration." % (module_name , module_version ))
128
-
129
124
if pipeline_steps :
130
- # Always wait for approval to proceed
131
- pipeline_steps = [{"block" : "Please review generated jobs before proceeding" , "blocked_state" : "running" }] + pipeline_steps
125
+ if not "SKIP_WAIT_FOR_APPROVAL" in os .environ :
126
+ # Wait for approval to proceed
127
+ pipeline_steps .insert (0 , {"block" : "Please review generated jobs before proceeding" , "blocked_state" : "running" })
132
128
if bazelci .use_bazelisk_migrate ():
133
129
pipeline_steps += create_step_for_report_flags_results ()
134
130
0 commit comments