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

Make internal/cache generic #2104

Merged
merged 7 commits into from
Jul 10, 2023
Merged

Make internal/cache generic #2104

merged 7 commits into from
Jul 10, 2023

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented Jul 3, 2023

Description:

  • update gache to v2
  • change internal/cache generic
  • change dialer.go to be compatible with the generic internal/cache

Related Issue:

Versions:

  • Go Version: 1.20.5
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.27.3
  • NGT Version: 2.0.13

Checklist:

Special notes for your reviewer:

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 3, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2141337
Status: ✅  Deploy successful!
Preview URL: https://3069a574.vald.pages.dev
Branch Preview URL: https://feature-internal-gachev2.vald.pages.dev

View logs

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Jul 3, 2023

[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

@ykadowak ykadowak changed the title [WIP] Make internal/cache generic Make internal/cache generic Jul 3, 2023
@ykadowak ykadowak changed the title Make internal/cache generic [WIP] Make internal/cache generic Jul 3, 2023
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.73 ⚠️

Comparison is base (a6d8701) 30.65% compared to head (342f81d) 29.93%.

❗ Current head 342f81d differs from pull request most recent head e61ea5e. Consider uploading reports for the commit e61ea5e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2104      +/-   ##
==========================================
- Coverage   30.65%   29.93%   -0.73%     
==========================================
  Files         347      369      +22     
  Lines       34255    35095     +840     
==========================================
+ Hits        10501    10505       +4     
- Misses      23276    24107     +831     
- Partials      478      483       +5     
Impacted Files Coverage Δ
internal/cache/cacher/cacher.go 100.00% <ø> (ø)
internal/cache/cache.go 100.00% <100.00%> (ø)
internal/cache/gache/gache.go 100.00% <100.00%> (ø)
internal/cache/gache/option.go 100.00% <100.00%> (ø)
internal/cache/option.go 100.00% <100.00%> (ø)
internal/net/dialer.go 77.25% <100.00%> (-1.15%) ⬇️
internal/net/option.go 88.50% <100.00%> (ø)

... and 23 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.

internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/cache.go Show resolved Hide resolved
internal/cache/cache.go Show resolved Hide resolved
internal/cache/option.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/option_test.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/option_test.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache.go Show resolved Hide resolved
internal/cache/gache/gache_test.go Show resolved Hide resolved
internal/cache/gache/option_test.go Show resolved Hide resolved
@ykadowak ykadowak changed the title [WIP] Make internal/cache generic Make internal/cache generic Jul 4, 2023
@ykadowak ykadowak requested review from a team, vankichi and hlts2 and removed request for a team July 4, 2023 04:22
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Jul 5, 2023

Profile Report

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

vankichi
vankichi previously approved these changes Jul 6, 2023
Copy link
Contributor

@vankichi vankichi left a comment

Choose a reason for hiding this comment

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

LGTM

@ykadowak ykadowak merged commit 1ee9357 into main Jul 10, 2023
67 checks passed
@ykadowak ykadowak deleted the feature/internal/gachev2 branch July 10, 2023 02:33
@hlts2 hlts2 mentioned this pull request Sep 13, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
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.

4 participants