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 s3 test and Refactor #837

Merged
merged 31 commits into from
Dec 8, 2020
Merged

Add s3 test and Refactor #837

merged 31 commits into from
Dec 8, 2020

Conversation

hlts2
Copy link
Contributor

@hlts2 hlts2 commented Nov 12, 2020

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

Description:

author review required*

I added test case for s3.
and I refactor s3 implementation.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.2
  • 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 Nov 12, 2020
@vdaas-ci
Copy link
Collaborator

[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

internal/db/storage/blob/s3/s3_test.go Show resolved Hide resolved
internal/db/storage/blob/s3/s3_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/s3_test.go Outdated Show resolved Hide resolved
internal/db/storage/blob/s3/s3_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #837 (d1b0f43) into master (638f8dc) will decrease coverage by 0.05%.
The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #837      +/-   ##
==========================================
- Coverage   18.62%   18.56%   -0.06%     
==========================================
  Files         422      423       +1     
  Lines       19572    19586      +14     
==========================================
- Hits         3645     3637       -8     
- Misses      15711    15734      +23     
+ Partials      216      215       -1     
Impacted Files Coverage Δ
internal/db/storage/blob/s3/reader/option.go 100.00% <ø> (ø)
internal/db/storage/blob/s3/reader/reader_mock.go 62.50% <0.00%> (-37.50%) ⬇️
internal/db/storage/blob/s3/writer/option.go 100.00% <ø> (ø)
internal/db/storage/blob/s3/writer/writer_mock.go 0.00% <0.00%> (ø)
internal/db/storage/blob/s3/reader/reader.go 65.51% <83.33%> (-0.40%) ⬇️
internal/db/storage/blob/s3/s3.go 94.28% <92.30%> (+94.28%) ⬆️
internal/db/storage/blob/s3/option.go 100.00% <100.00%> (ø)
internal/db/storage/blob/s3/writer/writer.go 100.00% <100.00%> (ø)
internal/net/http/client/client.go 0.00% <0.00%> (-89.48%) ⬇️
internal/net/http/json/json.go 48.75% <0.00%> (-31.25%) ⬇️
... and 2 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 638f8dc...81ebcec. Read the comment docs.

@hlts2 hlts2 changed the title [WIP] Add s3 test and Refactor Add s3 test and Refactor Nov 17, 2020
@hlts2 hlts2 requested a review from kevindiu November 17, 2020 05:13
kevindiu
kevindiu previously approved these changes Nov 18, 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 but please fix @rinx comment.
I think it requires author review due to refactoring, please write it to the PR description if it is required.

go.mod Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/L and removed size/L labels Nov 19, 2020
hlts2 added a commit that referenced this pull request Nov 19, 2020
hlts2 and others added 23 commits December 8, 2020 06:03
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: kpango <i.can.feel.gravity@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>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
@github-actions github-actions bot dismissed stale reviews from rinx and kpango via 81ebcec December 8, 2020 06:03
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Dec 8, 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 a5adfe7 into master Dec 8, 2020
@vankichi vankichi deleted the test/internal/add_s3_test branch December 8, 2020 06:39
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.

None yet

6 participants