Skip to content

feat(internal/librarian/java): pass repo and artifact to gapic-generator-java#4775

Merged
zhumin8 merged 2 commits intogoogleapis:mainfrom
zhumin8:java-new-fields
Mar 24, 2026
Merged

feat(internal/librarian/java): pass repo and artifact to gapic-generator-java#4775
zhumin8 merged 2 commits intogoogleapis:mainfrom
zhumin8:java-new-fields

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented Mar 23, 2026

Pass repo and artifact (distribution name) as parameter to gapic-generator-java. This is new feature to support o11y features. Context googleapis/sdk-platform-java#4120.

Fix #4773

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.91%. Comparing base (1c55656) to head (354a4e1).
⚠️ Report is 34 commits behind head on main.

Files with missing lines Patch % Lines
internal/librarian/java/postprocess.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4775      +/-   ##
==========================================
+ Coverage   80.63%   80.91%   +0.27%     
==========================================
  Files         128      128              
  Lines       10733    10728       -5     
==========================================
+ Hits         8655     8681      +26     
+ Misses       1471     1439      -32     
- Partials      607      608       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 passes the repository and artifact name to the Java GAPIC generator for observability features. The implementation involves passing configuration through several functions to the GAPIC option resolution logic. Tests are updated to reflect these changes, and a new test for distribution name derivation is included. The logic for deriving the distribution name has been refactored into a shared function, removing code duplication between generate.go and postprocess.go. My review includes one suggestion to improve robustness when handling configuration values.

@zhumin8 zhumin8 marked this pull request as ready for review March 23, 2026 17:37
@zhumin8 zhumin8 requested a review from a team as a code owner March 23, 2026 17:37
@zhumin8 zhumin8 merged commit 64a09f2 into googleapis:main Mar 24, 2026
25 of 26 checks passed
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.

java: pass repo and distribution name to gapic-generator-java

2 participants