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 implementation for create index job #2223

Merged
merged 16 commits into from
Nov 6, 2023
Merged

Conversation

hlts2
Copy link
Contributor

@hlts2 hlts2 commented Oct 31, 2023

Description:

I added a component to execute the createIndex requests to agents.
This component will run as a k8s job in the future.

Related Issue:

Versions:

  • Go Version: 1.21.3
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.28.2
  • NGT Version: 2.1.3

Checklist:

Special notes for your reviewer:

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 31, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c188e66
Status: ✅  Deploy successful!
Preview URL: https://791326cb.vald.pages.dev
Branch Preview URL: https://feature-index-job-create.vald.pages.dev

View logs

@vdaas-ci
Copy link
Collaborator

[WARNING:INTCFG] Changes in interal/config may require you to change Helm charts. Please check.

@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

ENV APP_NAME index-creation

# skipcq: DOK-DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

Signed-off-by: hlts2 <[email protected]>
internal/config/index_creator.go Outdated Show resolved Hide resolved
internal/config/index_creator.go Outdated Show resolved Hide resolved
pkg/index/job/creation/service/indexer.go Outdated Show resolved Hide resolved
pkg/index/job/creation/service/options.go Show resolved Hide resolved
pkg/index/job/creation/service/options.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
internal/config/index_creator.go Outdated Show resolved Hide resolved
internal/config/index_creator.go Outdated Show resolved Hide resolved
pkg/index/job/creation/service/indexer.go Outdated Show resolved Hide resolved
pkg/index/job/creation/service/options.go Show resolved Hide resolved
pkg/index/job/creation/service/options.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
@hlts2 hlts2 self-assigned this Oct 31, 2023
@hlts2 hlts2 marked this pull request as draft October 31, 2023 03:23
pkg/index/job/creation/usecase/creation.go Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
pkg/index/job/creation/usecase/creation.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 287 lines in your changes are missing coverage. Please review.

Files Coverage Δ
internal/config/index_creation.go 0.00% <0.00%> (ø)
pkg/index/job/creation/service/options.go 7.40% <7.40%> (ø)
pkg/index/job/creation/config/config.go 0.00% <0.00%> (ø)
pkg/index/job/creation/service/indexer.go 34.04% <34.04%> (ø)
pkg/index/job/creation/usecase/creation.go 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@github-actions github-actions bot added team/set SET team size/XXL and removed size/XL labels Nov 1, 2023
@hlts2 hlts2 marked this pull request as ready for review November 1, 2023 05:42
@hlts2 hlts2 requested review from a team, kmrmt, datelier and ykadowak and removed request for a team November 2, 2023 03:15
@hlts2 hlts2 changed the title Add implementation for index creation job Add implementation for create index job Nov 6, 2023
@datelier datelier merged commit e59ded2 into main Nov 6, 2023
89 of 91 checks passed
@datelier datelier deleted the feature/index-job/create branch November 6, 2023 07:06
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
ykadowak added a commit that referenced this pull request Nov 30, 2023
@vankichi vankichi mentioned this pull request Dec 4, 2023
kmrmt pushed a commit that referenced this pull request Dec 12, 2023
* feat: add index creation job implementation

Signed-off-by: hlts2 <[email protected]>

* feat: make format

Signed-off-by: hlts2 <[email protected]>

* fix: deepsource warning

Signed-off-by: hlts2 <[email protected]>

* fix: reviewdog warning and rename config file

Signed-off-by: hlts2 <[email protected]>

* feat: add mock for testing

Signed-off-by: hlts2 <[email protected]>

* feat: generate test code

Signed-off-by: hlts2 <[email protected]>

* fix: make format

Signed-off-by: hlts2 <[email protected]>

* feat: add test for indexing service

Signed-off-by: hlts2 <[email protected]>

* fix: improve grpc status handling

Signed-off-by: hlts2 <[email protected]>

* fix: docker build error

Signed-off-by: hlts2 <[email protected]>

* fix: deepsource warning

Signed-off-by: hlts2 <[email protected]>

* fix: start discoverer client before the logic is executed

Signed-off-by: hlts2 <[email protected]>

* fix: log message and sample data

Signed-off-by: hlts2 <[email protected]>

* fix: generate test and format

Signed-off-by: hlts2 <[email protected]>

---------

Signed-off-by: hlts2 <[email protected]>
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