Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Merge in gapic_config_v2 #2721

Merged
merged 34 commits into from
Apr 22, 2019
Merged

Merge in gapic_config_v2 #2721

merged 34 commits into from
Apr 22, 2019

Conversation

andreamlin
Copy link
Contributor

@andreamlin andreamlin commented Apr 22, 2019

These changes have all been reviewed when PRs were opened against the gapic_config_v2 branch.

Tested these changes by generating the Pubsub clients for all languages and diffing the result against the most recent artman docker image's generation of Pubsub clients. The changes are due only to other PRs, such as #2716, and the lag in protobuf version.

andreamlin and others added 30 commits March 28, 2019 13:38
Same as config.proto but different name and different package.
When creating a ResourceNameOneofConfig from protofile annotations, use the already-created collections of SingleResourceNameConfigs and FixedResourceNameConfigs derived from the protofile annotations; this allows for GAPIC config language-specific overrides for resource names.
* Fix missing default retries
* Revert python and ruby baselines
* Manual update of py and ruby baselines
* Remove unneeded diag tracking
michaelbausor and others added 3 commits April 19, 2019 11:20
* Fix null pointer exception when Api model is null
* Correctly handle annotations plus v2 config case for interfaces
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 22, 2019
@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #2721 into master will increase coverage by 0.07%.
The diff coverage is 77.46%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2721      +/-   ##
============================================
+ Coverage     86.95%   87.03%   +0.07%     
- Complexity     5622     5644      +22     
============================================
  Files           468      469       +1     
  Lines         22446    22492      +46     
  Branches       2433     2432       -1     
============================================
+ Hits          19519    19576      +57     
+ Misses         2079     2074       -5     
+ Partials        848      842       -6
Impacted Files Coverage Δ Complexity Δ
...e/api/codegen/config/SingleResourceNameConfig.java 81.81% <ø> (ø) 9 <0> (ø) ⬇️
...le/api/codegen/config/FixedResourceNameConfig.java 50% <ø> (ø) 6 <0> (ø) ⬇️
...google/api/codegen/config/PageStreamingConfig.java 62.79% <ø> (ø) 16 <0> (ø) ⬇️
.../api/codegen/config/DiscoGapicInterfaceConfig.java 54.91% <100%> (-0.37%) 25 <5> (ø)
...le/api/codegen/config/ResourceNameOneofConfig.java 48.57% <38.46%> (-2.2%) 10 <3> (ø)
...m/google/api/codegen/config/LongRunningConfig.java 53.84% <65.38%> (+8.9%) 12 <4> (+3) ⬆️
...oogle/api/codegen/config/GapicInterfaceConfig.java 80.95% <76.47%> (+1.46%) 48 <4> (+5) ⬆️
...google/api/codegen/config/ProtoInterfaceModel.java 88.88% <85.71%> (-3.12%) 12 <0> (ø)
...oogle/api/codegen/util/ConfigVersionValidator.java 91.3% <91.3%> (ø) 9 <9> (?)
.../google/api/codegen/config/GapicProductConfig.java 80.45% <91.42%> (+1.33%) 97 <8> (+5) ⬆️
... and 3 more

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 bcdf090...278512d. Read the comment docs.

2 similar comments
@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #2721 into master will increase coverage by 0.07%.
The diff coverage is 77.46%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2721      +/-   ##
============================================
+ Coverage     86.95%   87.03%   +0.07%     
- Complexity     5622     5644      +22     
============================================
  Files           468      469       +1     
  Lines         22446    22492      +46     
  Branches       2433     2432       -1     
============================================
+ Hits          19519    19576      +57     
+ Misses         2079     2074       -5     
+ Partials        848      842       -6
Impacted Files Coverage Δ Complexity Δ
...e/api/codegen/config/SingleResourceNameConfig.java 81.81% <ø> (ø) 9 <0> (ø) ⬇️
...le/api/codegen/config/FixedResourceNameConfig.java 50% <ø> (ø) 6 <0> (ø) ⬇️
...google/api/codegen/config/PageStreamingConfig.java 62.79% <ø> (ø) 16 <0> (ø) ⬇️
.../api/codegen/config/DiscoGapicInterfaceConfig.java 54.91% <100%> (-0.37%) 25 <5> (ø)
...le/api/codegen/config/ResourceNameOneofConfig.java 48.57% <38.46%> (-2.2%) 10 <3> (ø)
...m/google/api/codegen/config/LongRunningConfig.java 53.84% <65.38%> (+8.9%) 12 <4> (+3) ⬆️
...oogle/api/codegen/config/GapicInterfaceConfig.java 80.95% <76.47%> (+1.46%) 48 <4> (+5) ⬆️
...google/api/codegen/config/ProtoInterfaceModel.java 88.88% <85.71%> (-3.12%) 12 <0> (ø)
...oogle/api/codegen/util/ConfigVersionValidator.java 91.3% <91.3%> (ø) 9 <9> (?)
.../google/api/codegen/config/GapicProductConfig.java 80.45% <91.42%> (+1.33%) 97 <8> (+5) ⬆️
... and 3 more

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 bcdf090...278512d. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #2721 into master will increase coverage by 0.07%.
The diff coverage is 77.46%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2721      +/-   ##
============================================
+ Coverage     86.95%   87.03%   +0.07%     
- Complexity     5622     5644      +22     
============================================
  Files           468      469       +1     
  Lines         22446    22492      +46     
  Branches       2433     2432       -1     
============================================
+ Hits          19519    19576      +57     
+ Misses         2079     2074       -5     
+ Partials        848      842       -6
Impacted Files Coverage Δ Complexity Δ
...e/api/codegen/config/SingleResourceNameConfig.java 81.81% <ø> (ø) 9 <0> (ø) ⬇️
...le/api/codegen/config/FixedResourceNameConfig.java 50% <ø> (ø) 6 <0> (ø) ⬇️
...google/api/codegen/config/PageStreamingConfig.java 62.79% <ø> (ø) 16 <0> (ø) ⬇️
.../api/codegen/config/DiscoGapicInterfaceConfig.java 54.91% <100%> (-0.37%) 25 <5> (ø)
...le/api/codegen/config/ResourceNameOneofConfig.java 48.57% <38.46%> (-2.2%) 10 <3> (ø)
...m/google/api/codegen/config/LongRunningConfig.java 53.84% <65.38%> (+8.9%) 12 <4> (+3) ⬆️
...oogle/api/codegen/config/GapicInterfaceConfig.java 80.95% <76.47%> (+1.46%) 48 <4> (+5) ⬆️
...google/api/codegen/config/ProtoInterfaceModel.java 88.88% <85.71%> (-3.12%) 12 <0> (ø)
...oogle/api/codegen/util/ConfigVersionValidator.java 91.3% <91.3%> (ø) 9 <9> (?)
.../google/api/codegen/config/GapicProductConfig.java 80.45% <91.42%> (+1.33%) 97 <8> (+5) ⬆️
... and 3 more

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 bcdf090...278512d. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #2721 into master will increase coverage by 0.07%.
The diff coverage is 77.46%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2721      +/-   ##
============================================
+ Coverage     86.96%   87.04%   +0.07%     
- Complexity     5645     5667      +22     
============================================
  Files           469      470       +1     
  Lines         22532    22578      +46     
  Branches       2437     2436       -1     
============================================
+ Hits          19595    19652      +57     
+ Misses         2085     2080       -5     
+ Partials        852      846       -6
Impacted Files Coverage Δ Complexity Δ
...e/api/codegen/config/SingleResourceNameConfig.java 81.81% <ø> (ø) 9 <0> (ø) ⬇️
...le/api/codegen/config/FixedResourceNameConfig.java 50% <ø> (ø) 6 <0> (ø) ⬇️
...google/api/codegen/config/PageStreamingConfig.java 62.79% <ø> (ø) 16 <0> (ø) ⬇️
.../api/codegen/config/DiscoGapicInterfaceConfig.java 54.91% <100%> (-0.37%) 25 <5> (ø)
...le/api/codegen/config/ResourceNameOneofConfig.java 48.57% <38.46%> (-2.2%) 10 <3> (ø)
...m/google/api/codegen/config/LongRunningConfig.java 53.84% <65.38%> (+8.9%) 12 <4> (+3) ⬆️
...oogle/api/codegen/config/GapicInterfaceConfig.java 80.95% <76.47%> (+1.46%) 48 <4> (+5) ⬆️
...google/api/codegen/config/ProtoInterfaceModel.java 88.88% <85.71%> (-3.12%) 12 <0> (ø)
...oogle/api/codegen/util/ConfigVersionValidator.java 91.3% <91.3%> (ø) 9 <9> (?)
.../google/api/codegen/config/GapicProductConfig.java 80.45% <91.42%> (+1.33%) 97 <8> (+5) ⬆️
... and 3 more

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 ff1e719...12fe523. Read the comment docs.

@andreamlin
Copy link
Contributor Author

PTAL

@andreamlin andreamlin merged commit c5f7f73 into master Apr 22, 2019
busunkim96 pushed a commit to busunkim96/gapic-generator that referenced this pull request Nov 7, 2019
* Add Gapic config v2 (googleapis#2665)
* Whittling down config_v2 (googleapis#2666)
* Add ConfigV2 Validator (googleapis#2672)
* AutoValue LongRunningConfig; always use gapic config's polling settings (googleapis#2698)
* ResourceNameOneofConfig fixes (googleapis#2704)
* Start parsing GAPIC config v2 (googleapis#2703)
* Bring back timeout millis in GAPIC config v2 (googleapis#2708)
* Resource names across different protofiles (googleapis#2711)
* Fix missing default retries (googleapis#2718)
* Bug fixes for gapic config v2 parsing (googleapis#2717)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants