Repository navigation
[PR] fix: bare-id loadSync hydrates pooled envelopes without the unified index (master CI flake, #4014) - #4015
Merged
Conversation
…nc backends (#3769 flake)
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4795-pr.4015.25ecec9This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4015.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Contributor
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.690-master.66a719f # this exact build
npm install -g billion-context@master # always the newest merged build
|
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(ai: zhipuai-lb/glm-5.3)
Fixes #4014
问题
master CI 4/6 test shard 红, 同一条 flake:
record hydrates before the upgrade turn(tests/issue3769-upgrade-compat.test.ts:179)。根因见 #4014:pooled 路径(openai/127.0.0.1_<hash>.json)的 bare-idloadSync只有 sqlite index 一条读路径, walk 回退只对 async 后端播种(:1328this.shadow?.isAsyncBackend), sqlite 上一 miss 就返回 null。改动
src/persist.tsloadEnvelope:walk 播种条件this.shadow?.isAsyncBackend→this.shadow— 任何 unified 模式一次性播种diskFiles(成本 = 每 store 一次目录 walk, 与 async 后端既有行为一致)。tests/issue3769-pooled-bare-load.test.ts(新回归):真实 proxy 一回合 → flushSync → 删 index.db/-wal/-shm 模拟 index miss → fresh store 的 bare-idloadSync必须从 pooled envelope hydrate(修复前红:靠 index 才能找到, 修复后绿:walk 兜底)。teardown 用closeQuietly()。验证
备注