Skip to content

chore: restore nightly protobuf compatibility check - #13884

Open
whowes wants to merge 1 commit into
mainfrom
whowes/restore-proto-compat-check
Open

chore: restore nightly protobuf compatibility check#13884
whowes wants to merge 1 commit into
mainfrom
whowes/restore-proto-compat-check

Conversation

@whowes

@whowes whowes commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Part of Issue #13867

  • restore/adapt previous GitHub Action config (see diff against last revision before deletion)
  • adjust logic and nomenclature for using modules of the monorepo v. previous separate repos
  • add showcase testing
  • address findings from Zizmor static analysis and Gemini code review

Passing manual workflow run: https://github.com/googleapis/google-cloud-java/actions/runs/30300607069

@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 refactors the nightly downstream Protobuf compatibility scripts to test local monorepo submodules directly instead of cloning them from GitHub, removing the special-casing for the google-cloud-java repository. Feedback on these changes recommends using standard CLI commands to retrieve tool versions rather than manually parsing versions.txt, redirecting error messages to standard error (>&2), and appending || exit 1 to pushd commands to ensure the scripts terminate safely if directory changes fail.

Comment thread sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh Outdated
Comment thread sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh Outdated
Comment thread sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh Outdated
Comment thread sdk-platform-java/.kokoro/nightly/downstream-protobuf-source-compatibility.sh Outdated
Comment thread sdk-platform-java/.kokoro/nightly/downstream-protobuf-source-compatibility.sh Outdated
@whowes
whowes force-pushed the whowes/restore-proto-compat-check branch 22 times, most recently from d8b7a8e to 24ef975 Compare July 25, 2026 01:54
@whowes

whowes commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@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 Kokoro nightly downstream compatibility scripts to test local monorepo submodules instead of cloning external repositories. It also adds KMS dependencies to the installation list, excludes StorageITRunnerTest from storage tests, and configures test options for Java 8 compatibility. Feedback on the changes suggests improving Bash script efficiency and robustness, specifically by using native parameter expansion instead of cut, avoiding useless use of cat with grep, and using Bash arrays instead of unquoted string variables to prevent word splitting issues.

@whowes
whowes force-pushed the whowes/restore-proto-compat-check branch 2 times, most recently from 0ee5563 to 72be2a8 Compare July 27, 2026 19:24
@whowes
whowes force-pushed the whowes/restore-proto-compat-check branch from 72be2a8 to 41ffb2b Compare July 27, 2026 19:41
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@whowes
whowes marked this pull request as ready for review July 27, 2026 22:45
@whowes
whowes requested review from a team as code owners July 27, 2026 22:45
@whowes
whowes requested a review from lqiu96 July 27, 2026 22:45
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.

1 participant