Skip to content

feat: Export milvusclient.annRequest (issue: #41261) #41356

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

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

Conversation

mcamou
Copy link

@mcamou mcamou commented Apr 16, 2025

Issue: #41261.

milvusclient.NewHybridSearchOption receives a variadic annRequests parameter. However, since milvusclient.annRequest is private, there is no way to declare a slice, therefore there is no way to make it fully generic (as in, create a slice of milvusclient.annRequests and pass them to NewHybridSearchOption. This PR renames milvusclient.annRequest to milvusclient.AnnRequest to export it.

This is an API change since it's renaming a struct. However, since the struct was previously private no external code depends on it, unless it's doing nasty things with reflection (in which case it should not depend on the name).

Signed-off-by: Mario Camou [email protected]

@sre-ci-robot
Copy link
Contributor

Welcome @mcamou! It looks like this is your first PR to milvus-io/milvus 🎉

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Apr 16, 2025
Copy link
Contributor

mergify bot commented Apr 16, 2025

@mcamou Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com./milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added the needs-dco DCO is missing in this pull request. label Apr 16, 2025
Copy link
Contributor

mergify bot commented Apr 16, 2025

@mcamou

Invalid PR Title Format Detected

Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:

  1. Title Format: The PR title must begin with one of these prefixes:
  • feat: for introducing a new feature.
  • fix: for bug fixes.
  • enhance: for improvements to existing functionality.
  • test: for add tests to existing functionality.
  • doc: for modifying documentation.
  • auto: for the pull request from bot.
  1. Description Requirement: The PR must include a non-empty description, detailing the changes and their impact.

Required Title Structure:

[Type]: [Description of the PR]

Where Type is one of feat, fix, enhance, test or doc.

Example:

enhance: improve search performance significantly 

Please review and update your PR to comply with these guidelines.

`milvusclient.NewHybridSearchOption` receives a variadic `annRequests`
parameter. However, since `milvusclient.annRequest` is private, there is
no way to declare a slice, therefore there is no way to make it fully
generic (as in, create a slice of `milvusclient.annRequest`s and pass
them to `NewHybridSearchOption`. This PR renames `milvusclient.annRequest`
to `milvusclient.AnnRequest` to export it.

This is an API change since it's renaming a struct. However, since the
struct was previously private no external code depends on it, unless
it's doing nasty things with reflection (in which case it should not
depend on the name).

Signed-off-by: mcamou <[email protected]>
@mcamou mcamou force-pushed the fix/export-annrequest branch from 2170167 to 9671541 Compare April 16, 2025 09:50
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Apr 16, 2025
@mcamou mcamou changed the title [feature] Export milvusclient.annRequest (fixes #41261) [feat] Export milvusclient.annRequest (fixes #41261) Apr 16, 2025
@mcamou mcamou changed the title [feat] Export milvusclient.annRequest (fixes #41261) feat]:Export milvusclient.annRequest (fixes #41261) Apr 16, 2025
@mcamou mcamou changed the title feat]:Export milvusclient.annRequest (fixes #41261) feat:Export milvusclient.annRequest (fixes #41261) Apr 16, 2025
@mergify mergify bot added kind/feature Issues related to feature request from users and removed do-not-merge/invalid-pr-format labels Apr 16, 2025
Copy link
Contributor

mergify bot commented Apr 16, 2025

@mcamou Please associate the related issue to the body of your Pull Request. (eg. “issue: #”)

Copy link
Contributor

mergify bot commented Apr 16, 2025

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

Copy link

codecov bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.62%. Comparing base (1f1c836) to head (9671541).
Report is 11 commits behind head on master.

❌ Your project check has failed because the head coverage (72.62%) is below the target coverage (77.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #41356       +/-   ##
===========================================
- Coverage   81.86%   72.62%    -9.25%     
===========================================
  Files        1166      312      -854     
  Lines      181131    29015   -152116     
===========================================
- Hits       148283    21072   -127211     
+ Misses      26708     7943    -18765     
+ Partials     6140        0     -6140     
Components Coverage Δ
Client ∅ <ø> (∅)
Core 72.62% <ø> (∅)
Go ∅ <ø> (∅)

see 1478 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

mergify bot commented Apr 16, 2025

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

Copy link
Contributor

@congqixia congqixia left a comment

Choose a reason for hiding this comment

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

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, mcamou

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

The pull request process is described 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

@mcamou
Copy link
Author

mcamou commented Apr 16, 2025

I don't know what could have happened to codecov, since this is a simple rename. Also, regarding the E2E test, I have no idea what might be failing. I've had to add Arch Linux support to scripts/install_deps.sh, but I still can't get it to build. make replies with the following:

ERROR: Invalid setting '14.2.1' is not a valid 'settings.compiler.version' value.
Possible values are ['4.1', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5', '5.1', '5.2', '5.3', '5.4', '5.5', '6', '6.1', '6.2', '6.3', '6.4', '6.5', '7', '7.1', '7.2', '7.3', '7.4', '7.5', '8', '8.1', '8.2', '8.3', '8.4', '8.5', '9', '9.1', '9.2', '9.3', '9.4', '9.5', '10', '10.1', '10.2', '10.3', '10.4', '10.5', '11', '11.1', '11.2', '11.3', '11.4', '12', '12.1', '12.2', '12.3', '13', '13.1', '13.2', '14', '14.1']

I've had to install the conan1 package since running sudo pip3 install conan gives an error stating that pip3 packages cannot be installed globally, so I can't even run the tests locally.

@congqixia
Copy link
Contributor

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Apr 17, 2025

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

@mcamou mcamou changed the title feat:Export milvusclient.annRequest (fixes #41261) feat: Export milvusclient.annRequest (issue: #41261) Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-passed DCO check passed. do-not-merge/missing-related-issue kind/feature Issues related to feature request from users lgtm size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants