GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: add autogenerated snippets by busunkim96 · Pull Request #845 · googleapis/gapic-generator-python
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Conversation
Contributor
This PR targets iteration 1 and 2 specified in the Snippet Gen Design: Full canonical coverage of simple requests, paginated, LRO, server streaming, and Bidi streaming with empty request objects. Snippet generation is hidden behind a new option After discussion with folks on different language teams on snippetgen, I decided using "golden" snippet files would be easier than following the unit testing strategy used to check the library surface. I also believe goldens will be be easier for review for other Python DPEs. Other notes:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Here is the summary of possible violations 😱 DetailsThere are 7 possible violations for not having product prefix.
The end of the violation section. All the stuff below is FYI purposes only. Here is the summary of changes. You are about to add 7 region tags.
You are about to delete 2 region tags.This comment is generated by snippet-bot.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #845 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 26 27 +1 Lines 1608 1694 +86 Branches 328 347 +19 ========================================= + Hits 1608 1694 +86
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Lol please ignore snippetbot, I'll add a config to ignore those paths. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm honestly surprised as much of the original sample gen code is as reusable as seems to be the case. Neat! First pass looks great, going to look more closely in just a second. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor nits. Looks great!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the functional side of things.
I just left a comment re: region tags. Thanks!!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| for client_name, client in service.clients.items(): | ||
|
|
||
| for rpc_name, method_list in client.rpcs.items(): | ||
| # generated_${api}_${apiVersion}_${serviceName}_${rpcName}_{sync|async} |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is going to change now so that snippets can be matched to products by the snippet tracker. @busunkim96 I've cc'ed you on a comment on the desgin doc.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed! One thing I noticed is that the endpoint is declared at the service level. I guess in practice the endpoint is the same across all services in the same API? https://github.com/googleapis/googleapis/blob/ae5fb2884a296832c39867e8e8c81bbc72a32ce8/google/cloud/pubsublite/v1/subscriber.proto#L35
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.