Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ExecutableSampleComposer #882

Closed
wants to merge 1 commit into from
Closed

feat: ExecutableSampleComposer #882

wants to merge 1 commit into from

Conversation

eaball35
Copy link
Contributor

b/207550139, b/207550144

go/java-sample-gen
go/java-sample-gen-bugs

@eaball35 eaball35 requested review from miraleung and a team as code owners December 15, 2021 18:42
@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #882 (3dce467) into main (6af0e18) will increase coverage by 0.05%.
The diff coverage is 98.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #882      +/-   ##
==========================================
+ Coverage   87.84%   87.89%   +0.05%     
==========================================
  Files         153      155       +2     
  Lines       15966    16044      +78     
  Branches     1155     1155              
==========================================
+ Hits        14025    14102      +77     
- Misses       1601     1602       +1     
  Partials      340      340              
Impacted Files Coverage Δ
.../composer/samplecode/ExecutableSampleComposer.java 98.46% <98.46%> (ø)
...or/gapic/composer/samplecode/ExecutableSample.java 100.00% <100.00%> (ø)
...or/gapic/composer/samplecode/SampleCodeWriter.java 90.90% <100.00%> (+3.40%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6af0e18...3dce467. Read the comment docs.

Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

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

Thanks for doing it! Looks like a big milestone in gapic-generator's life.

Looking at the code it seems like in this specific PR the ExecutableSampleComposer is capable of generating a basic class skeleton (with main() method and stuff), but is not doing real client runnable examples, calling client library yet. Is it correct? If yes, can you please clarify in PR descritpion:

  1. what kind of functionality this specific PR (in its current state) ads to gapic generator.
  2. how is it triggered (now) during generation of gapic clients
  3. what would be the next step/PR?
  4. do you anticipate samples differ depending on the transport used (grpc or REST)? note, client instantiation differs depending on if it is grpc or rest client.

Thanks

@eaball35 eaball35 closed this Feb 10, 2022
@chanseokoh chanseokoh deleted the javasamplegen branch February 15, 2022 22:10
suztomo pushed a commit that referenced this pull request Mar 21, 2023
🤖 I have created a release *beep* *boop*
---


## [2.8.4](googleapis/java-core@v2.8.3...v2.8.4) (2022-07-27)


### Documentation

* update javadocs for ReadChannel#limit to be more clear ([#880](googleapis/java-core#880)) ([942e8cc](googleapis/java-core@942e8cc))


### Dependencies

* Update google-cloud-shared-config to v1.5.3 ([#882](googleapis/java-core#882)) ([5997769](googleapis/java-core@5997769))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

None yet

2 participants