Repository navigation
[PR] gate: isolate npm metadata cache per run (Lane U stale-latest false red) - #4114
Merged
Merged
Conversation
…se red) The dsh copy's dist-tags read went through the shared ~/.npm/_cacache: a previous round's packument (latest=<old candidate>) kept being served for >60s after this round published the new candidate — long enough to fail the up-to-date assertion inside the 240s poll window. Per-run NPM_CONFIG_CACHE under baseDir makes every registry read fresh.
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4904-pr.4114.af8bb3dThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4114.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.714-master.5f3b1e6 # 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)
什么坏了
第二轮评审 gate(基 5c2f24a):Lane U 1/2——「registry latest read」断言读到旧值
latest=0.1.203-master-review.1(本轮发布的是 .2),240s 轮询窗内没等到新值。根因
dsh 副本的 dist-tags 读取走了跨轮共享的
~/.npm/_cacache:上一轮 fetch 的 packument 缓存(<5min TTL)持续供旧 latest(实测发布后 >60s 仍是 .1)。产品行为全对(managed 跳过原地自更 ✅、读 latest 并比较 ✅;发布后直查 verdaccio latest 已是 .2),纯 gate 环境污染。修法
childEnv 增加
NPM_CONFIG_CACHE: path.join(baseDir, "npm-cache")——每轮独立 npm 缓存,注册表读取必新鲜。与已有的 XDG_*/DSH_HOME 隔离同款思路,5 行。验证
node --check 过;下一轮 gate 实测(评审后跑 Lane U 即验)。