Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yhmo The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Tick the box to add this pull request to the merge queue (same as
|
6d005b0 to
c8db0d8
Compare
|
First Cause: this PR bumps knowhere's direct folly require to the fixed recipe revision Fix (c8db0d8): the bumped require now carries |
|
@yhmo e2e jenkins job failed, comment |
|
conanfile.py line:162 (commit hygiene) |
|
/hold |
|
wait for facebookresearch/faiss#6010 |
|
@yhmo e2e jenkins job failed, comment |
|
Sure, no problem. |
|
/unhold |
|
@yhmo looks good to me |
… fixes Add .github/workflows/try-build.yaml for manual cold builds of knowhere on runner/compiler combinations outside the regular UT matrix (workflow_dispatch with runner, compiler, and extra_options inputs). Each run installs conan 2.33.0, resolves the requested toolchain (gcc/clang on Linux/macOS), verifies the resolved compiler major version, generates a conan profile (preserving libcxx/cppstd), validates the profile, and runs make (Cardinal disabled on macOS) with no conan package cache, so every build is a clean cold build. Dependency fixes for the upper-bound compilers used by the Milvus dependency validation (see milvus-io/conanfiles BUILD_MATRIX.md): - conanfile.py: bump folly recipe revision to 7af84eb7 (compiler-compat fixes zilliztech#252/zilliztech#253 and libsodium@milvus/dev armcrypto fix zilliztech#281); bump liburing override to 2.15; bump boost to b28dcffa (gcc-15/16 emplace UB fix zilliztech#270); bump opentelemetry-cpp to 4499df73 (ABI fix zilliztech#232). - thirdparty/faiss: add missing <cerrno> includes to the two vendored cppcontrib/knowhere files, required by newer libc++ (clang-17/23) builds. Signed-off-by: yhmo <yihua.mo@zilliz.com>
|
@yhmo e2e jenkins job failed, comment |
Not yet, I need to update some conan dependencies. |
Add a Report build environment step after the build that prints the runner label, OS, resolved compiler version, C++ standard, build type, and the generated conan profile, so a manual try-build run's exact toolchain is visible in the job log. Signed-off-by: yhmo <yihua.mo@zilliz.com>
|
@yhmo e2e jenkins job failed, comment |
Add a 'Building with a different compiler' section to the README, mirroring milvus-common#155 and cardinal#1060: the verified gcc/clang ranges, the recommended custom-Conan-profile flow (CONAN_PROFILE + tools.build:compiler_executables), an edit-default-profile alternative, and notes on macOS keg-only toolchains/libomp, gcc-15/16 packaging, and the clang-17 libsodium@milvus/dev dependency. Signed-off-by: yhmo <yihua.mo@zilliz.com>
Align with milvus-io/conanfiles BUILD_MATRIX.md: - boost: pin the @milvus/dev channel (same b28dcffa revision) to match the published channel for custom recipes. - lz4: bump to f4836e8d, the current revision on default-conan-local2. Signed-off-by: yhmo <yihua.mo@zilliz.com>
|
@yhmo e2e jenkins job failed, comment |
1 similar comment
|
@yhmo e2e jenkins job failed, comment |
The newer 4499df73 (conanfiles#232 ABI fix) no longer accepts the brace-enclosed TraceId/SpanId initializers that milvus-common's Tracer.h/Tracer.cpp use, breaking every build that compiles milvus-common (linux-x86_64, ut, wheel, analyzer). Keep the old pin until milvus-common adapts to the new opentelemetry-cpp constructors. boost channel alignment and the lz4 bump are retained. Signed-off-by: yhmo <yihua.mo@zilliz.com>
What
Add
.github/workflows/try-build.yaml, a manually triggered workflow(
workflow_dispatch) to build knowhere on runner/compiler combinationsoutside the regular UT matrix, mirroring the approach validated for the
Milvus dependency graph in zilliztech/milvus-common#155.
How it works
runner(ubuntu-22.04 / ubuntu-24.04 / macos-15 / macos-26),compiler(runner-native / gcc-11..16 / clang-15/16/17/19/21/22/23), andextra_options(appended to the conan profile[options]).toolchain PPA / Homebrew, macOS Homebrew), exposed under every common name
(
cc/c++/clang/g++) via a prependedBIN_DIR, andCC/CXXareexported as absolute paths.
against the requested one, so the build can never silently use the runner
default while the conan profile claims another version.
conan profile detectwithcompiler/compiler.versionandtools.build:compiler_executablespointing at the requested toolchain, then passed via
make CONAN_PROFILE=...(Cardinal explicitly disabled on macOS, as it is not part of the macOS
build matrix).
manual run is a clean cold source build and never grows the repo's 10GB
cache quota.
Dependency fixes required for the upper-bound toolchains
#387e621cso follyresolves
libsodiumfrom the@milvus/devchannel carrying the armcryptopragma fix (fix(libsodium): move armcrypto target pragma after arm_neon.h include milvus-io/conanfiles#276 / Mergify #281); this fixes clang-17 (arm64)
and clang-23 (libc++) builds.
force=Truealigns the whole graph.2.8 -> 2.15, matchingthe folly recipe's
IORING_OP_RECV_ZCrequirement.#include <cerrno>to eight vendoredfiles (impl/io.cpp, impl/io_macros.h, impl/index_read.cpp, impl/mapped_io.cpp,
invlists/OnDiskInvertedLists.cpp x2, cppcontrib/knowhere impl/index_read.cpp,
impl/platform_macros.h), required by newer libc++ builds.
Validation
gcc-12/13/14/15/16 and clang-17/19/21/22/23 on ubuntu/macos runners.
is green on the final head.