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

Fix missing default retries #2718

Merged

Conversation

michaelbausor
Copy link
Contributor

  • Always add default retry codes for idempotent and non-idempotent cases, so that when these codes are not present in the gapic config they will still be present and usable.
  • Minor refactoring to reduce code re-use.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 17, 2019
@codecov
Copy link

codecov bot commented Apr 17, 2019

Codecov Report

Merging #2718 into gapic_config_v2 will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@                  Coverage Diff                  @@
##             gapic_config_v2    #2718      +/-   ##
=====================================================
- Coverage              86.98%   86.97%   -0.01%     
- Complexity              5642     5643       +1     
=====================================================
  Files                    469      469              
  Lines                  22499    22499              
  Branches                2436     2436              
=====================================================
- Hits                   19571    19569       -2     
- Misses                  2080     2081       +1     
- Partials                 848      849       +1
Impacted Files Coverage Δ Complexity Δ
...om/google/api/codegen/config/RetryCodesConfig.java 79.77% <66.66%> (-2.25%) 22 <1> (+1)

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 dffe03b...1760611. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 17, 2019

Codecov Report

Merging #2718 into gapic_config_v2 will increase coverage by 0.04%.
The diff coverage is 94.44%.

Impacted file tree graph

@@                  Coverage Diff                  @@
##             gapic_config_v2    #2718      +/-   ##
=====================================================
+ Coverage              86.98%   87.02%   +0.04%     
  Complexity              5642     5642              
=====================================================
  Files                    469      469              
  Lines                  22499    22481      -18     
  Branches                2436     2431       -5     
=====================================================
- Hits                   19571    19565       -6     
+ Misses                  2080     2072       -8     
+ Partials                 848      844       -4
Impacted Files Coverage Δ Complexity Δ
...oogle/api/codegen/config/GapicInterfaceConfig.java 80.95% <ø> (ø) 48 <0> (ø) ⬇️
.../api/codegen/config/DiscoGapicInterfaceConfig.java 54.91% <100%> (-0.37%) 25 <5> (ø)
...om/google/api/codegen/config/RetryCodesConfig.java 94.44% <94.11%> (+12.42%) 21 <2> (ø) ⬇️

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 dffe03b...d55996a. Read the comment docs.

Copy link
Contributor

@alexander-fenster alexander-fenster left a comment

Choose a reason for hiding this comment

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

Node.js baseline changes LGTM

@michaelbausor michaelbausor merged commit 70f22db into googleapis:gapic_config_v2 Apr 19, 2019
@michaelbausor michaelbausor deleted the gapic_config_v2_retries branch April 19, 2019 17:59
andreamlin added a commit that referenced this pull request Apr 22, 2019
* Add Gapic config v2 (#2665)
* Whittling down config_v2 (#2666)
* Add ConfigV2 Validator (#2672)
* AutoValue LongRunningConfig; always use gapic config's polling settings (#2698)
* ResourceNameOneofConfig fixes (#2704)
* Start parsing GAPIC config v2 (#2703)
* Bring back timeout millis in GAPIC config v2 (#2708)
* Resource names across different protofiles (#2711)
* Fix missing default retries (#2718)
* Bug fixes for gapic config v2 parsing (#2717)
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.

4 participants