Repository navigation
[PR] review: v0.1.202 → master full-regression anchor (ci:full) - #4003
ranxianglei wants to merge 2 commits into
Conversation
…er head (v0.1.202..e98ccda, 394 commits)
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4794-pr.4003.1acdd6bThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4003.tgz
npm install -g packageInstall instructions are refreshed on each push. |
|
(ai: zhipuai-lb/glm-5.3) master 深度评审结论(v0.1.202 → e98ccda,394 commits)一句话结论:压缩链路本身被这个区间显著加固,没发现 P0;唯一实锤 P1 是 mysql2 被静态打进 dist 导致「无依赖安装形态」启动即崩(CI 本 PR 的 dsh lane 红就是它,#4008);其余为 8 个 P2(性能税/ forge 误触发面/更新链覆盖缺口)+ 一批 P3。建议 #4008 修掉后再发版。 评审方式:4 个独立深度评审(协议接线/自动更新/缓存与前缀缓存/压缩管线,全部 file:line 级)+ ci:full 全量 CI + 本地真模型 gate + 实际复现定位。 1. 真实流量 gate(scripts/release-gate-local.mjs,真 qwen3.8-27b + 真 glm-5.2)
2. P1 — mysql2 静态 import 打进 dist(#4008,CI 红的根因)
3. P2(按域,均为新引入除非注明)性能税(两个默认全开的纯观测层,叠加在每个请求上)
#2740 auto-mode forge
更新链(机制全部验证正确,缺口在覆盖面)
协议接线
压缩管线
4. 验证扎实的面(可以放心)
5. 建议
P3 级明细(若干一致性/文档/遥测噪声项)在评审底稿里,需要的话逐条开单。 |
… self-contained (#4008) src/storage/mysql.ts held a TOP-LEVEL static value import of mysql2/promise. openBackend's dynamic import of ./mysql.js is an internal-module import that tsup's single-file bundle (splitting:false) hoists into the bundle body, and mysql2 (a package.json dependency) is auto-externalized by tsup, so the driver import landed as a static import at the top of dist/index.js and dist/agent/pi-native.js. ESM resolves static imports at module load regardless of use: every install without a node_modules tree (dsh profile bare copies, bili's own e2e rigs) crashed at startup with ERR_MODULE_NOT_FOUND before the proxy bound its port, and model traffic silently went direct, uncompressed (the 'real dsh headless profile lane' reds on #4003 ci:full). The driver now loads only inside openBackend("mysql", dsn): a literal dynamic import of the external specifier survives bundling as a real runtime import (same discipline as the jimp lazy load, #3516), and the resolved module is injected into MysqlBackend's constructor. Boots that select sqlite never resolve mysql2; a thin install that selects mysql fails at open time with a contextual error that the existing documented degrade paths already handle (shadow: warn + legacy-only; export: notice + sqlite fallback), instead of dying at process start.
|
(ai: zhipuai-lb/glm-5.3) 跟进:#4013 合并后复验(ab7e941)#4008 修复确认:重建 dist 后 gate:local 重跑(修复后 master,真模型):A 8/9 · B 6/6 · U 2/2 全绿(预先 A 唯一红的「S07 从折叠上下文召回」是真模型行为波动,非压缩缺陷:qwen 自己的 thinking 显示折叠摘要里 S07-QUIMERA 记录正确,但它选择用 search_context/decompress「验证」,一条 其余 P2(默认面收紧/更新链托管 lane 闸门/gate 脚本 --tag 修复)仍未动,master 上只有 #4013。 |
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复——本条是本 issue(#4003)自身的跟进复验线程,检索近期 7 天 issues/PR(按失败签名:wire-anthropic、ENOENT、gate S07、release-gate-local)无其他条目跟踪同一问题。 复验结论(在 #4013 合入后的 master @ 56a0f5a 上)
存量 P2 状态板(楼层 2 清单)
八问
收工判定:本轮可交付部分(复验确认 + 两处无决策依赖的修复)已完成,#4089/#4092 待 CI 与人工合并;状态板中两项拍板(#4030、#4031)和残余 P2 的归并方案等你回复后继续推进。 |
空锚点 PR:不含任何代码改动,只为在 master 头上打
ci:full跑全量回归 lane,作为 v0.1.202..master(394 commits,312 files,+35086/−1909)深度 review 的 CI 证据面。深度 review 进行中,结论将发布在本 PR。重点关注:回归 / 自动更新(src/update.ts,advisory)/ 缓存与 prefix-cache(CCR,snapshot-render)/ 压缩链路(kernel/)/ 协议接线(server+loop 适配器)。
本地侧同时进行:全局安装 + dsh 安装灰度 + gate:local 真模型回归。