Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
059307d
Use seekdb-deps gtest package on Linux x86_64
wangyunlai-seekdb Nov 6, 2026
3fab779
Remove migrated Linux x86_64 gtest RPM entries
wangyunlai-seekdb Nov 6, 2026
3ab9d13
Prepare locked dependency packages with legacy profiles
wangyunlai-seekdb Nov 6, 2026
61e8854
Lock gtest packages for all published platforms
wangyunlai-seekdb Nov 6, 2026
0991250
Separate legacy and locked dependency population
wangyunlai-seekdb Nov 6, 2026
01ee805
Cache locked dependency archives by SHA256
wangyunlai-seekdb Nov 6, 2026
1540296
Keep locked package caches under pkg by SHA256 [skip ci]
wangyunlai-seekdb Nov 6, 2026
4718c5e
Extract locked gtest package at deps root [skip ci]
wangyunlai-seekdb Nov 6, 2026
fccc17c
Use GitHub mirror for locked dependency downloads [skip ci]
wangyunlai-seekdb Nov 6, 2026
3b2d966
Reuse existing Bazel include and lib paths for locked packages [skip ci]
wangyunlai-seekdb Nov 6, 2026
9635a70
Pin ABI-compatible Linux gtest packages
wangyunlai-seekdb Nov 6, 2026
ef7e1ff
Pin gtest archives after ABI profile cleanup
wangyunlai-seekdb Nov 6, 2026
66de2fc
Pin refreshed gtest release and link Linux C++ runtime
wangyunlai-seekdb Nov 6, 2026
855eb28
Link gtest with static C++ runtime on Linux
wangyunlai-seekdb Nov 6, 2026
5538f42
Link C++ runtime in gtest unit test targets
wangyunlai-seekdb Nov 6, 2026
497d375
Avoid restoring locked package owners on Linux
wangyunlai-seekdb Nov 6, 2026
d365d9b
Group locked dependencies by platform
wangyunlai-seekdb Nov 9, 2026
3f39341
Separate prebuilt dependencies from legacy cache
wangyunlai-seekdb Nov 9, 2026
85b4362
Use platform cache directories for prebuilt packages
wangyunlai-seekdb Nov 9, 2026
b06854d
Limit prebuilt gtest packages to Linux
wangyunlai-seekdb Nov 9, 2026
eca7980
Restore gtest header declaration
wangyunlai-seekdb Nov 9, 2026
6ffc2ff
Remove Windows gtest special case
wangyunlai-seekdb Nov 9, 2026
560d2b2
Allow locked packages without SHA256
wangyunlai-seekdb Nov 9, 2026
d3668e2
Cache unchecked packages by content SHA256
wangyunlai-seekdb Nov 9, 2026
aee525d
Remove dependency lock schema version
wangyunlai-seekdb Nov 9, 2026
fd9c99d
Merge current master into dependency migration branch
wangyunlai-seekdb Nov 13, 2026
9e9c809
Use released VSAG and jemalloc packages on supported platforms
wangyunlai-seekdb Nov 13, 2026
e5a30ee
Merge current master into dependency migration branch
wangyunlai-seekdb Nov 16, 2026
2f1350b
Use Windows MD release packages and official rustup in hosted CI
wangyunlai-seekdb Nov 16, 2026
844a263
Verify seekdb dependency migration on Apple platforms
wangyunlai-seekdb Nov 16, 2026
d92f67c
Match VSAG allocator size type on wasm32
wangyunlai-seekdb Nov 16, 2026
5180e7e
Align Windows seekdb toolset with released VSAG package
hnwyllmm Nov 16, 2026
2b6cdfc
Target macOS 15 for seekdb Bazel builds
hnwyllmm Nov 16, 2026
0cba440
Update VSAG release package pins for all platforms
hnwyllmm Nov 16, 2026
46d859b
Validate dependency packages on Linux arm64 and iOS simulator
hnwyllmm Nov 16, 2026
a3a224a
Include required Rust libraries in WebAssembly build
hnwyllmm Nov 16, 2026
fedee4b
Remove obsolete VSAG iOS and WASM source patches
wangyunlai-seekdb Nov 17, 2026
dc3ea4a
Allow newer compatible Windows MSVC toolsets
wangyunlai-seekdb Nov 17, 2026
da6451b
Use system allocator for iOS framework
wangyunlai-seekdb Nov 17, 2026
0413eb6
Centralize Rust download defaults for GitHub Actions
wangyunlai-seekdb Nov 17, 2026
08e8bbf
Remove deferred platform build workflow
wangyunlai-seekdb Nov 17, 2026
adab64a
Update VSAG Wasm package to corrected release
wangyunlai-seekdb Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ build:O1 --@rules_rust//rust/settings:lto=off
build:O2 --compilation_mode=opt
# Apple's fastbuild/dbg DEBUG macro conflicts with seekdb's DEBUG log level.
build:macos --copt=-UDEBUG
build:macos --macos_minimum_os=13.0
build:macos --macos_minimum_os=15.0
build:android --platforms=//bazel/platforms:android_arm64
build:ios --platforms=@apple_support//platforms:ios_arm64
build:ios --ios_minimum_os=18.0
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ src/oblib/grpc/*.pb.cpp
!src/oblib/grpc/standbyservice.grpc.pb.h
!src/oblib/grpc/standbyservice.grpc.pb.cc
deps/3rd
/deps/prebuilt/
deps/ios/
deps/3rd_party
deps/usr
Expand Down
97 changes: 2 additions & 95 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ crate.render_config(
)
crate.annotation(
crate = "*",
repositories = ["rust_crates", "external_crates"],
repositories = ["rust_crates"],
build_script_env = {"DEBUG": "true", "PROFILE": "release"},
)
crate.annotation(
Expand Down Expand Up @@ -110,87 +110,7 @@ crate.from_cargo(
isolated = False,
supported_platform_triples = _RUST_PLATFORMS,
)
crate.annotation(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
build_script_env = {
"MAKEFLAGS": "",
"NUM_JOBS": "4",
},
extra_aliased_targets = {"jemalloc_build": "build_script_build"},
build_script_toolchains = ["@seekdb//bazel:windows_build_script_environment"],
)
crate.annotation_select(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
triples = [target for target in _RUST_PLATFORMS if target not in [
"aarch64-apple-ios",
"aarch64-apple-ios-sim",
"aarch64-linux-android",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]],
build_script_env = {
"CFLAGS": "-O2 -fPIC",
"JEMALLOC_SYS_CONFIGURE_ENV": "CPPFLAGS=\nLDFLAGS=",
"JEMALLOC_SYS_CONFIGURE_ARGS": "--with-jemalloc-prefix=je_",
},
)
crate.annotation_select(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
triples = ["aarch64-apple-ios", "aarch64-apple-ios-sim"],
build_script_env = {
"CFLAGS": "-O2 -fPIC",
"JEMALLOC_SYS_CONFIGURE_ENV": "CPPFLAGS=\nLDFLAGS=",
"JEMALLOC_SYS_CONFIGURE_ARGS": "--with-jemalloc-prefix=je_\n--host=aarch64-apple-ios\n--with-lg-page=14\n--disable-zone-allocator",
},
)
crate.annotation_select(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
triples = ["aarch64-linux-android"],
build_script_env = {
"CFLAGS": "-O2 -fPIC",
"JEMALLOC_SYS_CONFIGURE_ENV": "CPPFLAGS=\nLDFLAGS=",
"JEMALLOC_SYS_CONFIGURE_ARGS": "--with-jemalloc-prefix=je_\n--host=aarch64-linux-android\n--with-lg-page=14\n--disable-initial-exec-tls",
},
)
crate.annotation_select(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
triples = ["x86_64-pc-windows-msvc"],
build_script_env = {
"PATH": "$(CARGO_BUILD_SCRIPT_PATH)",
"CFLAGS": "/O2 /MD /D_WIN32_WINNT=0x0A00",
"JEMALLOC_SYS_MAKE": "make",
"JEMALLOC_SYS_CONFIGURE_ENV": "CPPFLAGS=\nLDFLAGS=\nMSYS2_ARG_CONV_EXCL=*",
"JEMALLOC_SYS_CONFIGURE_ARGS": "--with-jemalloc-prefix=je_\n--host=x86_64-w64-mingw32",
},
)
crate.annotation_select(
crate = "seekdb-jemalloc-sys",
repositories = ["external_crates"],
triples = ["aarch64-pc-windows-msvc"],
build_script_env = {
"PATH": "$(CARGO_BUILD_SCRIPT_PATH)",
"CFLAGS": "/O2 /MD /D_WIN32_WINNT=0x0A00",
"JEMALLOC_SYS_MAKE": "make",
"JEMALLOC_SYS_CONFIGURE_ENV": "CPPFLAGS=\nLDFLAGS=\nMSYS2_ARG_CONV_EXCL=*",
"JEMALLOC_SYS_CONFIGURE_ARGS": "--with-jemalloc-prefix=je_\n--host=aarch64-w64-mingw32",
},
)
crate.from_cargo(
name = "external_crates",
manifests = ["//deps/external:Cargo.toml"],
cargo_lockfile = "//deps/external:Cargo.lock",
cargo_config = "//bazel:rust_cargo_config.toml",
host_tools = "@rust_native//:BUILD.bazel",
skip_cargo_lockfile_overwrite = True,
isolated = False,
supported_platform_triples = _RUST_PLATFORMS,
)
use_repo(crate, "rust_crates", "cxxbridge_deps", "external_crates")
use_repo(crate, "rust_crates", "cxxbridge_deps")

host_tools_repository = use_repo_rule("//bazel:parser.bzl", "host_tools_repository")
host_tools_repository(name = "host_tools")
Expand Down Expand Up @@ -252,19 +172,6 @@ use_repo(
sdk_sources,
"sdk_abseil",
"sdk_roaring",
"sdk_vsag_ios",
"sdk_vsag_wasm",
"sdk_cpuinfo",
"sdk_fmt",
"sdk_spdlog",
"sdk_nlohmann_json",
"sdk_robin_map",
"sdk_thread_pool",
"sdk_clapack",
"sdk_openblas",
"sdk_antlr4",
"sdk_lapack",
"sdk_openmp",
"sdk_boost",
)

Expand Down
151 changes: 7 additions & 144 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions bazel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
load(":build_settings.bzl", "bool_flag")
load(":cargo_build_script_env.bzl", "cargo_build_script_environment")

exports_files([
"build_metadata.py",
Expand All @@ -13,11 +12,6 @@ exports_files([
"final_link.bzl",
])

cargo_build_script_environment(
name = "windows_build_script_environment",
visibility = ["//visibility:public"],
)

config_setting(
name = "ios_simulator",
constraint_values = ["@platforms//os:ios", "@apple_support//constraints:simulator"],
Expand Down
47 changes: 0 additions & 47 deletions bazel/cargo_build_script_env.bzl

This file was deleted.

6 changes: 4 additions & 2 deletions bazel/ios_framework.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def ios_framework():
"//src/oblib:oblib_base",
"//src/oblib:oblib_io_primitives",
"//src/oblib:oblib_rpc",
"//deps/external:jemalloc_headers",
"//rust:in_process_headers",
"//rust:logger_headers",
],
Expand All @@ -36,7 +35,6 @@ def ios_framework():
sdk_deps = ["//bazel/sdk_sources:source_sdk", "//bazel/third_party:base_libraries"],
ordered_link_files = [
"//rust:archive",
"//deps/external:jemalloc_archive",
],
extra_inputs = ["ios/exports.txt"],
linkopts = [
Expand Down Expand Up @@ -84,6 +82,8 @@ def ios_framework():
"//bazel/sdk_sources:ios_licenses",
"//bazel/third_party:ios_base_metadata",
"//bazel/third_party:ios_base_licenses",
"//bazel/third_party:ios_locked_metadata",
"//bazel/third_party:ios_locked_licenses",
],
tools = ["//package/ios:package_framework.py"],
outs = [
Expand All @@ -101,8 +101,10 @@ def ios_framework():
' --rust-licenses "$(location //package/ios:rust_licenses)"' +
' --source-metadata $(locations //bazel/sdk_sources:ios_source_metadata)' +
' $(locations //bazel/third_party:ios_base_metadata)' +
' $(locations //bazel/third_party:ios_locked_metadata)' +
' --licenses $(location //:LICENSE) $(locations //bazel/sdk_sources:ios_licenses)' +
' $(locations //bazel/third_party:ios_base_licenses)' +
' $(locations //bazel/third_party:ios_locked_licenses)' +
' --output "$(@D)/framework/SeekDB.framework" --platform ' + select({
"//bazel:ios_simulator": "IOSSIMULATOR",
"//conditions:default": "IOS",
Expand Down
1 change: 0 additions & 1 deletion bazel/platforms.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def platform_local_defines():
"@platforms//os:ios": [
"_DARWIN_C_SOURCE",
"_XOPEN_SOURCE=700",
"OB_HAVE_BUNDLED_JEMALLOC=1",
"BOOST_NO_CXX98_FUNCTION_BASE",
],
"//conditions:default": [],
Expand Down
27 changes: 5 additions & 22 deletions bazel/sdk_sources/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load(":archives.bzl", "sdk_archives")

package(default_visibility = ["//visibility:public"])

exports_files(glob(["*.BUILD"]) + [
"dependencies.json",
"prepare.py",
"openblas/blas_abi.h",
"openmp/kmp_config.h",
])

cc_library(
name = "ios_cblas",
hdrs = ["vsag/ios/cblas.h"],
includes = ["vsag/ios"],
target_compatible_with = ["@platforms//os:ios"],
)

alias(
name = "base_crypto",
actual = select({
Expand All @@ -40,28 +30,21 @@ sdk_archives(
}),
deps = ["@sdk_roaring//:library"] + select({
"@platforms//os:emscripten": [
"@sdk_vsag_wasm//:library",
"@third_party_wasm//:vsag_sdk",
],
"//bazel:ios_simulator": [
"@third_party_ios_simulator//:vsag_sdk",
],
"//conditions:default": [
"@sdk_vsag_ios//:library",
"@third_party_ios//:vsag_sdk",
],
}),
)

_IOS_SOURCE_REPOSITORIES = [
"@sdk_abseil",
"@sdk_antlr4",
"@sdk_boost",
"@sdk_cpuinfo",
"@sdk_fmt",
"@sdk_lapack",
"@sdk_nlohmann_json",
"@sdk_openmp",
"@sdk_roaring",
"@sdk_robin_map",
"@sdk_spdlog",
"@sdk_thread_pool",
"@sdk_vsag_ios",
]

filegroup(
Expand Down
Loading
Loading