Skip to content

Commit 7bca195

Browse files
authored
Fix bcr_presubmit.py (#2082)
`task_name` was overridden later.
1 parent f9f0579 commit 7bca195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildkite/bazel-central-registry/bcr_presubmit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def get_test_module_task_config(module_name, module_version, bazel_version=None)
115115

116116

117117
def add_presubmit_jobs(module_name, module_version, task_configs, pipeline_steps, is_test_module=False, overwrite_bazel_version=None, calc_concurrency=None):
118-
for task_name, task_config in task_configs.items():
119-
platform_name = bazelci.get_platform_for_task(task_name, task_config)
118+
for task_id, task_config in task_configs.items():
119+
platform_name = bazelci.get_platform_for_task(task_id, task_config)
120120
platform_label = bazelci.PLATFORMS[platform_name]["emoji-name"]
121121
task_name = task_config.get("name", "")
122122
label = f"{module_name}@{module_version} - {platform_label} - {task_name}"
@@ -132,7 +132,7 @@ def add_presubmit_jobs(module_name, module_version, task_configs, pipeline_steps
132132
"test_module_runner" if is_test_module else "anonymous_module_runner",
133133
module_name,
134134
module_version,
135-
task_name,
135+
task_id,
136136
"--overwrite_bazel_version=%s" % overwrite_bazel_version if overwrite_bazel_version else ""
137137
)
138138
)

0 commit comments

Comments
 (0)