Fix wrong Buildkite org name in buildkite/aggregate_incompatible_flags_test_result.py
@@ -23,7 +23,7 @@ import bazelci
INCOMPATIBLE_FLAGS = bazelci.fetch_incompatible_flags()
-BUILDKITE_ORG = "bazel"
+BUILDKITE_ORG = os.environ["BUILDKITE_ORGANIZATION_SLUG"]
PIPELINE = "bazelisk-plus-incompatible-flags"
@@ -159,11 +159,14 @@ def merge_and_format_jobs(jobs, line_pattern):
pipeline, platform = get_pipeline_and_platform(job)
jobs_per_pipeline[pipeline].append(get_html_link_text(platform, job["web_url"]))
- return [line_pattern.format(pipeline, ", ".join(platforms)) for pipeline, platforms in jobs_per_pipeline.items()]
+ return [
+ line_pattern.format(pipeline, ", ".join(platforms))
+ for pipeline, platforms in jobs_per_pipeline.items()
+ ]
def get_pipeline_and_platform(job):
- name, _, platform = job["name"].partition('(')
+ name, _, platform = job["name"].partition("(")
end = platform.rfind(")")
return name.strip(), platform[:end].strip()
