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

enhance: move segcore codes of segment into one package #37722

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chyezh
Copy link
Contributor

@chyezh chyezh commented Nov 15, 2024

issue: #33285

  • move most cgo opeartions related to search/query into segcore package for reusing for streamingnode.
  • add go unittest for segcore operations.

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chyezh
To complete the pull request process, please assign wxyucs after the PR has been reviewed.
You can assign the PR to them by writing /assign @wxyucs in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot added size/XXL Denotes a PR that changes 1000+ lines. area/compilation labels Nov 15, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Nov 15, 2024
Copy link
Contributor

mergify bot commented Nov 15, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 15, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 80.14981% with 106 lines in your changes missing coverage. Please review.

Project coverage is 81.04%. Comparing base (8188e14) to head (4a23f94).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/util/segcore/segment.go 79.23% 26 Missing and 12 partials ⚠️
internal/querynodev2/segments/segment.go 86.77% 9 Missing and 7 partials ⚠️
internal/util/segcore/requests.go 69.23% 8 Missing and 4 partials ⚠️
internal/util/segcore/reduce.go 9.09% 5 Missing and 5 partials ⚠️
internal/querynodev2/segments/collection.go 62.50% 4 Missing and 2 partials ⚠️
internal/util/segcore/collection.go 81.25% 4 Missing and 2 partials ⚠️
internal/querynodev2/segments/result.go 16.66% 4 Missing and 1 partial ⚠️
internal/querynodev2/segments/segment_l0.go 0.00% 3 Missing ⚠️
internal/util/segcore/cgo_util.go 88.46% 2 Missing and 1 partial ⚠️
internal/util/segcore/responses.go 75.00% 2 Missing and 1 partial ⚠️
... and 2 more
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #37722       +/-   ##
===========================================
+ Coverage   68.87%   81.04%   +12.17%     
===========================================
  Files         289     1368     +1079     
  Lines       25484   190952   +165468     
===========================================
+ Hits        17551   154764   +137213     
- Misses       7933    30701    +22768     
- Partials        0     5487     +5487     
Components Coverage Δ
Client 72.33% <ø> (∅)
Core 68.87% <ø> (ø)
Go 83.21% <80.14%> (∅)
Files with missing lines Coverage Δ
internal/querynodev2/segments/cgo_util.go 28.57% <ø> (ø)
internal/querynodev2/segments/count_reducer.go 100.00% <100.00%> (ø)
internal/querynodev2/segments/reducer.go 90.90% <ø> (ø)
internal/querynodev2/segments/retrieve.go 82.40% <100.00%> (ø)
internal/querynodev2/segments/search.go 63.47% <100.00%> (ø)
internal/querynodev2/segments/segcore.go 100.00% <100.00%> (ø)
internal/querynodev2/segments/segment_loader.go 72.74% <100.00%> (ø)
internal/querynodev2/server.go 77.62% <100.00%> (ø)
internal/querynodev2/tasks/query_stream_task.go 79.16% <100.00%> (ø)
internal/querynodev2/tasks/query_task.go 90.17% <100.00%> (ø)
... and 14 more

... and 1055 files with indirect coverage changes

@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch 2 times, most recently from 6a0623c to 2f92e55 Compare November 17, 2024 02:16
Copy link
Contributor

mergify bot commented Nov 17, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 2f92e55 to 9d6f946 Compare November 17, 2024 04:54
@mergify mergify bot added the ci-passed label Nov 17, 2024
czs007 pushed a commit that referenced this pull request Nov 21, 2024
issue: #33285
pr: #37722

- move most cgo opeartions related to search/query into segcore package
for reusing for streamingnode.
- add go unittest for segcore operations.

Signed-off-by: chyezh <[email protected]>
@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 9d6f946 to 9348b52 Compare November 21, 2024 07:54
@mergify mergify bot removed the ci-passed label Nov 21, 2024
@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 9348b52 to 7e3e8be Compare November 22, 2024 09:58
Copy link
Contributor

mergify bot commented Nov 22, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 7e3e8be to 5eafb38 Compare November 24, 2024 07:20
Copy link
Contributor

mergify bot commented Nov 24, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 24, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 5eafb38 to 1fb95a3 Compare November 25, 2024 02:39
Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun go-sdk

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

/run-cpu-e2e

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

bigsheeper pushed a commit to bigsheeper/milvus that referenced this pull request Nov 25, 2024
issue: milvus-io#33285
pr: milvus-io#37722

- move most cgo opeartions related to search/query into segcore package
for reusing for streamingnode.
- add go unittest for segcore operations.

Signed-off-by: chyezh <[email protected]>
Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

/run-cpu-e2e

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun cpp-unit-test

1 similar comment
@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

/run-cpu-e2e

@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun cpp-unit-test

1 similar comment
@chyezh
Copy link
Contributor Author

chyezh commented Nov 25, 2024

rerun cpp-unit-test

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Nov 25, 2024

@chyezh E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@chyezh
Copy link
Contributor Author

chyezh commented Nov 26, 2024

/run-cpu-e2e

@chyezh
Copy link
Contributor Author

chyezh commented Nov 26, 2024

rerun cpp-unit-test

@chyezh chyezh force-pushed the enhance_move_general_usage_of_search branch from 1fb95a3 to ba6fc1f Compare November 26, 2024 10:47
Copy link
Contributor

mergify bot commented Nov 26, 2024

@chyezh cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

- move most cgo opeartion related to search/query into segcore package
  for reusing for streamingnode.
- add go unittest for segcore operations.

Signed-off-by: chyezh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compilation ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants