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

Update RoundTrip retry condition #2033

Merged
merged 2 commits into from
May 22, 2023

Conversation

vankichi
Copy link
Contributor

Description:

I have updated the round trip retry condition, which removed MovePermanently from the retry condition.

Because it repeats the round trip with the original URL even though the redirect occurs.
We don't need to do a round trip if a redirect occurs because it will lead to the redirect destination.

Related Issue:

None

Versions:

  • Go Version: 1.20.3
  • Docker Version: 20.10.8
  • Kubernetes Version: 1.22.0
  • NGT Version: 2.0.11

Checklist:

Special notes for your reviewer:

@vankichi vankichi requested review from a team, kpango and ykadowak and removed request for a team May 19, 2023 09:17
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 077bf60
Status: ✅  Deploy successful!
Preview URL: https://72f12191.vald.pages.dev
Branch Preview URL: https://refactor-internal-update-rou.vald.pages.dev

View logs

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@vdaas-ci
Copy link
Collaborator

Profile Report

typevald-agent-ngtvald-lb-gatewayvald-discoverervald-manager-index
cpu
heap
other images

@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (b54e81d) 29.41% compared to head (077bf60) 29.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2033      +/-   ##
==========================================
+ Coverage   29.41%   29.42%   +0.01%     
==========================================
  Files         366      366              
  Lines       34625    34625              
==========================================
+ Hits        10186    10190       +4     
+ Misses      24013    24009       -4     
  Partials      426      426              
Impacted Files Coverage Δ
internal/net/http/transport/roundtrip.go 88.46% <ø> (ø)

... and 2 files with indirect coverage changes

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

Copy link
Collaborator

@kpango kpango left a comment

Choose a reason for hiding this comment

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

LGTM

@vankichi vankichi merged commit e655f53 into main May 22, 2023
@vankichi vankichi deleted the refactor/internal/update-roundtrip-retryable-condition branch May 22, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants