From 80311445d4c8b4ddc0d2b776c98159064d980e01 Mon Sep 17 00:00:00 2001 From: fweikert Date: Thu, 4 May 2023 20:17:39 +0200 Subject: [PATCH] Show annotations for both bazel-diff and Gerrit The Gerrit annotation was hidden by some changes for #1605 --- buildkite/bazelci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py index ff40285aab..973afe57ac 100755 --- a/buildkite/bazelci.py +++ b/buildkite/bazelci.py @@ -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), ] @@ -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",