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

refactor and add test for service/ngt.go #2040

Merged
merged 9 commits into from
May 26, 2023
Merged

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented May 24, 2023

Description:

As a preparation for #2034, extracted the process of initializing the backup folder and added some tests.

Related Issue:

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:

@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

@cloudflare-workers-and-pages
Copy link

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

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0c1b1f8
Status: ✅  Deploy successful!
Preview URL: https://04006ad8.vald.pages.dev
Branch Preview URL: https://feature-agent-refactor-new.vald.pages.dev

View logs

pkg/agent/core/ngt/service/ngt_test.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt_test.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt_test.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Patch coverage: 51.72% and project coverage change: +0.06 🎉

Comparison is base (e655f53) 29.44% compared to head (0c1b1f8) 29.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2040      +/-   ##
==========================================
+ Coverage   29.44%   29.51%   +0.06%     
==========================================
  Files         366      366              
  Lines       34625    34634       +9     
==========================================
+ Hits        10197    10223      +26     
+ Misses      24001    23974      -27     
- Partials      427      437      +10     
Impacted Files Coverage Δ
pkg/agent/core/ngt/service/ngt.go 22.24% <51.72%> (+3.40%) ⬆️

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

@github-actions
Copy link
Contributor

@vdaas-ci
Copy link
Collaborator

Profile Report

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

@ykadowak ykadowak changed the title [WIP] refactor and add test for service/ngt.go refactor and add test for service/ngt.go May 24, 2023
@ykadowak ykadowak requested review from kpango, a team and vankichi and removed request for a team May 25, 2023 00:53
@ykadowak ykadowak requested a review from kpango May 25, 2023 04:32
@vdaas-ci
Copy link
Collaborator

Profile Report

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

@vankichi vankichi merged commit 152ac56 into main May 26, 2023
@vankichi vankichi deleted the feature/agent/refactor-new branch May 26, 2023 00:49
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