From fe8657933d9d6b27ab4f7cb8412f7b836bf1314b Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Wed, 5 Aug 2026 09:54:47 -0400 Subject: [PATCH 1/4] feat(ci): revamp parallel test outputs for searchability and clarity --- .kokoro/system.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.kokoro/system.sh b/.kokoro/system.sh index 7635c0be17ea..a74ab05762c5 100755 --- a/.kokoro/system.sh +++ b/.kokoro/system.sh @@ -263,16 +263,23 @@ for path in `find 'packages' \ files_to_check=("${package_path}") fi - echo "checking changes with 'git diff ${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT} -- ${files_to_check[*]}'" set +e # Passing the array expanded as arguments to git diff package_modified=$(git diff "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}" -- "${files_to_check[@]}" | wc -l) set -e - if [[ "${package_modified}" -gt 0 || "$KOKORO_BUILD_ARTIFACTS_SUBDIR" == *"continuous"* ]]; then + states=() + [[ "${package_modified}" -gt 0 ]] && states+=("changed") + [[ "$KOKORO_BUILD_ARTIFACTS_SUBDIR" == *"continuous"* ]] && states+=("continuous") + + # Join states with a comma + state_str=$(IFS=, ; echo "${states[*]}") + + if [[ ${#states[@]} -gt 0 ]]; then + echo "[checking] ${package_name}:${KOKORO_GITHUB_PULL_REQUEST_COMMIT:-HEAD}, state: ${state_str}" PACKAGES_TO_TEST+=("$package_name") else - echo "No changes in ${package_name} and not a continuous build, skipping." + echo "[checking] ${package_name}:${KOKORO_GITHUB_PULL_REQUEST_COMMIT:-HEAD}, state: skipped (no changes)" fi done From c3bdf0971c1884aac6a4690834030583e87254e1 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Wed, 5 Aug 2026 10:21:51 -0400 Subject: [PATCH 2/4] chore(ci): add trigger comment to google-cloud-testutils to fire system tests --- packages/google-cloud-testutils/setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-cloud-testutils/setup.py b/packages/google-cloud-testutils/setup.py index f0def265cb19..0481f3dadb5d 100644 --- a/packages/google-cloud-testutils/setup.py +++ b/packages/google-cloud-testutils/setup.py @@ -1,4 +1,5 @@ # Copyright 2017 Google LLC +# Trigger parallel system test run # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,6 +16,7 @@ import io import os import re + import setuptools # type: ignore version = None From 13ac53c8f7df65a05ef74da9aa125db3596b636b Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Wed, 5 Aug 2026 11:08:10 -0400 Subject: [PATCH 3/4] feat(ci): update package checking output to aligned State-First format (Variation 1) --- .kokoro/system.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.kokoro/system.sh b/.kokoro/system.sh index a74ab05762c5..fc9e33f60869 100755 --- a/.kokoro/system.sh +++ b/.kokoro/system.sh @@ -275,11 +275,13 @@ for path in `find 'packages' \ # Join states with a comma state_str=$(IFS=, ; echo "${states[*]}") + commit_hash="${KOKORO_GITHUB_PULL_REQUEST_COMMIT:-HEAD}" + if [[ ${#states[@]} -gt 0 ]]; then - echo "[checking] ${package_name}:${KOKORO_GITHUB_PULL_REQUEST_COMMIT:-HEAD}, state: ${state_str}" + printf "TEST %-20s %-40s %s\n" "[${state_str}]" "${package_name}" "${commit_hash}" PACKAGES_TO_TEST+=("$package_name") else - echo "[checking] ${package_name}:${KOKORO_GITHUB_PULL_REQUEST_COMMIT:-HEAD}, state: skipped (no changes)" + printf "SKIP %-20s %-40s %s\n" "[no_changes]" "${package_name}" "${commit_hash}" fi done From 2aa3f43ea8a3a0eb2438433eca107be995ce728d Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Wed, 5 Aug 2026 13:20:28 -0400 Subject: [PATCH 4/4] chore(ci): trigger kokoro