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

Add test for s3/writer and Refactor. #672

Merged
merged 17 commits into from
Sep 24, 2020

Conversation

hlts2
Copy link
Collaborator

@hlts2 hlts2 commented Sep 3, 2020

Signed-off-by: hlts2 hiroto.funakoshi.hiroto@gmail.com

Description:

I refactored and added the tests for s3/writer.
And when I rebase PR, I found a build error. So I fixed it.

Refactor

Related issue

Autor Review Required

Review Step

  • Refactor
  • SET Team Review for refactoring contents
  • Author Review for refactoring contents
  • Add tests
  • Review test code

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.1
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.1

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.

@hlts2 hlts2 self-assigned this Sep 3, 2020
@pull-assistant
Copy link

pull-assistant bot commented Sep 3, 2020

Score: 0.90

Best reviewed: commit by commit


Optimal code review plan (2 warnings)

     feat: wrapper for s3 manager

fix: refactor

...orage/blob/s3/writer/writer.go 50% changes removed in fix: s3 type

     fix: s3 type

fix typo

.../sdk/s3/s3manager/s3manager.go 44% changes removed in fix: apply suggestio...

...orage/blob/s3/writer/writer.go 67% changes removed in fix: apply suggestio...

     fix: apply suggestion

     add test for writer

     delete unncessary file

     delete unncessary code

     fix: apply feedback

     fix: add comment

     fix: fatal error

     fix: fatal error

     fix: fatal error

     fix: fatal error

     fix: apply suggestion

     fix: apply suggestion

     🤖 Update license headers / Format go codes and yaml files

Powered by Pull Assistant. Last update bc33027 ... 5fc1dc0. Read the comment docs.

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Sep 3, 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 Sep 3, 2020

Codecov Report

Merging #672 into master will decrease coverage by 1.01%.
The diff coverage is 20.97%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #672      +/-   ##
==========================================
- Coverage   15.35%   14.33%   -1.02%     
==========================================
  Files         412      416       +4     
  Lines       21629    19378    -2251     
==========================================
- Hits         3321     2778     -543     
+ Misses      18060    16366    -1694     
+ Partials      248      234      -14     
Impacted Files Coverage Δ
internal/compress/zstd.go 100.00% <ø> (+69.35%) ⬆️
internal/config/ngt.go 100.00% <ø> (ø)
internal/db/nosql/cassandra/cassandra.go 0.00% <0.00%> (ø)
internal/errors/http.go 0.00% <0.00%> (ø)
internal/errors/option.go 0.00% <0.00%> (ø)
...ternal/observability/metrics/agent/core/ngt/ngt.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/ngt.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/option.go 0.00% <0.00%> (-12.77%) ⬇️
pkg/agent/core/ngt/usecase/agentd.go 0.00% <0.00%> (ø)
...ger/replication/controller/handler/grpc/handler.go 0.00% <ø> (ø)
... and 406 more

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 7cf4b77...5fc1dc0. Read the comment docs.

@hlts2
Copy link
Collaborator Author

hlts2 commented Sep 4, 2020

/rebase

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Sep 4, 2020

[REBASE] Rebase triggered by hlts2 for branch: test/internal/storage_blob_s3_writer

@vdaas-ci vdaas-ci force-pushed the test/internal/storage_blob_s3_writer branch from 327af2e to 58a4145 Compare September 4, 2020 06:21
kevindiu
kevindiu previously approved these changes Sep 7, 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

@github-actions github-actions bot added the team/set SET team label Sep 7, 2020
@hlts2 hlts2 changed the title [WIP] Add test for s3/writer and Refactor. Add test for s3/writer and Refactor. Sep 7, 2020
@hlts2 hlts2 marked this pull request as ready for review September 7, 2020 08:26
@github-actions github-actions bot removed the size/M label Sep 7, 2020
@hlts2 hlts2 requested a review from kevindiu September 7, 2020 08:29
@hlts2
Copy link
Collaborator Author

hlts2 commented Sep 14, 2020

/rebase

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by hlts2 for branch: test/internal/storage_blob_s3_writer

@vdaas-ci vdaas-ci force-pushed the test/internal/storage_blob_s3_writer branch from 73532eb to b075b0f Compare September 14, 2020 02:38
@kevindiu
Copy link
Contributor

Can you update the test case to cover this logic?

@kevindiu
Copy link
Contributor

/rebase

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
kevindiu
kevindiu previously approved these changes Sep 23, 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

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
kevindiu
kevindiu previously approved these changes Sep 24, 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 Sep 24, 2020
@vankichi
Copy link
Contributor

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

[REBASE] Rebase triggered by vankichi for branch: test/internal/storage_blob_s3_writer

@vdaas-ci
Copy link
Collaborator

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

@vdaas-ci vdaas-ci dismissed stale reviews from vankichi and kevindiu via 5fc1dc0 September 24, 2020 02:59
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 34853a0 into master Sep 24, 2020
@vankichi vankichi deleted the test/internal/storage_blob_s3_writer branch September 24, 2020 05:20
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