chore(internal/librariangen): add .repo-metadata.json generation#13290
chore(internal/librariangen): add .repo-metadata.json generation#13290quartzmo merged 12 commits intogoogleapis:mainfrom
Conversation
Summary of ChangesHello @quartzmo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the functionality to generate .repo-metadata.json files for each generated API client. The implementation is well-structured within a new manifest.go file and includes a comprehensive set of tests. My review includes several suggestions to enhance the correctness, robustness, and maintainability of the new code, primarily focusing on path calculations, function signatures, and removing dead or brittle code.
|
Local integration testing produces NO DIFF versus latest version of |
jskeet
left a comment
There was a problem hiding this comment.
Have you tested this by creating a local Docker image and running librarian update-image? If you've done that and there are no diffs, that sounds good to me.
I think we'll need to update the state file though to say that the .repo-metadata.json file should be deleted (in the remove regex) and change the configure command to add the appropriate removal as well. Otherwise, now that googleapis/librarian#2593 is fixed, I'd expect generation to fail with this.
Of course you're right that now that we re-generate |
jskeet
left a comment
There was a problem hiding this comment.
This looks good, but we'll need to coordinate on submitting this and updating the image, to avoid issues with generation.
|
Because of the commits in this PR that fix issues in existing .repo-metadata.json files, running This PR is ready to merge, and as soon as the corresponding new image is ready (roughly 10 minutes), merging it must be followed with |
| } | ||
|
|
||
| importPath := "cloud.google.com/go/foo/apiv1" | ||
| if tt.name == "import_path_alpha" { |
There was a problem hiding this comment.
Maybe just make this another field in the test struct?
There was a problem hiding this comment.
I suggest for reasons of pragmatism, I do this in a follow-up PR.
jskeet
left a comment
There was a problem hiding this comment.
LGTM, let's merge and then update once the new image is built.
closes: googleapis/librarian#2527