Skip to content

[PR] fix(ci): flush the v2 envelope synchronously in the #3818 drift test - #4097

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-21_full-flip-deterministic
Oct 21, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-21_full-flip-deterministic

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

(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 + 固定 120ms settle(),慢盘上没落盘,loadSync 读回 v1。断言赌的是 FS 延迟。

改动(1 文件 2 行):断言前 store.flushSync(session) 同步提交 v2。本地 3 连跑 8/8 绿;tsc 干净。真正的证明是本 PR 的 win24 分片与后续 ci:full 跑。

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).
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-21_full-flip-deterministic (8f2332f)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4882-pr.4097.7ea9db9

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr4097.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title fix(ci): flush the v2 envelope synchronously in the #3818 drift test [PR] fix(ci): flush the v2 envelope synchronously in the #3818 drift test Oct 21, 2026
@ranxianglei
ranxianglei merged commit e1bf1b5 into master Oct 21, 2026
42 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.702-master.e1bf1b5 (rolling master tag).

npm install -g billion-context@0.0.702-master.e1bf1b5  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant