Repository navigation
feat(package): add cached GitHub packaging with reusable binaries - #2574
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f863b0ffb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 612cc9e1f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88a2083751
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb431b6849
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b0426cdc3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c888b29af1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93a8b9054a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f60739278
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51a4d62415
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 693c35ffad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 405d16fcdf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8758d40ce4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e359e9115e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e752a2409
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93b2c5c298
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b1f7826ef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca26cdb0ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0248783f2d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c172b53 to
6dd3c1e
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f65afd195b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0579f2932b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3bda30e0c2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Reject links, special files, and privileged permission bits before accepting directory bundles. Keep the RPM implementation beside its spec and preserve the root entrypoint as a forwarding shim. Revert the build-and-run guide change.
205a02d to
788684d
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f860178cd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9731970412
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab6595a8c7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3fc6360017
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7aa18b769d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3de9bfdbfe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca5986768a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce91725c7d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
任务描述
在 GitHub Actions 上调试并验证 seekdb 的跨平台编译和打包流程。每个平台先编译一次引擎,导出包含所需动态库的
seekdb-binary,RPM/DEB 可以直接引用该产物,也可以复用指定历史 workflow run 的产物,避免重复编译。成品包不带调试信息,调试文件单独导出为seekdb-debug-info。本次已将原分支
205a02d91bbd20971c75a4b672b59b3314d4fc44rebase 到 master6feab6323d97a0cf86ca6c4b50bdbf3d7433c6ef,并补齐新 SDK 布局的适配,rebase 后的代码基线为788684d2f25456401619e4b130bdc01fe3a9b208。随后按要求删除本 PR 新增的package/README.md,并移除 RPM/DEB/TGZ 的冗余 Shell 包装入口,当前 head 为ce91725c7dcf9721594f3847e90fd43ae4b5d11c,安装后验证脚本与测试配置已从 workflow 中移出,macOS 默认编译并行度由 1 调整为 2。macOS arm64 的最低发版目标现为 15.0,使用 Development Kit 的 macOS 15 依赖清单。根因
按用户明确的本轮发版范围,取消
DT_FILTER/DT_AUXILIARY、DF_1_NODEFLIB、DT_AUDIT/DT_DEPAUDIT的专项处理。上一轮对这些机制只增加了检测及拒绝,并未实现额外依赖收集;本轮撤回这部分检查,继续按普通DT_NEEDED递归收集依赖。这些扩展机制不纳入当前打包支持范围,历史拒绝用例仅保留为对应旧提交的记录。NSS 系统库排除 的缺口来自本 PR 的
aab913f49e69100d4a4c8b0c91ff0a5b6254ba6b:原实现将所有libnss_*视为系统库。直接依赖私有libnss_review.so.2的输入原本输出42,旧导出、回读均成功,归档和 DEB 却缺库退出 127;显式指定它为插件又会被误判为系统库而拒绝。该问题在3de9bfdbfe683634df64a2a2ed96b23a88603f5b用原生 ELF 复现。split DWARF 的缺口来自符号分离入口
97fc2aaaacc333621dd732cc2ed759b6dfa88ff2:objcopy --only-keep-debug保存 skeleton 调试节,却没有收集 GCC-gsplit-dwarf生成的.dwo。在3de9bf...的 DWARF 4/5 对照中,调试归档只有bin/seekdb.debug;原构建目录的 DWO 存在时 GDB 能显示struct ReviewRecord的int value,移走 DWO 后同一调试包无法解析该类型。此次正常 ELF 回归另实测到 LLVM 18 strip 将 patchelf 新增段的p_offset从0x5000改成0x3010,而p_vaddr=0x5000、p_align=0x1000不变,程序从输出42变成 SIGSEGV;旧基线也可复现,GNU strip 保持可运行。LLVM 上游同类段布局问题libaio SONAME 复用 的缺口来自
27c7c9f7b8040a44c76ce0e805f0334716a8b40f:该提交取消 DEB 自带 libaio,恢复libaio1 | libaio1t64, systemd依赖,并添加了单向libaio.so.1 → 系统 libaio.so.1t64别名;输入反过来要求libaio.so.1t64、系统只提供libaio.so.1时没有对应别名,归档校验和 DEB 构建成功,运行仍缺库退出 127。修复前基线7aa18b769d19e16652391aa41b30781dd5299060已用真实 Ubuntu 两种 libaio 提供方复现,依赖声明允许的两种提供方需要同时覆盖。私有 PT_INTERP 和 obshell 依赖 也会使成功生成的包无法在目标目录运行:原收集器保留构建机上的绝对 loader 路径,移除该私有 loader 后,文件仍存在且有执行权限的成品由内核返回
ENOENT;obshell 原先只检查架构与 glibc 版本,其私有DT_NEEDED库不在引擎归档中,导致 DEB 中的引擎可运行、helper 却因缺库退出 127。obshell 的架构/ABI 检查和二进制重定位入口均可追溯到本 PR 的aab913f49e69100d4a4c8b0c91ff0a5b6254ba6b;这两个缺口在修复前的3fc6360017436d2fce3987efa0eab330b69cb1e7仍存在。时区导入数据已从 master 删除,也不再属于本轮打包产物。之前只取消默认携带,仍保留
--timezone-file/SEEKDB_TIMEZONE_FILE可选入口、独立导入脚本和复用旧包时的专门过滤。本次清理这些遗留实现;复用二进制时明确收集 SQL、SRS 和运行所需资源,避免旧归档中的时区数据及孤立导入脚本重新进入成品。引擎内部的时区计算、内表和 UTC 包名时间戳不在清理范围。此前处理的三个 review comment 都位于当时的
package/symbols.py(现为package/debug_symbols.py),由本 PR 的符号分离提交97fc2aaaa引入,在修复前基线3e8686705ac66a5157f6568076a670ea3e865f9f仍存在:.gnu_debugdata时,has_debug()将其视为调试信息,但strip --strip-unneeded会保留该节;随后成品剥离检查报Debug information remains after stripping,导致二进制导出和 DEB 复用失败。.gnu_debuglink指向previous-symbols.debug时,直接调用objcopy --add-gnu-debuglink=seekdb.debug会保留旧节并成功退出;成品仍查找旧文件,而调试包只提供bin/seekdb.debug。解决方案
linux_dynamic()中针对 FILTER/AUXILIARY、NODEFLIB、AUDIT/DEPAUDIT 的检测和报错,所有调用处恢复使用普通dynamic()读取;ABI 检查中删除仅用于这些标记的重复读取。此次不解析这些扩展语义,不收集它们引用的特殊后端或 auditor,也不修改输入的对应标志。libnss_compat.so.2、libnss_dns.so.2、libnss_files.so.2三项 NSS 模块列为 glibc;私有 NSS 库按普通依赖收集,也允许通过--extra-library显式加入。复用已有归档时逐个核对DT_NEEDED是否由系统清单、归档文件名或已声明的 SONAME 满足;旧的漏库归档明确报错并要求重新导出。保留合法的已加载 SONAME 别名,不要求重复存放同一库。DW_AT_dwo_name/DW_AT_GNU_dwo_name,明确拒绝 split DWARF,并提示去掉-gsplit-dwarf重编译;不再发布缺少 DWO 的符号包。GNU 工具使用readelf --debug-dump=abbrev,LLVM 工具使用llvm-dwarfdump --debug-abbrev,均识别压缩调试节。Linux 原生objcopy/strip改用 PATH 中的 GNU binutils,workflow 已安装这些工具,避免旧 LLVM 重排 patchelf 段布局;Android NDK、macOS 和 Windows 的符号工具选择保持原路径。libaio.so.1 → /usr/lib/<multiarch>/libaio.so.1t64和libaio.so.1t64 → /usr/lib/<multiarch>/libaio.so.1。两者都指向系统目录,不形成私有目录内的符号链接循环;对向目标缺失时,loader 继续查找系统中原 SONAME。仍只使用官方系统库,不捆绑 libaio 实现,也不修改原有Depends。系统包只接受已支持的两种 libaio 名称;EL7/EL8 RPM 明确要求.so.1,拒绝.so.1t64输入,避免生成官方 RPM 提供方无法满足的依赖。PT_INTERP校验:x86_64 接受/lib64/ld-linux-x86-64.so.2,aarch64 接受/lib/ld-linux-aarch64.so.1;静态程序和普通 DSO 没有 interpreter 时仍可通过。其他路径明确报错并提示重新链接,不把构建机的私有 loader 当作可移植产物,也不自动替换 loader。libnss_*.so就放行。--obshell-binhelp 同步声明该约束。共用 staging 覆盖 RPM/DEB、TGZ、原始构建目录和已有二进制输入;obshell 自带私有动态库的依赖收集不属于本次支持范围。现有 SDK helper 的libresolv.so.2、libpthread.so.0、libdl.so.2、libc.so.6均在支持范围。SetThreadDescription(GetCurrentThread(), wname)直接调用,删除本 PR 增加的KernelBase.dll动态查找、函数指针缓存及接口缺失时跳过的兼容分支。不再针对 Windows 10 1607 / Server 2016 增加这项适配;/MD、DLL 收集和打包校验保持现有实现。package/binary.py重命名为package/binary_distribution.py,明确其职责是二进制发行包的依赖收集、导出和校验;将package/symbols.py重命名为package/debug_symbols.py,明确其职责是调试符号分离、剥离和身份校验。同步更新 workflow 调度、原生打包、iOS 归档和 macOS 动态库工具的导入与调用;MSI 改为直接导入debug_symbols,消除对package.symbols间接导出的依赖。此次仅调整模块命名及引用,CLI、成品命名和处理逻辑保持一致。--timezone-file、SEEKDB_TIMEZONE_FILE、stage()的对应参数与复制逻辑,并删除已无调用的tools/import_time_zone_info.py。MSI 入口同步调整,workflow 下载及.github/packaging.json的 URL/SHA-256 已移除。复用二进制时只收集明确需要的资源目录和 SRS 工具,取消按时区名称过滤的特殊分支;历史包中的时区文件和导入脚本均不会进入新 RPM/DEB/TGZ。Windows 的 DLL 和依赖来源信息继续保留。Pythondatetime.timezone.utc用于包名时间戳,继续使用。Package seekdbworkflow,覆盖 Linux x86_64/aarch64 的 glibc 2.17/2.28、macOS 15.0 arm64、Windows x86_64/MD、Android arm64/API 26、iOS 18 的 arm64 真机和模拟器,以及组合 XCFramework。Linux 使用固定版本和 SHA-256 的 Conda sysroot。rpmbuild和dpkg-deb,Python 负责收集已有二进制、资源、动态库及调用原生打包工具。支持 EL7/EL8、Debian 12/13、Ubuntu 22.04/24.04/26.04,包名和元数据包含发行版标识;保留原有 RPMlibaio, systemd和 DEBlibaio1 | libaio1t64, systemd依赖,由系统包管理器安装官方 libaio。RPM/DEB 包含 obshell。binary_run_id可选择历史二进制构建,跳过引擎编译和 SDK 初始化。打包前验证来源提交、版本、架构、glibc 基线和文件校验和,并记录二进制与打包代码各自的来源。DEB 从选中的基线中优先复用 glibc 2.28,每个发行版/架构仅生成一个系统包。YYYYMMDDTHHMMSSZ,不再使用数字 release。二进制归档的日期位于源码 SHA 前;RPM/DEB 使用同一次 workflow 的时间戳和发行版后缀。本地打包统一使用 Python CLI 的命名参数。.gnu_debugdata到独立调试文件,并从成品显式删除;先移除旧.gnu_debuglink再重建,并校验新文件名与 CRC。Windows 从 EXE 的 CodeView 和 PDB 读取 GUID/age,确认一致后才复制,符号 manifest 同时记录身份;工具从已初始化的 Windows LLVM SDK 定位。.debug,macOS/iOS 导出 UUID 匹配的 dSYM,Windows 导出链接器 PDB。成品中的可执行文件和动态库经过剥离检查;调试包与成品通过平台、时间、源码 SHA、哈希以及必要的 UUID/GUID 关联。Windows ZIP 允许 SDK 中可复现构建使用的 Unix epoch 时间戳。deps/下的依赖缓存,包含deps/3rd、deps/prebuilt和相应 Android/iOS 依赖目录。cache key 包含deps.lock.json、依赖 profile 和初始化脚本;iOS 另包含 Xcode/SDK/部署目标。编译输出、Conda、Rust/Cargo、NDK 和 Bazel 下载不单独持久化缓存,artifact 保留时间使用 GitHub 默认值。deps.lock.json和deps/prebuiltSDK,不再保留旧分支中的 Windows SDK 下载条目、重复的 jemalloc Bazel 规则或旧 MODULE 锁文件改动。Windows 包从deps/prebuilt/native收集许可证、SDK manifest 和 lock 文件;Linux/Android 动态库回退目录、iOS 自定义初始化也适配到新布局。Actions 直接访问官方 GitHub release。rpm/入口,以及package/rpm/seekdb-build.sh、package/deb/seekdb-build.sh、package/tgz/seekdb-build.sh三个包装入口,移除重复的发行版/预编译参数解析和隐式初始化、编译分支。构建由build.py显式执行,打包统一调用python3 package/package.py的rpm、deb、tgz格式;RPM spec 仍保留在package/rpm/。workflow 原本就直接调用 Python,入口及打包逻辑保持不变。docs/developer-guide/en/build-and-run.md相对 master 没有改动。本地 RPM 复用已有产物的调用示例(输入归档须匹配目标架构和 glibc 2.17,obshell 为已有可执行文件):
验证
当前验证:取消特殊 ELF 检查(代码基线
ce91725c7dcf9721594f3847e90fd43ae4b5d11c):package.py --help;以系统/bin/true作为最小可执行输入,实际完成 binary 导出、归档回读与解包后执行,退出码为 0。该用例验证普通打包入口和依赖收集,不作为完整 seekdb 构建结果。binary_distribution.load(),均不再被专项检查拒绝。这里只验证检查已撤回,没有执行这些特殊程序,也不声明其额外库被收集或运行行为得到支持;上一轮“应拒绝”的断言不再属于当前验收范围。a130897144ce3a6c0924f5f238f81521479546b5的 x86_64/glibc 2.17 历史二进制,复用并生成 server 与 libs 两个 TGZ。检查 server 包包含 seekdb、obshell、SRS 资源,且没有已删除的时区数据和导入脚本;未安装或启动完整数据库。首次验证脚本误按一个 TGZ 选包,按既有 server/libs 两个产物修正后完整重跑,产物检查断言保留。package/binary_distribution.py和package/package.py,两个文件与执行快照逐字节一致;发布 tree 为efb8c474ef03468f025190d0a3877cc99c8ce514。Python 解析、diff 和提交前检查通过,源码搜索确认linux_dynamic()及上述专项报错均已删除。未新增产品单元测试,没有重编译引擎或重跑 RPM/DEB、非 Linux 平台,历史产物包名及源码来源保留。历史验证:NSS、audit、split DWARF 与符号工具回归(代码基线
ca5986768a6980feeac5faad840eab6cc6d1cf26):3de9bfdbfe683634df64a2a2ed96b23a88603f5b对照;此前 16 组及 libaio 分别保留ab6595...、7aa18b...原对照,不混称为相同源码。42;旧漏库归档的回读与 DEB 复用被拒绝;显式 dlopen 插件导出后运行42;文件名与 SONAME 不同的已加载库别名仍运行42;真正的 glibclibnss_files.so.2不捆绑且正常运行。DT_AUDIT/DT_DEPAUDIT前后对照,以及两类标签的递归 DSO/显式插件入口。两个根程序原始输出42、旧归档和 DEB 都输出99;新导出、旧归档回读与 DEB 复用均明确拒绝,原输入字节不变。递归用例先链接主程序、再替换同 SONAME DSO,避免 GNU linker 将 audit 标签传播到主程序后测错入口;没有放宽结果断言。42,GDB 仍可解析结构类型;Linux 两种环境均实际选用 GNU objcopy/strip。3de9bf...原基线对照:patchelf 后仍输出42,LLVM strip 后段偏移失去 4K 对齐并 SIGSEGV,GNU strip 可运行。修复工具选择后,同一正常 ELF 用例完整导出和运行通过。首次无 CRT、强制 core NSS 的合成夹具在本次改动前后均异常,系统 NSS 正例最终使用常规 C 入口;该首次失败单独保留,不计为产品修复或任意 ELF 布局的通过证据。package/binary_distribution.py和package/debug_symbols.py,两者与最终隔离验证快照逐字节一致;本地/远端发布 tree 为d554e126b552f1c1376a161b46828bddd242df63。Python 解析、diff、提交前检查通过;Windows 线程命名和docs/developer-guide/en/build-and-run.md均仍与 PR 的 master 基线一致。测试脚本保留在仓库外,没有新增产品单元测试,没有重新编译完整 seekdb 或新增非 Linux/aarch64 平台运行,历史包名及引擎来源保持原记录。历史验证:libaio 双向别名与全部 ELF 回归(代码基线
3de9bfdbfe683634df64a2a2ed96b23a88603f5b):7aa18b769d19e16652391aa41b30781dd5299060;16 项既有回归沿用ab6595a8c767eadf7fcf7f21439a15a289deaf7d对照,均针对最终验证快照执行。没有把不同基线视为相同源码。libaio1 0.3.112-13build1与 Ubuntu 24.04libaio1t64 0.3.113-6build1.1。旧包从 Ubuntu 官方下载页 取出,完整 SHA-256 核对为2dcfe0b49d7cccfbf1bd6a3f627cf44bea9f51fb32f7e0e552a0df75698e0d27;新包由签名 APT 源安装。原生汇编探针分别链接两种实际 SONAME,调用真实io_setup(0, &ctx),检查返回-EINVAL后输出42,不申请 AIO context。.so.1t64的输入在仅装旧libaio1的隔离 root 中退出 127;同一 DEB 在提供libaio1t64的 root 中返回42。修复后对 Debian 12/13、Ubuntu 22.04/24.04/26.04 五个发行版标签分别构建两种输入,共 10 个 DEB,各自交叉两种系统库提供方,共 20 次运行全部返回42。每个 DEB 的依赖均为原有libaio1 | libaio1t64, systemd,私有目录只有两条绝对系统别名,没有 libaio 普通文件。libaio.so.1libaio1的.so.142libaio.so.1libaio1t64的.so.1t6442libaio.so.1t64libaio1的.so.142libaio.so.1t64libaio1t64的.so.1t6442.so.1输入实际构建成功,查询确认保留libaio、systemd和正常.so.1自动依赖,没有.so.1t64自动依赖;T64 输入在发布前被明确拒绝。非标准libaio.so输入的 RPM/DEB 均在丢弃库前报错,不再悄悄生成缺库的系统包。/proc/self/exe导致主程序无法确定$ORIGIN;已用--list确认别名解析正确,随后通过 root 内系统 loader 显式指定/usr/bin/seekdb完成验证。没有设置LD_LIBRARY_PATH或放宽运行结果断言,此准备环境差异不作为产品缺陷或五个完整 OS 的认证结果。package/package.py,与该轮最终集成快照逐字节一致,Python 解析、diff、提交前检查通过;远端与本地验证 tree 均为37177d415c33231a2c0c0c51d159be8e498763a3。没有新增产品单元测试、未重编译完整 seekdb 引擎,未在 EL7/EL8 完整系统安装 RPM,也未新增 aarch64 或非 Linux 平台执行。历史产品包名及各自引擎来源保持原记录。历史验证:loader 与 obshell,并回归 ELF 属性(代码基线
7aa18b769d19e16652391aa41b30781dd5299060):ab6595a8c767eadf7fcf7f21439a15a289deaf7d;其中 6 项覆盖新修复,10 项在最终代码上完整重跑前一轮 filter/NODEFLIB、正常依赖链、插件、字符串误判与历史归档回归。脚本和原生 C/ELF 探针仅用于隔离验证,不作为完整 seekdb 构建结果。--dynamic-linker构造。原程序返回42,修复前 binary 导出、回读和 DEB 构建均成功;只移除原 loader 后,归档和 DEB 的可执行文件均由内核返回ENOENT。修复后新导出、旧归档回读和 DEB 复用均在发布前拒绝该路径,提示PT_INTERP及规范 loader,输入文件字节不变。普通系统 loader 的 binary 导出、回读、执行仍返回42。DT_NEEDED=libobshell_private.so构造。原 helper 返回42;修复前 DEB 中的引擎返回42、helper 因缺少该库退出 127。修复后 DEB、TGZ 和直接构建目录的 DEB 路径均明确拒绝该 helper、没有生成对应包。另以libnss_review.so.2构造名字类似系统库的私有依赖:修复前缺库退出 127,精确 SONAME 检查后被拒绝。42。真实历史 seekdb/obshell 继续取自 run 44031186819,引擎来源为a130897144ce3a6c0924f5f238f81521479546b5、x86_64/glibc 2.17;其规范 loader 和四项系统库导入通过新校验,实际生成 Ubuntu 24.04 DEB,资源、obshell 和libaio1 | libaio1t64, systemd依赖保留,不含已删除的时区数据/工具。历史完整引擎只做归档和打包验证,没有安装或启动数据库。6a89e1b1188d8bfc9739d0fddefbcfa7d23cdb0a。先用 5 项新检查及 10 项回归验证核心路径,再将 helper 系统库判断收紧为精确 SONAME、补充同名私有库对照,最终对 6+10 项全部重跑通过。没有添加产品单元测试或放宽已有产品断言,验证脚本未加入 PR,Windows 线程命名仍保持 master 原实现。历史验证:Linux ELF 加载属性校验(代码基线
3fc6360017436d2fce3987efa0eab330b69cb1e7):binary --seekdb-bin、归档回读、deb --binary-package命令。评审提交为9731970412e7a1ed4f5eacf174f86430fa02d236,复现基线为ab6595a8c767eadf7fcf7f21439a15a289deaf7d,已核对受影响模块在两者中逐字节一致。DT_FILTER的 DSO42libbackend.so,均退出 127DT_AUXILIARY的 DSO42-1DF_1_NODEFLIB,通过私有目录找到 libc42libc.so.6,均退出 127DF_1_NODEFLIB,通过私有目录找到 libm42libm.so.6,均退出 127--extra-library的 auxiliary filter 和直接构建目录中的 NODEFLIB 输入也不能绕过校验。42:普通DT_NEEDED两级依赖链与继承的 RPATH(保留 NOW/ORIGIN 等正常标志)、通过dlopen加载的显式插件,以及 RUNPATH 字符串里包含(FILTER) (AUXILIARY) (FLAGS_1) NODEFLIB字样但没有这些实际属性的程序。未设置LD_LIBRARY_PATH、LD_PRELOAD或LD_AUDIT;正常 DEB 的libaio1 | libaio1t64, systemd声明保持一致。a130897144ce3a6c0924f5f238f81521479546b5、x86_64/glibc 2.17。新校验通过后实际生成 Ubuntu 24.04 DEB,SQL、SRS、SRS 工具、obshell 和依赖声明保留,不含已删除的时区数据及导入工具。该项检查归档、ELF、包构建和文件列表,没有安装系统包或启动数据库。package/binary_distribution.py,与最终验证快照逐字节一致;Python 解析、diff 和提交前检查通过。远端提交与本地验证版本的 tree 均为716ba5a9ce901456c84cf13f222151709e7f8239。Windows 线程命名仍与 PR 的 master 基线一致。隔离验证脚本未加入 PR,没有新增产品单元测试或修改既有产品断言,临时验证容器已移除。首轮 9 项通过后细化为按真实 tag 行解析,补充同名 RUNPATH 字符串对照,再对最终代码重跑全部 10 项通过。历史验证:恢复 Windows 线程命名调用(代码基线
ab6595a8c767eadf7fcf7f21439a15a289deaf7d):src/oblib/lib/thread/ob_thread_name.cpp,由动态查找恢复为直接调用SetThreadDescription。已将整个文件与 PR 的 master 基线6feab6323d97a0cf86ca6c4b50bdbf3d7433c6ef逐字节比较,完全一致,该文件相对 PR base 的 diff 为空;字符编码转换和其他平台分支均恢复为同一基线的内容。git diff --check、staged diff 和提交前检查通过。没有新增单元测试,本轮未重编译 Windows seekdb 引擎、未重打 Windows ZIP 或执行 Windows 运行验证;下面的历史 Windows 构建记录不作为本提交的验证结果。74dcfbabb4c49b94f8f2b8c945f71738b319f04e,本地分支已同步。各平台历史包名、引擎来源和既有验证记录保留。历史验证:清理时区打包入口(代码基线
9731970412e7a1ed4f5eacf174f86430fa02d236):b7474fb7f6c48e2119e62827f08be21f49db7d0d。对照命令设置SEEKDB_TIMEZONE_FILE后仍会复制数据并分发导入脚本;清理后相同环境变量被忽略,两个 CLI 均拒绝已删除的--timezone-file。全仓库已无timezone_V1.log、SEEKDB_TIMEZONE_FILE、--timezone-file或import_time_zone_info.py的代码引用。.github/scripts/package.py export,以原生汇编探针验证新的 binary/独立 debug-info 导出、manifest 回读和成品运行;旧源码、缓存文件和旧环境变量均未把时区数据带入归档,时区导入工具也不再分发。探针版本为0.0.0、源码 SHA 为全零,不作为完整引擎构建结果。a130897144ce3a6c0924f5f238f81521479546b5。实际重打 EL7 RPM、Ubuntu 22.04 DEB,并以新探针归档生成 DEB,均不含旧时区数据或导入工具;SQL、SRS、SRS 导入工具和 obshell 保留。RPM 的libaio, systemd与 DEB 的libaio1 | libaio1t64, systemd依赖声明保持原有规则。本轮检查包构建、元数据和文件列表,没有安装系统包或启动完整数据库。部署脚本在默认环境和设置旧环境变量时均不复制时区数据;未使用的 symbolizer 复制输入为/bin/true,未执行该工具。/MDZIP 来源为fcdcc85213a594c412ad5b3d83bfff6db69d378e,在 macOS 上完成真实 PE/manifest 校验与 staging;新 payload 不含时区数据,18 个 DLL 和依赖来源记录保留。这不是 Windows 原生运行或 MSI/WiX 构建验证。实际 matrix 输出仍为 9 个二进制目标、14 个系统包目标。d36bf0be8744b1250cda68d9be267329374694e3,本地分支已同步。没有添加产品单元测试或修改既有产品断言;隔离验证脚本不加入 PR。没有重编译完整 seekdb 引擎或手动重跑全平台打包,未重验 Android/iOS 原生执行及数据库 SQL 时区行为。历史验证:模块命名调整(代码基线
b7474fb7f6c48e2119e62827f08be21f49db7d0d):130a21d625d1ee18c7fd96b1d5000bb7c0aba19f。binary_distribution.py与原文件逐字节相同;七个相关模块在归一化导入名及 MSI 调用接收者后 AST 结构一致。全仓库检查了直接导入、动态文件路径和间接模块属性引用。直接 Git 推送遇到连接错误后,通过 GitHub Git Data API 提交;已确认远端提交和本地验证版本的 tree 均为3b87c8d8a090ccebb7662703a647801178da4249,并同步本地分支到同一提交。debug_symbols.strip_tree对历史 Windows/MD归档的真实 PE/DLL 内容执行检查,通过后再次验证无调试负载;引擎来源为fcdcc85213a594c412ad5b3d83bfff6db69d378e。这是 macOS 上的 Windows 归档处理验证,不计为 Windows 原生运行或完整 MSI/WiX 构建。iOS CLI 导入已检查,本轮未重编译完整 seekdb 引擎或重跑 iOS 构建,未添加产品单元测试。b7474fb,不作为本次清理提交的 CI 结果。历史验证:默认省略时区数据(代码基线
130a21d625d1ee18c7fd96b1d5000bb7c0aba19f):d5a8d64e8a73daebdb6f0d913c2b9ae72436b88e在无时区文件时重现required timezone data is missing。修复后用新编译的原生汇编探针运行实际.github/scripts/package.py export,同时放置旧源码/缓存时区文件,确认它们均未进入新归档;归档回读、manifest 校验、成品执行及导入工具保留检查通过。新探针不依赖 libc,归档版本为0.0.0、源码 SHA 为全零,不作为 seekdb 引擎构建结果。a130897144ce3a6c0924f5f238f81521479546b5、Linux x86_64/glibc 2.17。保持原始归档不变,通过真实--binary-package分别生成 EL7 RPM 和 Ubuntu 22.04 DEB,文件列表均无时区数据且保留 SQL、SRS 和导入工具;RPM 的libaio, systemd以及 DEB 的libaio1 | libaio1t64, systemd声明保留。无时区文件的新探针归档也成功生成 DEB。系统包检查范围是构建、元数据和文件列表,没有安装或启动完整数据库。--timezone-file的二进制导出、归档回读及数据逐字节对照通过;开发部署脚本的默认省略和显式环境变量复制通过。部署复制检查中未使用的 symbolizer 输入以/bin/true占位,没有执行该工具。SEEKDB_TIMEZONE_FILE输入验证。Windows/MD使用历史引擎fcdcc85213a594c412ad5b3d83bfff6db69d378e的 ZIP,在 macOS 上验证 PE/manifest 回读、历史包 staging 省略时区目录,以及无该目录的新 ZIP 回读;这不是 Windows 原生运行检查。实际执行 matrix CLI,仍输出 9 个二进制目标和 14 个系统包目标。libaio.so.1再当原始依赖导出,被既有的 ELF 对齐检查拒绝;原文件的相关 LOAD offset 为 4168、vaddr 为 4194304、alignment 为 2097152。本轮没有修改 ELF/RPATH 处理或放宽校验,新导出验证改用新编译探针,历史 RPM/DEB 复用仍使用原始归档。本地 matrix 首次调用缺少GITHUB_SHA,补齐调用环境并读取既有linux_matrix输出后完成检查。历史验证:符号导出修复(代码基线
d5a8d64e8a73daebdb6f0d913c2b9ae72436b88e):3e8686705ac66a5157f6568076a670ea3e865f9f复现,修复后打包实现与本轮代码基线逐字节一致。binary --seekdb-binCLI;另外以校验和有效且包含 mini-debuginfo 的归档运行实际deb --binary-package。修复前重现两个导出失败、旧链接残留和 DEB 失败;修复后成品可运行且无调试负载,外部调试文件保留原 mini-debuginfo 字节,独立使用 pyelftools 验证新 debuglink 文件名/CRC,GDB 自动加载新符号并定位到原 C 文件第 2 行;DEB 解包后的程序也可运行。windows-2022run 44235029418 首次运行成功,共 9 项检查通过。 使用真实初始化的 LLVM 18.1.8 SDK,确认无需预设 SDK PATH 即可定位llvm-readobj.exe/llvm-pdbutil.exe;先执行上述 6 项 PE/PDB 对照,再用实际/MD编译的程序执行 3 项完整binary --seekdb-bin --layout windowsCLI 检查。匹配的 PDB 通过 GUID/age、manifest 与成品哈希校验,解压后的成品无调试负载且输出42;错误 GUID 和错误 age 均被拒绝,未发布 ZIP。已下载并核对 9 项结果 JSON。验证分支提交为4ed897d83205f06225038b0a0c8fe5d39558d544,与 PR head 仅有临时.github/workflows/seekdb.yml入口及两个.github/scripts/review-symbols/验证脚本的差异,三个打包实现文件逐字节相同;这些临时文件不加入 PR。libc6-dev和patchelf,补齐后原样运行通过;临时容器已移除。Android 共享 ELF 处理路径仅由源码推断,此轮未在 Android 上重跑;macOS/iOS 的符号逻辑未改动,也未重验。历史验证:处理 review comment 4598341180(
3e8686705ac66a5157f6568076a670ea3e865f9f):glibc-hwcaps/x86-64-v3优化库时。旧收集器优先选宿主可用的优化 DSO,却把它复制成普通lib/seekdb/<SONAME>,丢弃基线回退;导出的glibc=2.17元数据并不约束 AVX2,旧 CPU 因而可能 SIGILL。ld.so.cache中标有 hwcap 的条目。显式搜索目录、插件输入及其真实符号链接目标也会检查:仅有 hwcaps 变体时拒绝导出,并提示通过--runtime-lib-dir提供基线库。没有修改包名、版本元数据或其他平台的处理逻辑。aab913f49新增了缓存依赖的扁平化复制;9570bdf8d又增加 hwcaps 子目录优先查找,3b0c7c2cf增加宿主能力过滤。以上路径仍未保留运行目标 CPU 的门控。本轮实测的修复前基线为48a87e4486110ddba2e570342ab710d3c04fcff6,修复后文件与代码基线3e8686705ac66a5157f6568076a670ea3e865f9f逐字节一致。vpsllvd并返回 33。探针使用_start/系统调用,库没有 libc 符号依赖;使用真实prepare → write → load导出、校验并导入glibc=2.17归档。还使用 QEMU Nehalem 模拟无 AVX2 CPU。下表是探针的返回标记,不是 seekdb 引擎的退出码:--glibc-hwcaps-mask ''ldconfig缓存查找(也重现旧归档的 SIGILL)、hwcaps-only 依赖拒绝、显式优化搜索目录拒绝、符号链接到优化库拒绝、显式/符号链接插件拒绝,以及移走原始库后归档继续运行。未模拟ldconfig输出;没有修改既有测试断言或添加单元测试。验证脚本和生成的探针留在工作区,不加入成品包。macOS 构建并行优化(代码基线
48a87e4486110ddba2e570342ab710d3c04fcff6):jobs=0时 macOS 从--jobs=1调整为--jobs=2,iOS 仍为 1,Linux/Windows/Android 仍为 2;手动输入的 jobs 继续直接传给 Bazel。构建日志打印实际并行度,macOS 额外记录 CPU、内存和构建前后的 swap;诊断命令失败不影响构建结果。保持 O2、line_tables_only、最低系统 15.0、依赖锁定和单独调试包;仍仅缓存 deps。Building macos with --jobs=2。与上一次 macOS 15 的单路构建对比如下,均为完整引擎冷编译,未复用编译缓存:20261104.0514.1更新到20261112.0539.3;这是不同 VM 上的单次运行对比,不能将 41.3% 全部当作固定镜像 A/B 的并行收益或后续每次运行的保证。seekdb --version均通过,并上传 binary-macos15-arm64 与 debug-info-macos15-arm64,共 4 个文件。未将该 CLI 检查计为完整 macOS SQL/向量工作负载验证,本轮没有重建其他平台。95e92248052c0539b2f5777b92dc8b8156e627d5,与当时 PR head48a87e4486110ddba2e570342ab710d3c04fcff6仅有.github/workflows/seekdb.yml的差异:对应 package workflow 复制为已注册入口,加一个默认 Bazel JSON trace 的上传步骤。打包脚本与当时 PR head 相同;本地默认/显式 jobs 选择、Python 语法、Actionlint 和 diff 检查通过,该代码基线的 CLA、Clippy/audit、源码 license 检查通过;mysqltest 因变更范围跳过。验证脚本拆分(代码基线
c9d0ee316a161a8c594bd1ab1c445e8520305fe5):.github/scripts/fixtures/seekdb-smoke.cnf,.github/scripts/check_deb.py负责目标发行版容器、安装、service 文件检查、配置覆盖、启动/停止和 SQL 读写验证。Windows 的既有 PowerShell 检查原样移到.github/scripts/check_windows.ps1;YAML 中的两个验证步骤只保留脚本调用。--help、AST 语法、Actionlint 和 diff 检查通过。验证逻辑仍覆盖 CLI、systemd service 文件、安装后的启动 helper、SQL 读写、停止 helper 和失败日志。Installed seekdb passed SQL read/write checks和停止进程记录。独立 Windows PowerShell 脚本也使用历史 MD 成品通过seekdb.exe --version检查。本轮二进制构建 job 跳过,没有重新初始化 SDK 或编译引擎;未重验 aarch64 或其他平台。502 Bad Gateway,当时尚未执行 DEB 验证;仅重试失败任务后,第 2 次尝试完成且成功,没有为此修改源码。Windows 检查在第 1 次尝试已通过。e59c3a5b032bbc3bf39090f769643f3b6a0b538a;它与当时 PR headc9d0ee316a161a8c594bd1ab1c445e8520305fe5仅有.github/workflows/seekdb.yml的差异,即将对应package.yml原样复制为已注册入口,再增加一个复用历史 Windows artifact 的验证 job;打包代码、脚本和测试配置与当时 PR head 一致。历史二进制源码为a130897144ce3a6c0924f5f238f81521479546b5,不将其计为当前 head 的引擎构建。macOS 15.0 目标切换验证(代码基线
6c2b17b83698ebc7e76872a4f077168d4dd3bf6e):MACOSX_DEPLOYMENT_TARGET、Rust 工具链环境、PKG 的三个 Swift 工具和菜单栏应用 Info.plist 统一为 15.0;PKG 文件名按最低目标标识为 macos15。oceanbase.macos15.arm64.deps,即development-kit/darwin/15/arm64的 12 个既有包;即使在更新的 macOS 主机上也使用该基线。当前锁定的 jemalloc/VSAG min13 发布包继续保留,其最低版本不高于新目标 15。macos15-arm64,cache key 使用 macOS 15 清单;发布时检查主程序和随包 dylib 的最低系统要求不高于 15.0,并回读导出的归档后执行其中的seekdb --version。c64d88ca1c2aedb6e19ef821fa55f41c8b37b526,与当时 PR head6c2b17b83698ebc7e76872a4f077168d4dd3bf6e仅有package.yml原样复制到已注册seekdb.yml入口的差异,已检查文件列表和逐字节相等。seekdb --version,输出版本1.4.0.0和上述源码 revision;主程序/随包 dylib 的最低系统检查、成品调试信息剥离与独立 dSYM 导出均通过。实际上传 binary-macos15-arm64 和 debug-info-macos15-arm64 两个 artifact,共 4 个文件(两个.tar.gz及各自的.sha256)。这是成品 CLI 检查,没有将其计为完整 SQL/向量工作负载测试。binary-macos15-arm64/debug-info-macos15-arm64;归档平台标识为macos15.0-arm64。macOS 15 这次验证中其余平台没有重打,以下全平台实测属于旧代码基线。该代码基线的 CLA、Clippy/audit、源码 license 检查通过;mysqltest 因变更范围而跳过,不计为本轮数据库测试通过。历史:Shell 入口清理的本地验证(
2f860178cd09afab1653175f4fda7e93e5689200):--help命令均通过,确认已有的--binary-package和--seekdb-bin输入选项保留。git diff 13e1983e617ea44f5d8bac88333a9e7361e7899b HEAD仅删除三个 Shell 文件,共 98 行;Python 打包模块、workflow 及产品代码未改动。本次未重跑完整引擎编译和打包,下面的全平台实测仍属于已注明的构建基线。代码基线
788684d2f25456401619e4b130bdc01fe3a9b208的 rebase 后本地验证记录:actionlint .github/workflows/package.yml、10 个 Python 文件的语法检查、RPM/DEB/TGZ 包装脚本的bash -n、git diff --check和暂存区空白检查均通过。deps.lock.json后,实际运行环境配置命令,确认 SDK cache key 随之变化。deps/init/prepare.py --help验证 Linux profile 参数仍可用。e8260eea65ea、历史引擎fcdcc85213a5,仅验证目录和打包适配;没有把它当作当前 master 固定的 VSAG97588f036a3a或当前引擎的构建结果。MODULE.bazel、MODULE.bazel.lock、master 的 jemalloc 规则、Windows.depsprofile 和build-and-run.md相对 master 均无差异。2026-11-17 全平台重新打包实测(macOS 15 切换前的历史基线)
run 44031186819 已完成,第 1 次尝试的 25 个 job 全部成功,无失败或重试:prepare 1 个、完整二进制/framework 构建 9 个、系统包 14 个、XCFramework 1 个。实际上传 33 个 artifact、84 个文件,API 为全部 artifact 提供 SHA-256 digest;本次没有独立下载全部归档重新计算哈希。
构建提交为
a130897144ce3a6c0924f5f238f81521479546b5(临时分支codex/package-all-20261117)。已用git diff --name-only 788684d2f25456401619e4b130bdc01fe3a9b208 a130897144ce3a6c0924f5f238f81521479546b5确认只有.github/workflows/seekdb.yml不同,并逐字节确认该入口是package.yml的原样副本。因此以下构建验证 PR head788684d2f25456401619e4b130bdc01fe3a9b208的产品与打包代码,归档记录的实际源码 SHA 保留为a130897144ce…;不把两个完整 tree 写成相同。后续清理分两次提交:
13e1983e617ea44f5d8bac88333a9e7361e7899b删除新增 README,2f860178cd09afab1653175f4fda7e93e5689200删除三个未被 workflow 调用的 Shell 包装入口。该 Shell 清理提交相对上述代码基线仅删除这四个文件,已通过git diff --name-status确认;产品源码、Python 打包实现和 workflow 文件保持一致。本次入口清理的本地检查列在上方,没有重新运行下面的全平台构建,已有产物保留原始源码 SHA。linux-x86_64-glibc2.17linux-x86_64-glibc2.28linux-aarch64-glibc2.17linux-aarch64-glibc2.28macos13-arm64windows-x86_64-mdandroid-arm64-api26ios18.0-arm64ios18.0-simulator-arm64/MD在windows-2022上通过完整编译、DLL/目标/剥离检查、runtime/PDB 导出,以及解压后seekdb.exe --version。本轮使用 masterdeps.lock.json的 Windows jemalloc845c8920ddfb和 VSAG97588f036a3a,实际经过新版统一 SDK 的许可证与 manifest 收集流程。libaio1 | libaio1t64, systemd依赖;4 个 RPM 本轮验证到构建、ABI/剥离检查,没有重新执行 EL7/EL8 的安装启动测试。**验证边界:**本轮证明上述 runner/容器环境中的编译、打包与已列出的运行检查。没有完成 macOS 13、iOS 18、Android API 26、最老 Windows 客户端/服务器的实机运行认证,也没有完成 systemd PID-1 启动和最老宿主内核认证。归档的最低版本元数据及静态检查不等同于这些运行结论。
以下历史实测使用旧源码与旧依赖基线,作为独立历史记录保留,不与本轮结果混用。
展开 rebase 前的构建、回归和产物记录
以下记录属于 rebase 前的分支(最终旧 head
205a02d91bbd20971c75a4b672b59b3314d4fc44,当时 master 基线为ac27bdef5889f5484c1c3b57ea71b95760ebc8fe),更早记录另列其提交。此次 master 已切换依赖 SDK,旧 run 与当前源码不能视为相同 tree。Windows MD 完整构建与独立 PDB
Windows run 43801460105 在
windows-2022上通过:2,400 个编译动作、28m33s,包含 DLL/架构/Windows target 检查、PDB 分离、两个 ZIP 及校验和导出,以及解压后seekdb.exe --version。构建源码为fcdcc85213a594c412ad5b3d83bfff6db69d378e;已验证其 tree 相对旧 PR head205a02d91bbd20971c75a4b672b59b3314d4fc44仅多出将package.yml原样复制到已注册的seekdb.yml调试入口的差异。seekdb-binary-1.4.0.0-windows-x86_64-md-20261116T043554Z-sdbfcdcc85213a5.zip及.zip.sha256seekdb-debug-info-1.4.0.0-windows-x86_64-md-20261116T043554Z-sdbfcdcc85213a5.zip及.zip.sha256独立下载后验证两项 sidecar、71 个 runtime 文件的哈希、debug manifest、相同平台/源码/导出时间
2026-11-16T04:35:54Z和 runtime 记录的 debug 归档哈希。成品包含 18 个 DLL,没有 PDB 或嵌入式调试信息;EXE 的 CodeView GUID343237e7-e916-c238-4c4c-44205044422e、age 1 与 PDB 匹配。真实 Unix epoch SDK 许可证目录也通过 ZIP 导出,负载哈希不变。打包失败时的诊断 artifact 可保留完成的编译输入,供后续重新打包。关联的 seekdb-deps PR #16 已合入。SDK run 43793839967 验证 Clang/OpenMP 18.1.8、ANTLR 静态链接定义、全对象链接与启动检查,以及 51 个 SDK manifest 文件哈希。历史 MD SDK manifest 记录 MSVC toolset
14.44.35207。这证明当时windows-2022的构建与启动,不代表完成最老 Windows 客户端/服务器版本的运行认证。DEB 发行版扩展与系统包依赖
cf7f861bd(运行检查配置修正于0579f2932):从同一个 seekdb 1.4.0.0/glibc 2.17 二进制生成并解包五种 amd64 DEB,核对 Version/Architecture/Depends、剥离状态、主程序与原始归档哈希;五种发行版均保留libaio1 | libaio1t64, systemd。108 组矩阵检查保持九个二进制目标和十四个系统包任务,不增加引擎编译目标。memory_limit;检查原始二进制源码后改为memory_budget,并在进程提前退出时立即报告失败。本地远程运行尝试因 SSH/网络超时没有得出运行结论。43201911127的 glibc 2.28 二进制。每种 DEB 均通过 APT 安装、引擎加载、systemd unit 检查、已安装服务辅助脚本启动、SQL create/insert/read/drop、正常关闭及上传;binary job 均跳过。调试分支相对0579f2932仅有原样复制 workflow 到注册入口的差异。未验证 systemd 作为 PID 1 启动及最老宿主机内核。20a34137c:复用真实 glibc 2.17 二进制生成 EL7/EL8 RPM 和 Debian 12/Ubuntu 22.04 DEB,查询包名、Release/Version、依赖并解包检查。主程序和输入归档哈希不变,obshell 保留且已剥离;RPM 仍为libaio, systemd,DEB 仍为libaio1 | libaio1t64, systemd。60 组矩阵、包装脚本新旧参数形式和完整打包入口通过;不匹配发行版在初始化前失败,EL7 拒绝 glibc 2.28 声明及实际要求过新的裸 ELF。43170742983,调试分支相对20a34137c仅复制 workflow 入口,三个系统打包任务成功,binary job 跳过。libaio-0.3.112-1.el8,安装事务跳过生命周期脚本;ldd 和seekdb -V通过。seekdb -V通过;libaio 仅为私有 SONAME 符号链接。设置TELEMETRY_MODE=0,当时容器未以 systemd 为 PID 1,未测试服务启动。动态库解析、工具链与 review 回归
c172b53a2的 11 个 inline review thread 已处理。真实 glibc 2.28/2.39 ELF 覆盖两种 PLATFORM 写法、空 RPATH/RUNPATH 分量、插件 RPATH 继承、LD_LIBRARY_PATH/RPATH 顺序、native cache 与隐式 SDK 顺序、显式目录覆盖、兄弟 DSO 首次加载 SONAME 复用;同一源文件的冲突别名明确失败,避免拆分全局变量/TLS。--lockfile_mode=error,在固定 Conda glibc 2.17/2.28 的只读 sysroot fixture 上完成编译、链接、执行;保留空的 lib/usr/lib 中间目录,两者返回 42 且仅要求 GLIBC_2.2.5,输入 sysroot 不变。--help无需 PYTHONPATH 即可导入。Android 冷初始化重现缺少 rpm2cpio,修复后通过隔离 profile 的真实 host RPM/target tar 解包,跳过不相关的 Rust bootstrap。--version。Python、Actionlint、shell、diff 和推送前安全检查通过。没有新增工具/脚本单元测试。符号分离实测
22f678b6e11ab278a19078ef0dc89d4450cc711f:主程序由 532,679,144 缩至 118,549,064 字节,--version可运行;runtime/debug 配对和哈希通过,独立符号可将 main 解析到src/observer/main.cpp:815。/MDexecutable+DLL fixture,LLVM 18/MSVC:独立 PDB、无嵌入调试信息/无 PDB 的 runtime、回读与运行通过。iOS 完整构建与较早的跨平台记录
iOS run 43356918339 使用 Xcode 16.4/iOS SDK 18.5、部署 iOS 18.0,完成真机与模拟器全引擎构建、framework 元数据/ABI/依赖检查、Swift import、导出/回读和 XCFramework 组合。验证源码为 PR
46021907a,临时分支codex/ios-package-20261113的308afdb59仅将 workflow 原样复制到注册入口。独立下载最终产物,验证 Actions digest、ZIP sidecar、完整文件列表、15 个 manifest 文件哈希、SHA256SUMS 和两个 slice 的部署目标。seekdb-framework-1.4.0.0-ios18.0-arm64-20261113T044228Z-sdb308afdb59e2c.zipseekdb-framework-1.4.0.0-ios18.0-simulator-arm64-20261113T044455Z-sdb308afdb59e2c.zipseekdb-xcframework-1.4.0.0-ios18.0-arm64-20261113T044915Z-sdb308afdb59e2c.zipseekdb -V,返回 1.4.0.0 和预期源码,manifest 记录部署 13.0。只验证较新宿主机,未验证 macOS 13。另保留 Android arm64/API 26 历史包。UTC 命名和历史二进制复用
93b2c5c29、临时入口分支codex/package-time-20261112。不传 release,复用历史二进制,binary job 全部跳过;两种系统包文件名和原生元数据使用同一个20261112T102438Z。TZ=Pacific/Honolulu下验证实际 UTC 秒;RPM/dpkg 比较跨秒和跨午夜均按时间递增,且比旧-1新。实际二进制重新导出/回读、文件名/manifest 对齐、真实 RPM 无 release 参数及两种包装脚本新旧形式通过,保持 libaio/systemd/obshell。5e752a240、临时入口分支codex/package-reuse-20261112,复用 producer43170742983,二进制 provenance 仍为22f678b6e11ab278a19078ef0dc89d4450cc711f。Version 留空时继承版本,生成 RPM/DEB、SHA-256、provenance,跳过编译。seekdb -V通过。打包 workflow 由405d16fcd原样路由到当时已注册入口;该 run 的早期系统包先于依赖修正,依赖行为随后通过 DNF/APT 重打包验证。影响范围
Linux 发版二进制使用规范系统 loader;私有 PT_INTERP 输入会在导出/回读或系统包 ABI 检查时报错。obshell 限制为静态链接或只依赖受支持的核心 glibc SONAME,额外私有动态库不随 helper 自动收集;该限制已在 CLI help 中明确。现有 SDK helper 已验证可继续复用。
Linux 二进制新导出、已有归档复用及系统包收集会拒绝上述未支持的 ELF 加载属性。正常
DT_NEEDED、继承的 RPATH、显式插件和系统库搜索仍使用原有实现;本次不新增这些特殊属性的运行支持。Windows 线程命名仍是前一提交恢复的 master 直接调用,其他平台的实现未在本次改动。成品不再携带命名时区导入数据或专用导入工具,也不再接受打包时区数据的命令行参数或环境变量。固定偏移及已有引擎时区计算语义保持现状。本轮只清理打包、部署入口和孤立导入脚本,不改数据库内表或启动初始化;旧可选参数直接报未识别,不提供兼容入口。
构建、依赖缓存、跨平台目标、系统包布局、调试信息导出和 Windows 可选线程命名适配;没有数据库或存储格式改动。本地 RPM/DEB/TGZ 调用统一改为 Python CLI 的命名参数,旧 Shell 入口及其位置参数形式已移除;系统包版本修订号继续采用 UTC 时间戳。原始 binary/framework 现在不带调试信息,调试时须使用匹配的
seekdb-debug-info。本分支 macOS arm64 最低发版目标为 15.0,已与 C/C++、Rust、Swift、Info.plist、依赖选择和打包校验同步;旧 macOS 13 数据仅保留为历史构建记录。Android 仍为 API 26,iOS 为 18.0,Windows 使用
/MD。macOS 15.8.2 上的完整构建、归档回读和成品--version检查已通过,未覆盖完整 macOS SQL/向量工作负载;iOS 18、Android API 26 及最老 Windows 客户端/服务器的完整 seekdb 运行 smoke 仍未完成,Windows 线程命名沿用 master 的直接 API 调用,不再为 Windows 10 1607 / Server 2016 增加专门兼容分支;Windows 整包最低支持范围仍需实机验证。完整 systemd PID-1 启动和最老宿主内核认证不在本轮覆盖范围内。合入理由
将每个平台的引擎编译与后续发行版打包分开,支持复用历史二进制,便于在 GitHub Actions 上调试多平台构建和测量实际耗时。历史实测已覆盖完整 Windows MD 构建、Linux 二进制复用、十种 DEB 安装/SQL 检查及完整 iOS framework 组合;本次已补齐 master 新 SDK 布局,并用上述已验证代码基线的源码完成 9 个二进制/framework 目标、14 个系统包和 XCFramework 的重新构建与打包;全部 25 个 job 通过。其后 macOS 最低目标已切换到 15.0,并增加导出归档回读与成品启动检查,单独的 macOS 15 完整构建、归档回读、成品启动检查和上传已于 run 44066671968 第 1 次尝试全部通过。最老系统实机运行、完整 systemd 启动及宿主内核认证仍是验证边界。
其他信息
seekdb-bindings未修改;语言绑定的发版 workflow 和 release 发布仍属于后续工作。展开各平台实际包名(33 个 artifact、84 个文件;macOS 已更新为 15 目标)
以下列出两个已成功 run 的实际产物,不能将其解释为当前 PR head 的一次全平台构建:macOS 的 2 个产品 artifact/4 个文件已替换为 run 44084346734 的双路编译 macOS 15 产物,源码为
95e92248052c0539b2f5777b92dc8b8156e627d5(额外的 build profile 是诊断 artifact,不计入包列表);其余 31 个 artifact/80 个文件保留自 run 44031186819,源码为a130897144ce3a6c0924f5f238f81521479546b5。名称来自各自导出日志,并与上传步骤的文件数量核对,版本均为1.4.0.0。系统包共享 UTC 修订时间20261117T062819Z;二进制/framework 和对应 debug 包共享各自的实际导出时间,XCFramework 使用组合时的时间。linux-x86_64-glibc2.17
Artifact:
binary-linux-x86_64-glibc2.17(下载)Artifact:
debug-info-linux-x86_64-glibc2.17(下载)linux-x86_64-glibc2.28
Artifact:
binary-linux-x86_64-glibc2.28(下载)Artifact:
debug-info-linux-x86_64-glibc2.28(下载)linux-aarch64-glibc2.17
Artifact:
binary-linux-aarch64-glibc2.17(下载)Artifact:
debug-info-linux-aarch64-glibc2.17(下载)linux-aarch64-glibc2.28
Artifact:
binary-linux-aarch64-glibc2.28(下载)Artifact:
debug-info-linux-aarch64-glibc2.28(下载)macos15-arm64
本项来自双路并行 run 44084346734,已通过 macOS 15.8.2 上的归档回读和成品 CLI 检查;与其他平台的历史 run 来源不同。
Artifact:
binary-macos15-arm64(下载)Artifact:
debug-info-macos15-arm64(下载)windows-x86_64-md
Artifact:
binary-windows-x86_64-md(下载)Artifact:
debug-info-windows-x86_64-md(下载)android-arm64-api26
Artifact:
binary-android-arm64-api26(下载)Artifact:
debug-info-android-arm64-api26(下载)ios18.0-arm64
Artifact:
binary-ios18.0-arm64(下载)Artifact:
debug-info-ios18.0-arm64(下载)ios18.0-simulator-arm64
Artifact:
binary-ios18.0-simulator-arm64(下载)Artifact:
debug-info-ios18.0-simulator-arm64(下载)iOS XCFramework
Artifact:
ios-xcframework(下载)Linux 系统包
Artifact:
system-packages-el7-x86_64(下载)Artifact:
system-packages-el8-x86_64(下载)Artifact:
system-packages-debian12-x86_64(下载)Artifact:
system-packages-debian13-x86_64(下载)Artifact:
system-packages-ubuntu22.04-x86_64(下载)Artifact:
system-packages-ubuntu24.04-x86_64(下载)Artifact:
system-packages-ubuntu26.04-x86_64(下载)Artifact:
system-packages-el7-aarch64(下载)Artifact:
system-packages-el8-aarch64(下载)Artifact:
system-packages-debian12-aarch64(下载)Artifact:
system-packages-debian13-aarch64(下载)Artifact:
system-packages-ubuntu22.04-aarch64(下载)Artifact:
system-packages-ubuntu24.04-aarch64(下载)Artifact:
system-packages-ubuntu26.04-aarch64(下载)