Skip to content

ci: hermetic build action version to use shared-dependencies verson#12855

Merged
suztomo merged 1 commit intomainfrom
action-tag-using-gapic-libraries-bom
Apr 20, 2026
Merged

ci: hermetic build action version to use shared-dependencies verson#12855
suztomo merged 1 commit intomainfrom
action-tag-using-gapic-libraries-bom

Conversation

@suztomo
Copy link
Copy Markdown
Member

@suztomo suztomo commented Apr 20, 2026

The hermetic build script relied on the sdk-platform-java release version to set the GitHub Action version. Now it's in the monorepo and cannot rely on the version. Instead, let's use the shared dependencies BOM version in the Git tag.

This change will resolve the latest failure in "chore: Update generation configuration" pull requests googleapis/java-bigtable#2894:

Getting action download info
Error: Unable to resolve action `googleapis/google-cloud-java@v2.71.0`, unable to find version `v2.71.0`

where 2.71.0 is the version of the latest gapic-generator-java artifact. We don't have this tag in the google-cloud-java repository.

Copy link
Copy Markdown
Contributor

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

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 update_generation_config.sh script to improve the flexibility of GitHub Action version updates and switches the composite action reference to use the google-cloud-shared-dependencies version. Feedback includes a suggestion to refine the sed regex to prevent accidental deletion of trailing content on a line and a correction for a comment that references the wrong BOM.

The hermetic build script relied on the sdk-platform-java release
version to set the GitHub Action verison. Now it's in the monorepo
and cannot rely on the version. Instead, let's use the shared
dependencies BOM version in the Git tag.

b/503444342
@suztomo suztomo force-pushed the action-tag-using-gapic-libraries-bom branch from fe86ba8 to 55307d8 Compare April 20, 2026 15:13
@suztomo
Copy link
Copy Markdown
Member Author

suztomo commented Apr 20, 2026

dorny/paths-filter fails:

Download action repository 'dorny/paths-filter@v3' (SHA:d1c1ffe0248fe513906c8e24db8ea791d46f8590)
Error: An action could not be found at the URI 'https://api.github.com/repos/dorny/paths-filter/tarball/d1c1ffe0248fe513906c8e24db8ea791d46f8590' (E000:9C86B:472B:56A5:69E642BB)
Error: Failed to download archive 'https://api.github.com/repos/dorny/paths-filter/tarball/d1c1ffe0248fe513906c8e24db8ea791d46f8590' after 1 attempts.

This is irrelevant to this change.

@suztomo suztomo marked this pull request as ready for review April 20, 2026 15:24
@suztomo suztomo requested a review from a team as a code owner April 20, 2026 15:24
@suztomo
Copy link
Copy Markdown
Member Author

suztomo commented Apr 20, 2026

units (11)Expected — Waiting for status to be reported

Why isn't this working...

=> Closing and reopening this pull request initiated the check runs.

@suztomo suztomo closed this Apr 20, 2026
@suztomo suztomo reopened this Apr 20, 2026
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@suztomo
Copy link
Copy Markdown
Member Author

suztomo commented Apr 20, 2026

cloud-sdk-java-team's approval power is needed.

@suztomo suztomo enabled auto-merge (squash) April 20, 2026 16:45
@suztomo suztomo merged commit decbfcf into main Apr 20, 2026
193 of 202 checks passed
@suztomo suztomo deleted the action-tag-using-gapic-libraries-bom branch April 20, 2026 17:04
# After the google-cloud-java monorepo migration of sdk-platform-java,
# we cannot rely on the gapic-generator-java version tag. Let's use
# the shared dependencies BOM version
latest_shared_dependencies_bom_version=$(get_latest_released_version "com.google.cloud" "google-cloud-shared-dependencies")
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.

Why not use google-cloud-java's version?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

google-cloud-java 's version (gapic-libraries-bom version) is set in the previous cycle for a release. If we need to tweak the Git tag, it's inconvenient. On the other hand, google-cloud-shared-dependencies tag is flexible; we can update the tag.

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.

4 participants