Skip to content

Commit

Permalink
Show annotations for both bazel-diff and Gerrit
Browse files Browse the repository at this point in the history
The Gerrit annotation was hidden by some changes for bazelbuild#1605
  • Loading branch information
fweikert committed May 4, 2023
1 parent 5242a59 commit 8031144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,6 +2242,7 @@ def filter_unchanged_targets(
"buildkite-agent",
"annotate",
"--style=info",
"--context 'diff'",
"This run only contains test targets that have been changed since "
"{} due to the {} env variable".format(resolved_diffbase, USE_BAZEL_DIFF_ENV_VAR),
]
Expand Down Expand Up @@ -2762,7 +2763,7 @@ def show_gerrit_review_link(git_repository, pipeline_steps):
text = "The transformed code used in this pipeline can be found under https://{}-review.googlesource.com/q/{}".format(
host, os.getenv("BUILDKITE_COMMIT")
)
commands = ["buildkite-agent annotate --style=info '{}'".format(text)]
commands = ["buildkite-agent annotate --style=info --context 'gerrit' '{}'".format(text)]
pipeline_steps.append(
create_step(
label=":pipeline: Print information about Gerrit Review Link",
Expand Down

0 comments on commit 8031144

Please sign in to comment.