From 2262e2b8e8323e3689310ec057e988e9b5cded18 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 4 Oct 2019 11:38:30 +0200 Subject: [PATCH] add extra kokoro build info to Win RBE runs --- tools/internal_ci/windows/bazel_rbe.bat | 2 +- .../remote_build/workspace_status_kokoro.bat | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tools/remote_build/workspace_status_kokoro.bat diff --git a/tools/internal_ci/windows/bazel_rbe.bat b/tools/internal_ci/windows/bazel_rbe.bat index d056078d06c..6fe490c81e1 100644 --- a/tools/internal_ci/windows/bazel_rbe.bat +++ b/tools/internal_ci/windows/bazel_rbe.bat @@ -24,7 +24,7 @@ powershell -Command "[guid]::NewGuid().ToString()" >%KOKORO_ARTIFACTS_DIR%/bazel set /p BAZEL_INVOCATION_ID=<%KOKORO_ARTIFACTS_DIR%/bazel_invocation_ids @rem TODO(jtattermusch): windows RBE should be able to use the same credentials as Linux RBE. -bazel --bazelrc=tools/remote_build/windows.bazelrc test --invocation_id="%BAZEL_INVOCATION_ID%" %RUN_TESTS_FLAGS% --workspace_status_command=tools/remote_build/workspace_status_kokoro.sh --google_credentials=%KOKORO_GFILE_DIR%/rbe-windows-credentials.json //test/... +bazel --bazelrc=tools/remote_build/windows.bazelrc test --invocation_id="%BAZEL_INVOCATION_ID%" %RUN_TESTS_FLAGS% --workspace_status_command=tools/remote_build/workspace_status_kokoro.bat --google_credentials=%KOKORO_GFILE_DIR%/rbe-windows-credentials.json //test/... set BAZEL_EXITCODE=%errorlevel% @rem TODO(jtattermusch): upload results to bigquery diff --git a/tools/remote_build/workspace_status_kokoro.bat b/tools/remote_build/workspace_status_kokoro.bat new file mode 100644 index 00000000000..bfef00e9838 --- /dev/null +++ b/tools/remote_build/workspace_status_kokoro.bat @@ -0,0 +1,29 @@ +@rem Copyright 2019 gRPC authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. + +@echo off +@rem Adds additional labels to results page for Bazel RBE builds on Kokoro +@rem Note that this script needs to be a .bat file, the .sh version of this +@rem script is simply ignored when used on Windows. + +@rem Provide a way to go from Bazel RBE links back to Kokoro job results +@rem which is important for debugging test infrastructure problems. +@rem TODO(jtattermusch): replace this workaround by something more user-friendly. + +echo KOKORO_RESULTSTORE_URL https://source.cloud.google.com/results/invocations/%KOKORO_BUILD_ID% +echo KOKORO_SPONGE_URL http://sponge.corp.google.com/%KOKORO_BUILD_ID% + +echo KOKORO_BUILD_NUMBER %KOKORO_BUILD_NUMBER% +echo KOKORO_JOB_NAME %KOKORO_JOB_NAME% +echo KOKORO_GITHUB_COMMIT %KOKORO_GITHUB_COMMIT%