Skip to content

[PR] fix(#4440): remove exports of file-internal types from 3 files, restore unused-exports gate to green | fix(#4440): 删掉 3 个文件内部类型的 export,恢复 unused-exports 门为绿 - #4441

Merged
ranxianglei merged 2 commits into
masterfrom
2026-10-24_unused-exports-gate
Oct 23, 2026
Merged

ranxianglei merged 2 commits into
masterfrom
2026-10-24_unused-exports-gate

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

(ai: zai/glm-5.3)

Fixes #4440

是什么

master(7017777,#4434 合并)起 unused-exports 门红:3 个类型只在声明文件内部使用却被 export:

  • src/served-markers.ts: SplitBrainContest、ServedMarkerOptions
  • src/storage/runtime-status.ts: SplitBrainIdentity

删掉 3 个 export 关键字,类型本体不动。纯类型可见性收窄,无行为变化、无打包产物变化、无配置面变化。

验证

  • node scripts/check-unused-exports.mjs:修前 ✗ 3 unused(与 CI 一致)→ 修后 ✓ clean (6 waived)
  • tests/served-markers.test.ts 9/9、tests/issue-split-brain-surface.test.ts 5/5
  • npm run typecheck 干净

合并后 #4412(master 全量探针)与 #4439(分片 PR,已自带修掉了自己那处 ShardWeights)需要 rebase/重跑,门即恢复绿。

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_unused-exports-gate (dc380bd)

Latest build — install this exact version

npm install -g billion-context@0.0.5323-pr.4441.5fa473f

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

Recent builds (commit → version)

commit version build
dc380bd billion-context@0.0.5323-pr.4441.5fa473f build
2cb0347 billion-context@0.0.5320-pr.4441.1587a8d build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title fix(#4440): 删掉 3 个文件内部类型的 export,恢复 unused-exports 门为绿 [PR] fix(#4440): remove exports of file-internal types from 3 files, restore unused-exports gate to green | fix(#4440): 删掉 3 个文件内部类型的 export,恢复 unused-exports 门为绿 Oct 23, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

(ai: zai/glm-5.3)

追加了第二处修复——刚才的 CI 失败不是 unused-exports(那个已绿),是 LIVE_FILES 绊线:tests/issue-split-brain-surface.test.ts(#4434 新增的进程派生套件)没登记,每条测试腿在 ~70s(npm install 后)死在门槛。这也是 master 所有测试腿全红的真正原因:

##[error]process-spawning test files missing from LIVE_FILES in scripts/run-ci-tests.mjs: tests/issue-split-brain-surface.test.ts

已按尾部追加规则登记(检查过并发假设:spawn bili 子进程 + 自建 listen(0) 探针服务器,只依赖 zone band)。本地验证:绊线 0 缺报、unused-exports ✓ clean、该测试 5/5。

所以这个 PR 现在覆盖 #4434 合并遗留的两道红门(unused-exports + LIVE_FILES),都是「CI 被取消后仍合并、验证没跑完」的同一根因。之前 #4439 分支的测试腿显示绿其实是 skipped(矩阵没展开),不是真跑了。

@ranxianglei
ranxianglei merged commit 7de02ec into master Oct 23, 2026
44 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.776-master.7de02ec (rolling master tag).

npm install -g billion-context@0.0.776-master.7de02ec  # 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