Repository navigation
[PR] fix(ci): flush the v2 envelope synchronously in the #3818 drift test - #4097
Merged
Merged
Conversation
The drifted-session assertion raced a fixed 120ms settle against the debounced envelope write; the win/node24 runner occasionally loaded the stale v1 envelope (served 2, expected 99). flushSync() commits the envelope before loadSync, making the test order-independent of FS latency (same determinism lesson as the plugin-fork cold restores).
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4882-pr.4097.7ea9db9This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4097.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.702-master.e1bf1b5 # this exact build
npm install -g billion-context@master # always the newest merged build
|
This was referenced Oct 21, 2026
Closed
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 #4096
#4095(ci:full 探针)在 windows-latest/node24/shard2 偶发红:
tests/storage-full-flip.test.ts:230期望 99 实得 2——v2 envelope 只scheduleSave+ 固定 120mssettle(),慢盘上没落盘,loadSync 读回 v1。断言赌的是 FS 延迟。改动(1 文件 2 行):断言前
store.flushSync(session)同步提交 v2。本地 3 连跑 8/8 绿;tsc 干净。真正的证明是本 PR 的 win24 分片与后续 ci:full 跑。