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: Do not retry regional when request is not GET #2363

Merged
merged 1 commit into from Sep 25, 2022

Conversation

jwtty
Copy link
Member

@jwtty jwtty commented Sep 22, 2022

What type of PR is this?

/kind bug

What this PR does / why we need it:

Only check response body length when request is GET.

Which issue(s) this PR fixes:

related #2296

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Only check response body length when request is GET. Avoids unnecessary retry when deleting an LB.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 22, 2022
@netlify
Copy link

netlify bot commented Sep 22, 2022

Deploy Preview for kubernetes-sigs-cloud-provide-azure canceled.

Name Link
🔨 Latest commit 5a8d98d
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cloud-provide-azure/deploys/632f32dd33e24b000826392e

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 22, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2022
@coveralls
Copy link

coveralls commented Sep 22, 2022

Coverage Status

Coverage decreased (-0.02%) to 80.305% when pulling 5a8d98d on jwtty:retry into 07f8572 on kubernetes-sigs:master.

@jwtty
Copy link
Member Author

jwtty commented Sep 22, 2022

/test pull-cloud-provider-azure-e2e-capz

@MartinForReal
Copy link
Contributor

send function accept decorator as parameters and maybe we can move DoHackRegionalRetryDecorator to GetResource function ?

@feiskyer
Copy link
Member

send function accept decorator as parameters and maybe we can move DoHackRegionalRetryDecorator to GetResource function ?

yes, this is another way to achieve the same goal. Which approach do you prefer?

@jwtty jwtty force-pushed the retry branch 2 times, most recently from 0da314d to b413638 Compare September 24, 2022 08:17
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 24, 2022
@jwtty jwtty force-pushed the retry branch 2 times, most recently from 5bcfdb4 to 80a4300 Compare September 24, 2022 08:28
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 24, 2022
@MartinForReal
Copy link
Contributor

/test pull-cloud-provider-azure-e2e-ccm-vmss-capz


@MartinForReal
Copy link
Contributor

LGTM

@feiskyer
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 25, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feiskyer, jwtty

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feiskyer
Copy link
Member

/cherrypick release-1.1

@k8s-infra-cherrypick-robot

@feiskyer: once the present PR merges, I will cherry-pick it on top of release-1.1 in a new PR and assign it to you.

In response to this:

/cherrypick release-1.1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot merged commit c535335 into kubernetes-sigs:master Sep 25, 2022
@feiskyer
Copy link
Member

/cherrypick release-1.23

@feiskyer
Copy link
Member

/cherrypick release-1.24

@feiskyer
Copy link
Member

/cherrypick release-1.25

@k8s-infra-cherrypick-robot

@feiskyer: #2363 failed to apply on top of branch "release-1.1":

Applying: Do not retry regional when request is not GET
Using index info to reconstruct a base tree...
M	pkg/azureclients/armclient/azure_armclient.go
M	pkg/azureclients/armclient/azure_armclient_test.go
A	pkg/azureclients/armclient/util.go
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): pkg/azureclients/armclient/util.go deleted in HEAD and modified in Do not retry regional when request is not GET. Version Do not retry regional when request is not GET of pkg/azureclients/armclient/util.go left in tree.
Auto-merging pkg/azureclients/armclient/azure_armclient_test.go
Auto-merging pkg/azureclients/armclient/azure_armclient.go
CONFLICT (content): Merge conflict in pkg/azureclients/armclient/azure_armclient.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Do not retry regional when request is not GET
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-1.1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-infra-cherrypick-robot

@feiskyer: #2363 failed to apply on top of branch "release-1.23":

Applying: Do not retry regional when request is not GET
Using index info to reconstruct a base tree...
M	pkg/azureclients/armclient/azure_armclient.go
M	pkg/azureclients/armclient/azure_armclient_test.go
A	pkg/azureclients/armclient/util.go
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): pkg/azureclients/armclient/util.go deleted in HEAD and modified in Do not retry regional when request is not GET. Version Do not retry regional when request is not GET of pkg/azureclients/armclient/util.go left in tree.
Auto-merging pkg/azureclients/armclient/azure_armclient_test.go
Auto-merging pkg/azureclients/armclient/azure_armclient.go
CONFLICT (content): Merge conflict in pkg/azureclients/armclient/azure_armclient.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Do not retry regional when request is not GET
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-1.23

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-infra-cherrypick-robot

@feiskyer: new pull request created: #2389

In response to this:

/cherrypick release-1.24

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-infra-cherrypick-robot

@feiskyer: new pull request created: #2390

In response to this:

/cherrypick release-1.25

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants