Skip to content

[PR] test: re-pin the #7013/#7189 dsh extension e2e pins to the #7470 intercept contract - #7565

Merged
ranxianglei merged 2 commits into
masterfrom
fix/7013-7189-ext-pins
Nov 23, 2026
Merged

ranxianglei merged 2 commits into
masterfrom
fix/7013-7189-ext-pins

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

这是啥问题?

CI 上 tests/issue7013-egress-fuse-dsh-extensions.test.ts 的两条 e2e 一直红:上游"应收到含 8MiB dsh_session_log 的完整 body"断言失败(实际只收到 ~18KB)。

根本原因

这两条 e2e 是 #7488(4222c55,已合入)里写的,pin 的是当时的行为:dsh_session_log extension 随请求原样转发到上游。之后 #7470(240a2e5)合入,把 DSH 顶层 dsh_* client extension 拦在上游之外(wire-owns-wording,owner 裁定 #7168/#7439)——上游从此不再看到这个 extension。#7470 一合入,这两条 pin 就过期了。

本地 bisect 验证:4222c55(测试出生点,kernel 0.0.201)3/3 绿;312bf5d(#7470 合入点)起 2 条红,失败形态一致(上游只收到核心小 prompt)。与任何其它 PR 的 diff 无关。

怎么修的

只改测试断言,对齐 #7470 之后的新契约:

  • 小 prompt 照常转发(dsh_-盲计量器不受影响,原断言保留);
  • 上游 body 不再包含 dsh_session_log(bytes < 20KB + 不含该字段名)。

residual semantics 单元测试(非 dsh_ 字段仍计价)不受影响,原样绿。

能否合并?

能。纯测试 re-pin,零代码改动;本地 3/3 绿。

影响面 / 风险

无行为变化;只是让 CI 反映真实契约。修掉后,凡是合入当前 master 的 PR 不再被这两条过期 pin 拖累(#7517 当前 6 个红分片中的两条就是它)。

Refs #7013 #7189 #7168 #7470 #7488

…rcept contract

#7470 (240a2e5) landed after these pins were written in #7488 (4222c55):
DSH top-level dsh_* client extensions are now intercepted before egress,
so the upstream no longer sees them. The old assertions (extension rides
along, ~8 MiB body upstream) went red on master the moment #7470 merged.
Re-pin to the new contract: the small real prompt still forwards (the
dsh_-blind meter holds) AND the upstream body contains no
dsh_session_log. The residual-semantics unit test (non-dsh_ fields still
count) is unchanged and still green.
@ranxianglei ranxianglei changed the title test: re-pin the #7013/#7189 dsh extension e2e pins to the #7470 intercept contract [PR] test: re-pin the #7013/#7189 dsh extension e2e pins to the #7470 intercept contract Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: fix/7013-7189-ext-pins (05fdbcb)

Latest build — install this exact version

npm install -g billion-context@0.0.11549-pr.7565.4447778

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
05fdbcb billion-context@0.0.11549-pr.7565.4447778 build
70799b1 billion-context@0.0.11548-pr.7565.e004cc5 build

Download artifact

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

Install instructions are refreshed on each push.

The re-pin landed with two near-identical #7470 comment paragraphs in the
file header (no-duplication rule). Keep the more complete one (commit
ref, owner ruling, pin provenance); drop the redundant paraphrase.
Comment-only, no behavior change.
@ranxianglei ranxianglei added bug Something isn't working dsh p3 scope/ci labels Nov 23, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

查重:不重复。 检索 open PR(dsh_session_log / 该测试文件):其余在途 PR(#7016 #7092 #6860 #7119 #7175 #7275 #6840 #7117 #7196)全是原始计量修复那条线(dsh_-盲计量器 / doom gate 计价),没有第二个 PR 在 re-pin 这两条 e2e pin。本 PR 是该测试文件 re-pin 的唯一在途项。

核对过程(不是照抄 issue 结论,独立重做过):

顺手修(独立 commit,已 push 到 PR 分支): 文件头有两段几乎重复的 #7470 注释(违反 no-duplication 整洁标准)。保留信息更全的一段(commit ref / owner 裁定 / pin 出处),删掉冗余复述段。commit 05fdbcbb25d,纯注释 8 行删除,改后重跑仍 3/3 绿。

八问

  1. 是什么问题:CI 上 tests/issue7013-egress-fuse-dsh-extensions.test.ts 两条 e2e 一直红——「上游应收到含 8MiB dsh_session_log 的完整 body」断言失败(实际只收到 ~18KB 小 prompt)。
  2. 什么原因导致的:这两条 pin 是 [PR] test: pin the already-fixed 413 root causes (egress fuse dsh_ exclusion, ingest band default-off) at the relay level #7488 写的,pin 的是当时「extension 原样转发上游」的行为;[PR] fix: intercept DSH top-level dsh_* client extensions so they are not forwarded upstream (#7168 #7439) #7470(240a2e5)把契约改成「顶层 dsh_* 拦在上游之外」,pin 随即过期。是 pin 过期,不是产品回归。
  3. 影响范围与严重程度:产品行为零影响,纯测试断言漂移。波及面 = 凡合入当前 master 的 PR 都被这两条过期 pin 拖累([PR] fix: raise a fallback-sized codex session to bili's own model window (#7205) #7517 的 6 个红分片含此两条)。严重度 p3(CI 卫生)。
  4. 怎么修复的:只改测试断言对齐 [PR] fix: intercept DSH top-level dsh_* client extensions so they are not forwarded upstream (#7168 #7439) #7470 后新契约——小 prompt 照常转发(dsh_-盲计量器不受影响,200 断言保留);上游 body 不再含 dsh_session_log(bytes < 20KB + 不含该字段名)。零代码改动。
  5. 是否有回归问题:无。逐项过该路径承担的既有行为——(a) dsh_-盲计量器(estimateRawBodyTokens 跳过 root-level dsh_*)不受影响,residual semantics(非 dsh_ 字段仍计价)原样绿;(b) [PR] fix: intercept DSH top-level dsh_* client extensions so they are not forwarded upstream (#7168 #7439) #7470 拦截契约——新断言与 src/server/handle.ts:777 代码一致;(c) 小 prompt 转发——200 断言保留。无语义漂移、无 fail-fast 变吞错、无阈值/时序/输出格式变化。
  6. 是否破坏缓存:不涉及(纯测试,不碰缓存/重试/增量游标/去重键)。
  7. 是否改了设计方向:不涉及(无架构/边界/数据流转向,只是让测试反映 [PR] fix: intercept DSH top-level dsh_* client extensions so they are not forwarded upstream (#7168 #7439) #7470 既有契约)。
  8. 是否引入了新的配置:不涉及。

CI 状态(live 核过):push 后 CI 在新 head 05fdbcbb25d 上重跑,当前 0 失败(部分 lane 仍在跑);mergeable=true。全套件 verdict 以远程 CI 为准。

判定:可合。 纯测试 re-pin、零代码改动、新契约与 #7470 代码一致、本地 3/3 绿。已补标签 bug dsh scope/ci p3。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b)

CI 最终状态更正——我上一条回复里「当前 0 失败」是 CI 还在跑时的快照,现已跑完,更正如下(这条以实查为准):

① 本 PR 的 re-pin 本身在 CI 里是绿的。 我改的 tests/issue7013-egress-fuse-dsh-extensions.test.ts 落在 shard 5,shard 5 在 CI 里 success(test (windows-latest, 22, 5) => success)。加上本地 3/3 绿,对齐 #7470 契约这件事成立。

② 红的 3 个分片都不含我的文件,是 master 继承红,不是本 PR 引入的:

  • 红的是 shard 2(ubuntu,22,2 + ubuntu,24,2)和 shard 4(windows,22,4);
  • 我的文件在 shard 5,不在 shard 2/4——本 PR 只动了 shard 5 里那一个文件,逻辑上不可能影响 shard 2/4 里的其它文件;
  • master 本身当前 9/16 分片红(红风暴):其中 (windows,22,4) 在 master 那次跑也红 = 纯继承红;(ubuntu,24,2)/(ubuntu,22,2) 在 master 那次是绿、在我这是红 = flaky(同样不含我的文件)。

③ 「merge ci-fixes 解继承红」在这里是 no-op,解不掉。 实查:origin/ci-fixes(72474109765)是 origin/master(08783eed1c0)的祖先——ci-fixes 已完整包含在我分支里(rev-list mybranch..ci-fixes = 0 ahead),再 merge 就是 "Already up to date"。也就是说当前 master 的红不是「ci-fixes 还没合进来的旧修复」,而是 ci-fixes 尚未覆盖的新红(或 flaky),merge ci-fixes 清不掉。

结论:re-pin 本身正确且已验证(shard 5 绿 + 本地 3/3),这个改动可以合;PR 整体 CI 要等 master 红风暴退潮才全绿。这 3 个红分片与本 PR 无关——按 CI 协调纪律,不另开 issue、不在此长时间排查继承红。合不合(带继承红合 / 等 master 退潮再合)由你定。

标签已打齐:bug / dsh / scope/ci / p3。

ranxianglei pushed a commit to sx4im/billion-context that referenced this pull request Nov 23, 2026
…current; CI reds are inherited master-level test-pin failures (ranxianglei#5844 via ranxianglei#7512, ranxianglei#7013/ranxianglei#7189 via ranxianglei#7470) with owner fixes in flight as ranxianglei#7566/ranxianglei#7565

[ework:ci-held]
ranxianglei pushed a commit to sx4im/billion-context that referenced this pull request Nov 23, 2026
…l test-pin failures

Verified on head ae3ea93 (master 15f06c6 already merged in):
- win22-5 / ubu24-2 / ubu22-2: ranxianglei#5844 A-D (sessions reattach, ranxianglei#7512) — owner revert ranxianglei#7566 in flight
- win22-2 / ubu24-2 / ubu22-2: e2e ranxianglei#7013/ranxianglei#7189 (egress-fuse pins, ranxianglei#7470) — owner re-pin ranxianglei#7565 in flight
Failing test files byte-identical to master; PR touches none of them.
Branch cannot go green until ranxianglei#7565/ranxianglei#7566 land and are re-merged.
ranxianglei added a commit that referenced this pull request Nov 23, 2026
…dsh extension e2e pins to the #7470 intercept semantics (master-side fix for the red family inherited via 08783ee; lands on master separately)
@ranxianglei
ranxianglei merged commit acab3e8 into master Nov 23, 2026
85 of 126 checks passed
ranxianglei pushed a commit that referenced this pull request Nov 23, 2026
… re-pin (#7565) fix the inherited red test shards
ranxianglei pushed a commit to mariopasquali/billion-context that referenced this pull request Nov 23, 2026
…ranxianglei#7566 revert + ranxianglei#7565 re-pin + ranxianglei#7560 compress-format

Resolves the cli.ts dispatch conflict (keep master's laneKey removal from the ranxianglei#7512 revert + this PR's storage migrate branch). Master also advanced with the ranxianglei#7560 kernel compress-format change (kernel 0.0.206) and golden re-regens — no overlap with this PR's 21 storage files.
ranxianglei pushed a commit to mariopasquali/billion-context that referenced this pull request Nov 23, 2026
…ranxianglei#6785 egress-plane era (slim ccr envelope) + ranxianglei#7564 trust-stamped-id GA retirement + ranxianglei#7566 revert + ranxianglei#7565 dsh re-pin + ranxianglei#7553 self-contained blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dsh p3 scope/ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant