Skip to content

chore(ci): Exclude a few additional modules from existing versions check#13658

Merged
lqiu96 merged 5 commits into
mainfrom
fix-existing-versions-check-exclude-samples
Jul 6, 2026
Merged

chore(ci): Exclude a few additional modules from existing versions check#13658
lqiu96 merged 5 commits into
mainfrom
fix-existing-versions-check-exclude-samples

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jul 6, 2026

Copy link
Copy Markdown
Member

Besides the samples modules for all the veneers, these pom files are also failing:

  • com.google.cloud:storage-shared-benchmarking
  • com.google.cloud:google-cloud-bigtable-test-proxy
  • com.google.cloud:google-cloud-shared-config-parent

lqiu96 added 2 commits July 6, 2026 16:13
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-<service>/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.
…rom 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.
@lqiu96
lqiu96 requested a review from jinseopkim0 July 6, 2026 16:17
@lqiu96
lqiu96 requested review from a team as code owners July 6, 2026 16:17

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the release version check script to exclude additional directories and POM files, specifically samples, storage-shared-benchmarking, test-proxy, and java-shared-config. Feedback is provided to replace the exact match pattern for java-shared-config with a wildcard pattern to maintain consistency and improve robustness against directory execution context changes.

# 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* || "${pom_file}" == *storage-shared-benchmarking* || "${pom_file}" == *test-proxy* || "${pom_file}" == "./java-shared-config/pom.xml" ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The pattern "${pom_file}" == "./java-shared-config/pom.xml" uses an exact match with a hardcoded ./ prefix, which is inconsistent with the other wildcard-based patterns in this conditional block (such as *sdk-platform-java/pom.xml or *storage-shared-benchmarking*).

Using a wildcard pattern like *java-shared-config/pom.xml or *java-shared-config* is more robust, less fragile to execution context/working directory changes, and maintains consistency with the rest of the conditions.

Suggested change
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}" == *test-proxy* || "${pom_file}" == *java-shared-config/pom.xml ]]; then

lqiu96 added 3 commits July 6, 2026 16:23
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.
@lqiu96
lqiu96 merged commit d132653 into main Jul 6, 2026
200 checks passed
@lqiu96
lqiu96 deleted the fix-existing-versions-check-exclude-samples branch July 6, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants