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 load test #552

Merged
merged 14 commits into from
Aug 6, 2020
Merged

refactor load test #552

merged 14 commits into from
Aug 6, 2020

Conversation

kmrmt
Copy link
Contributor

@kmrmt kmrmt commented Jul 6, 2020

Description:

Refactor load test.

Related Issue:

Nothing.

How Has This Been Tested?:

Nothing.

Environment:

  • Go Version: 1.14.2
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.11.4

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

@kmrmt kmrmt requested review from kevindiu and hlts2 July 6, 2020 07:50
@pull-assistant
Copy link

pull-assistant bot commented Jul 6, 2020

Score: 0.82

Best reviewed: commit by commit


Optimal code review plan (4 warnings)

refactor load test

...oadtest/service/insert_test.go 67% changes removed in fix for ci

...oadtest/service/loader_test.go 67% changes removed in fix for ci

...oadtest/service/search_test.go 67% changes removed in fix for ci

     fix format

use raw grpc client

...cli/loadtest/service/loader.go 56% changes removed in refactor based on co...

gofmt

...cli/loadtest/service/loader.go 57% changes removed in refactor based on co...

     bug fix

     fix based on comments

     fix based on comments

     fix based on comments

     fix error check

     fix error check

     refactor based on comment

     refactor

🤖 Update license headers / Format go codes and yaml files

...cli/loadtest/service/loader.go 50% changes removed in fix for ci

     fix for ci

Powered by Pull Assistant. Last update b5e700a ... 0985a92. Read the comment docs.

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Jul 6, 2020

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master

@codecov
Copy link

codecov bot commented Jul 6, 2020

Codecov Report

Merging #552 into master will decrease coverage by 0.10%.
The diff coverage is 0.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #552      +/-   ##
==========================================
- Coverage   13.33%   13.22%   -0.11%     
==========================================
  Files         409      409              
  Lines       21341    21516     +175     
==========================================
  Hits         2845     2845              
- Misses      18220    18394     +174     
- Partials      276      277       +1     
Impacted Files Coverage Δ
pkg/tools/cli/loadtest/assets/loader.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/config/config.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/service/insert.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/service/loader.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/service/search.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/usecase/load.go 0.00% <0.00%> (ø)
pkg/tools/cli/loadtest/service/loader_option.go 8.33% <7.69%> (+0.22%) ⬆️
internal/errgroup/group.go 93.42% <0.00%> (-1.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3d5073...0985a92. Read the comment docs.

@kevindiu kevindiu self-requested a review July 29, 2020 01:12
kevindiu
kevindiu previously approved these changes Jul 29, 2020
Copy link
Contributor

@kevindiu kevindiu 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 previously approved these changes Jul 30, 2020
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

@kmrmt kmrmt dismissed stale reviews from vankichi and kevindiu via b541c1a July 30, 2020 04:04
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
@vdaas-ci vdaas-ci force-pushed the feature/benchmark/load_test_refactor branch from 8111b31 to 028925c Compare August 6, 2020 03:18
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[FORMAT] Failed to format.

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

vdaas-ci
vdaas-ci previously approved these changes Aug 6, 2020
Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by vankichi.

@vankichi
Copy link
Contributor

vankichi commented Aug 6, 2020

@kmrmt Could you please fix failing test?

Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
pkg/tools/cli/loadtest/service/loader.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/search.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/loader.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/loader.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/search.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/loader.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/insert.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/insert.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/insert.go Show resolved Hide resolved
pkg/tools/cli/loadtest/service/insert.go Show resolved Hide resolved
Copy link
Contributor

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@kevindiu kevindiu left a comment

Choose a reason for hiding this comment

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

LGTM

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

@vankichi
Copy link
Contributor

vankichi commented Aug 6, 2020

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[REBASE] Rebase triggered by vankichi for branch: feature/benchmark/load_test_refactor

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Aug 6, 2020

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by vankichi.

@vankichi vankichi merged commit 2e2581b into master Aug 6, 2020
@vankichi vankichi deleted the feature/benchmark/load_test_refactor branch August 6, 2020 08:53
@vdaas-ci vdaas-ci mentioned this pull request Sep 2, 2020
18 tasks
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