From ae93baa724b8b3e8d7d865b503d81fd8fa8c05c0 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 6 Jul 2026 16:13:23 +0000 Subject: [PATCH 1/5] fix(ci): exclude all samples from existing-versions-check Update generation/check_existing_release_versions.sh to exclude all pom.xml files that contain samples in their path, rather than just java-samples. This ensures that java-/samples/pom.xml modules (which are not released and may remain as SNAPSHOTs) are excluded from the duplicate version check on release PRs, preventing false positive failures. --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index ac0fa840c329..d3803d45009a 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -47,7 +47,7 @@ for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do # Exclude java-vertexai because it has been archived and replaced with a dummy POM. # We do not plan to release any new versions for it, so we don't want to check if its # version (which already exists) is a duplicate. - if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then + if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then continue fi find_existing_version_pom "${pom_file}" From 93be0377c6b4369163da6d333e7ac977630e34e5 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 6 Jul 2026 16:16:13 +0000 Subject: [PATCH 2/5] fix(ci): exclude benchmarking, test-proxy, and shared-config parent from existing-versions-check Update generation/check_existing_release_versions.sh to exclude: - storage-shared-benchmarking - test-proxy - java-shared-config parent POM These are non-released modules or parent POMs that should not be verified for duplicate release versions. --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index d3803d45009a..ffc5f208cc51 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -47,7 +47,7 @@ for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do # Exclude java-vertexai because it has been archived and replaced with a dummy POM. # We do not plan to release any new versions for it, so we don't want to check if its # version (which already exists) is a duplicate. - if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then + if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *test-proxy* || "${pom_file}" == "./java-shared-config/pom.xml" ]]; then continue fi find_existing_version_pom "${pom_file}" From 5f1d9a58a4e0af81caf7524f203f35ae9f7a627c Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 6 Jul 2026 16:23:30 +0000 Subject: [PATCH 3/5] fix(ci): refine test-proxy exclusion in existing-versions-check Update generation/check_existing_release_versions.sh to use a more specific path pattern *java-bigtable/test-proxy* instead of *test-proxy* to exclude the bigtable test proxy. This prevents accidental exclusions of other modules that might contain 'test-proxy' in their path. --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index ffc5f208cc51..7b8a6eb8081e 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -47,7 +47,7 @@ for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do # Exclude java-vertexai because it has been archived and replaced with a dummy POM. # We do not plan to release any new versions for it, so we don't want to check if its # version (which already exists) is a duplicate. - if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *test-proxy* || "${pom_file}" == "./java-shared-config/pom.xml" ]]; then + if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *java-bigtable/test-proxy* || "${pom_file}" == "./java-shared-config/pom.xml" ]]; then continue fi find_existing_version_pom "${pom_file}" From 3950a88806e079edae6554a307bd1b331687a877 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 6 Jul 2026 16:28:55 +0000 Subject: [PATCH 4/5] fix(ci): use wildcard for java-shared-config parent exclusion --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index 7b8a6eb8081e..2902fbd46c42 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -47,7 +47,7 @@ for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do # Exclude java-vertexai because it has been archived and replaced with a dummy POM. # We do not plan to release any new versions for it, so we don't want to check if its # version (which already exists) is a duplicate. - if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *java-bigtable/test-proxy* || "${pom_file}" == "./java-shared-config/pom.xml" ]]; then + if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *java-bigtable/test-proxy* || ( "${pom_file}" == */java-shared-config/pom.xml && "${pom_file}" != */java-shared-config/java-shared-config/pom.xml ) ]]; then continue fi find_existing_version_pom "${pom_file}" From 0b30a9e4cdf6b687b3984dc0f1cc82cadf3c730d Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 6 Jul 2026 16:30:47 +0000 Subject: [PATCH 5/5] fix(ci): generalize java-shared-config parent exclusion --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index 2902fbd46c42..81e2cdf1d752 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -47,7 +47,7 @@ for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do # Exclude java-vertexai because it has been archived and replaced with a dummy POM. # We do not plan to release any new versions for it, so we don't want to check if its # version (which already exists) is a duplicate. - if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *java-bigtable/test-proxy* || ( "${pom_file}" == */java-shared-config/pom.xml && "${pom_file}" != */java-shared-config/java-shared-config/pom.xml ) ]]; then + if [[ "${pom_file}" == *samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *java-bigtable/test-proxy* || ( "${pom_file}" == */java-shared-config/pom.xml && "${pom_file}" != */java-shared-config/*/pom.xml ) ]]; then continue fi find_existing_version_pom "${pom_file}"