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

bugfix agent vqueue & refactor tools/deps #1250

Merged
merged 8 commits into from
May 24, 2021
Merged

Conversation

kpango
Copy link
Collaborator

@kpango kpango commented May 21, 2021

Signed-off-by: kpango kpango@vdaas.org

Description:

  1. bugfix agent vqueue cache deletion logic
  2. small changes to make command
    • fix sysctl params before k3d deployment (workaround for new linux kernel)
    • remove traefik from k3d deployment and add contour for IngressControler
    • use contour operator for kind deployment instead of raw contour deploy
    • patch metrics server to insecure for dev environment deploy k3d and kind works with it
    • change default e2e target to lb gateway from meta gateway
    • change default charts's dev.yaml deployment configuration's dimension to 784 (suitable for fashion-mnist dataset)
  3. refactor small things

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.16.4
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.12.3

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.

Signed-off-by: kpango <kpango@vdaas.org>
@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 master
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

Signed-off-by: kpango <kpango@vdaas.org>
@@ -570,8 +570,7 @@ func (s *server) Insert(ctx context.Context, req *payload.Insert_Request) (res *
ResourceType: ngtResourceType + "/ngt.Insert",
ResourceName: s.ip,
Owner: errdetails.ValdResourceOwner,
Description: err.Error(),
})
Description: err.Error()})
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
File is not gofumpt-ed (gofumpt)

@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #1250 (4248bfe) into master (4b9130d) will increase coverage by 0.51%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1250      +/-   ##
==========================================
+ Coverage   17.54%   18.05%   +0.51%     
==========================================
  Files         498      501       +3     
  Lines       30845    31198     +353     
==========================================
+ Hits         5411     5633     +222     
- Misses      25155    25266     +111     
- Partials      279      299      +20     
Impacted Files Coverage Δ
pkg/agent/core/ngt/handler/grpc/handler.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/ngt.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/vqueue/queue.go 0.00% <0.00%> (ø)
internal/safety/safety.go 95.65% <100.00%> (ø)
internal/db/storage/blob/s3/reader/reader.go 63.73% <0.00%> (-30.77%) ⬇️
internal/errgroup/group.go 92.42% <0.00%> (-1.52%) ⬇️
internal/worker/worker.go 83.33% <0.00%> (ø)
internal/net/option.go 89.65% <0.00%> (ø)
internal/net/net.go 49.18% <0.00%> (ø)
internal/net/dialer.go 79.42% <0.00%> (ø)

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 4b9130d...4248bfe. Read the comment docs.

Signed-off-by: kpango <kpango@vdaas.org>
Signed-off-by: kpango <kpango@vdaas.org>
@kpango kpango changed the title refactor tools & deps bugfix agent vqueue & refactor tools/deps May 24, 2021
@kpango kpango requested review from rinx, hlts2 and kevindiu May 24, 2021 05:41
Copy link
Collaborator

@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.

Thank you.
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

@kevindiu
Copy link
Contributor

should we update patch version due to the fix?

@kpango
Copy link
Collaborator Author

kpango commented May 24, 2021

I think so I'll check other PR that we can include next release.

@kpango kpango merged commit 53de600 into master May 24, 2021
@kpango kpango deleted the refactor/deployment/vald-all branch May 24, 2021 06:01
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