Skip to content

fix: rename remaining KNOHWERE_DECLARE_CONFIG sites in svs_config.h#1593

Merged
sre-ci-robot merged 1 commit into
zilliztech:mainfrom
jamesgao-jpg:fix/typo-knohwere-declare-config-svs
Apr 20, 2026
Merged

fix: rename remaining KNOHWERE_DECLARE_CONFIG sites in svs_config.h#1593
sre-ci-robot merged 1 commit into
zilliztech:mainfrom
jamesgao-jpg:fix/typo-knohwere-declare-config-svs

Conversation

@jamesgao-jpg
Copy link
Copy Markdown
Collaborator

What

Rename the three call sites of the typo'd macro KNOHWERE_DECLARE_CONFIG in src/index/svs/svs_config.h (SvsVamanaConfig, SvsVamanaLvqConfig, SvsVamanaLeanVecConfig) to the correct spelling KNOWHERE_DECLARE_CONFIG.

Why

PR #1577 (commit c884fd8) renamed the macro definition in include/knowhere/config.h:

-#define KNOHWERE_DECLARE_CONFIG(CONFIG) CONFIG()
+#define KNOWHERE_DECLARE_CONFIG(CONFIG) CONFIG()

It updated most in-tree call sites but missed the three uses in svs_config.h. The breakage is silent today because CMakeLists.txt:37 defaults WITH_SVS to OFF, so PR-CI never compiles this file. It would surface as soon as anyone builds with -DWITH_SVS=ON.

The same typo also exists in the cardinal-side vendored headers (know/cardinal_config.h, know/cardinal_cluster_config.h); that already broke the knowhere/nightly-2.0 Jenkins job from build #822 onward and is fixed in zilliztech/cardinal#823. This PR is just the matching cleanup on the knowhere side.

Test

  • pre-commit run --files src/index/svs/svs_config.h — passes (clang-format clean).
  • Pure macro rename, no behavior change.

PR zilliztech#1577 renamed the macro definition KNOHWERE_DECLARE_CONFIG ->
KNOWHERE_DECLARE_CONFIG in include/knowhere/config.h and updated most
in-tree callers, but missed the three call sites in
src/index/svs/svs_config.h. The breakage is silent today because
WITH_SVS defaults to OFF in CMakeLists.txt, so PR-CI never compiles
this file; it would only surface for downstream consumers building
with -DWITH_SVS=ON. Rename the three call sites to match.

The same typo also exists in cardinal's vendored headers; that is
fixed separately in zilliztech/cardinal#823.

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
Copy link
Copy Markdown
Collaborator

@foxspy foxspy 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
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: foxspy, jamesgao-jpg

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

The pull request process is described here

Details 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

@mergify mergify Bot added the ci-passed label Apr 20, 2026
@sre-ci-robot sre-ci-robot merged commit 01af4f2 into zilliztech:main Apr 20, 2026
11 of 12 checks passed
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.

3 participants