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

fix: retries for GetIamPolicy, TestIamPermissions #10957

Merged
merged 3 commits into from
Feb 26, 2023

Conversation

dbolduc
Copy link
Member

@dbolduc dbolduc commented Feb 26, 2023

Part of the work for #10413

It seemed better to add a special case to the generator's default idempotency method than to maintain the configuration in generator_config.textproto for N services. And the N+1th service will have the proper defaults for the IAM methods without manual intervention.


This change is Reviewable

@codecov
Copy link

codecov bot commented Feb 26, 2023

Codecov Report

Base: 93.64% // Head: 93.64% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (d0efb73) compared to base (9ee0d20).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10957      +/-   ##
==========================================
- Coverage   93.64%   93.64%   -0.01%     
==========================================
  Files        1717     1717              
  Lines      154915   154918       +3     
==========================================
+ Hits       145070   145072       +2     
- Misses       9845     9846       +1     
Impacted Files Coverage Δ
generator/internal/descriptor_utils_test.cc 99.01% <ø> (ø)
...olden_thing_admin_connection_idempotency_policy.cc 95.23% <100.00%> (ø)
...ests/golden_thing_admin_idempotency_policy_test.cc 100.00% <100.00%> (ø)
generator/internal/descriptor_utils.cc 89.51% <100.00%> (+0.04%) ⬆️
google/cloud/internal/async_connection_ready.cc 89.36% <0.00%> (-4.26%) ⬇️
...ud/spanner/integration_tests/client_stress_test.cc 84.21% <0.00%> (-0.66%) ⬇️
...le/cloud/storage/internal/curl_download_request.cc 88.62% <0.00%> (-0.34%) ⬇️
google/cloud/pubsub/samples/samples.cc 86.94% <0.00%> (-0.08%) ⬇️
google/cloud/storage/parallel_upload.cc 98.62% <0.00%> (+0.34%) ⬆️
...cloud/pubsub/internal/subscription_session_test.cc 98.49% <0.00%> (+0.50%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dbolduc dbolduc marked this pull request as ready for review February 26, 2023 01:11
@dbolduc dbolduc requested a review from a team as a code owner February 26, 2023 01:11
@dbolduc dbolduc merged commit 050ae6d into googleapis:main Feb 26, 2023
@dbolduc dbolduc deleted the iam-retries branch February 26, 2023 01:39
@@ -430,6 +430,10 @@ void SetHttpGetQueryParameters(

std::string DefaultIdempotencyFromHttpOperation(
google::protobuf::MethodDescriptor const& method) {
if (method.name() == "GetIamPolicy" ||
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: there is prior code to detect SetIamPolicy methods, maybe you should have followed the same structure as those?

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.

3 participants