You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: windows-latest node-22 shard 2 intermittently red on timing-sensitive e2e tests under load (rotating flakes: issue760, #4079, storage-full-flip #3818) #4161
tests/issue760-percall-conversation.test.ts not ok 1944 + 1945
waitFor 'timeout waiting for initialize + tools/list responses',~5030ms
~12:1x
同上(rerun-failed-jobs 第 1 次)
同上 stream 1 / stream 2
tests/issue4079-egress-window-fuse.test.ts not ok 1912/1913;stream 2 另加 tests/storage-full-flip.test.ts not ok 3207(#3818 ⑨)
cancelledByParent 'Promise resolution is still pending but the event loop has already resolved';AssertionError 'the safety valve lands a JSON envelope even under writerOff' duration 4919ms
run 39593321008 / job 119231019875 stream 1 / stream 2
stream 1: tests/issue4079-egress-window-fuse.test.ts not ok 1912/1913;stream 2: 1912/1913 再犯 + not ok 1497(#2317 route-miss log)+ not ok 2457–2460(#2399/#2469 pi/omp lane adoption 全家)
Activity
ranxianglei commentedon Oct 21, 2026
(ai: vllm-qwen/qwen3.8-27b)
#4160(本次红灯的自动实例,已按重复关闭到本 issue)取证补三个独立数据点:
ubuntu-latest, 22, 2(完全相同的测试集、相同序号 1903)ok,windows-latest, 22, 2not ok —— 同代码同测试仅 Windows 红,平台特异性坐实。fail 0(3715 pass / 2 cancelled),进程内 hang(Flaky Windows CI: issue1993-preflight-400 suite cancelled by early event-loop drain | Windows CI 偶发假红:preflight-400 测试进程提前退出致 5 例取消 #3665 drain 签名),同 runner 有界重试仍复现 → 那台 runner 本身不健康(日志里 spawn 的子进程 60s 绑不上端口)。同一时间窗内「零失败 hang」与「时序断言失败」并存,进一步支持环境因素判断。决策项我的倾向:选项 1,做成自适应轮询——受害测试从固定 sleep/waitFor 预算改成「轮询到满足为止 + 宽松 deadline」(绿时零额外开销,负载尖峰被 deadline 吸收),从源头消掉这类 flake;选项 2(把具体断言形状加进重试白名单)有掩盖风险——save 路径真回归长得和这个 flake 一模一样,脚本当初就是为这个不重试这类形状的;测试自身确定化之后重试需求自然消失。最终拍板在你。
ranxianglei commentedon Oct 22, 2026
(ai: vllm-qwen/qwen3.8-27b)
新增证据行(#4152 分支 head d23b88b 的 CI,run 39818643648,job 119963987550
test (windows-latest, 22, 1),2026-10-22T17:14Z):同一分片出现新受害形态——Windows 文件锁 EBUSY(与既有「计时等待超时」同属环境性一族,症状相同:windows-latest 分片间歇红、受害者轮换):not ok 3130 - storage engine: corrupt index.db degrades to legacy-only instead of bricking construction (#2771)EBUSY: resource busy or locked, unlink 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\bili-engproof-corrupt-*\\index.db'not ok 3600 - #3040 corrupt index.db (guard #2771): degraded with the open-failure reasonEBUSY: resource busy or locked, unlink '...\\bili-storage-banner-*\\sessions\\index.db'该分片 3895 测试仅这 2 个失败;两个都是临时目录里 SQLite 文件删除时撞上 Windows 文件锁(与 c0c0954/#3769 修过的「Windows EBUSY index.db close」同类)。与本 PR 改动无关(web UI + update-actions,不触碰存储引擎损坏处理路径)。
建议方向补充一条:对这类 EBUSY-unlink 形态,可在 run-ci-tests.mjs 的 recoverable-shape 分类里加一条(错误串含 EBUSY + unlink + 临时路径),让它走既有的有界重试,而不是直接判死。
ranxianglei commentedon Oct 22, 2026
(ai: vllm-qwen/qwen3.8-27b)
查重:本条新增的 EBUSY 证据(windows-latest 22 分片 2 例
EBUSY … unlink … index.db)与 #4338 重复——同症状(corrupt-index.db 测试清理时删不掉临时库)、同机制族(存储引擎打开/写路径的持久句柄泄漏,不是 AV 瞬时锁),且 #4338 立项在先(17:14Z,比本条早 6 分钟)、机制分析更完整。按先来后到:保留 #4338,验证数据已补到该 issue 下,不另开新单。本 issue 的计时 flake 面(issue760 / #4079 / #3818)不受此判定影响,仍归本 issue。标签:bug + scope/ci + p2(间歇红、rerun 可绕行;EBUSY 面已转 #4338 跟踪)。
对这条证据的独立核实(拉了 run 39818643648 / job 119963987550 全量日志):
tests/tmp-rm.ts(rmrf 重试阶梯:defaultRm → rimrafSync → unlinkSync);duration_ms ≈ 9909ms,恰好 ≈ 重试阶梯总时长(~9.58s)+ 测试体耗时——锁在整个重试预算期间持续存在,不是重试能等走的瞬时形态;[engine: node:sqlite/builtin],sidecar 打开失败("file is not a database")后按 [Bug][storage] corrupt index.db bricks SessionStore construction in shadow/full mode (violates the sidecar never-breaks-legacy policy) #2771 契约降级 legacy-only,与 Windows CI lane stuck red: corrupt-index.db tests cannot delete their temp dirs (EBUSY) — blocks every PR merge #4338 的机制链一致。对建议方向(EBUSY+unlink+临时路径加入 recoverable-shape 重试白名单)的判断:建议暂缓,等根因钉死后再议。理由:
计时 flake 面(issue760 / #4079 / #3818):仍在等你在选项 1/2/3 里拍板,未动手。我的倾向同意一楼:选项 1(受害者测试自适应轮询加固)——不动重试分类器、不新增掩盖面;选项 2 与本条 EBUSY 白名单是同一个「掩盖风险」论证的实例。
八问:
收工判定:本轮完成查重、核实、打标;EBUSY 面并入 #4338(数据已补),计时面等你在 1/2/3 拍板后即开修。
Merge pull request #4379 from ranxianglei/2026-10-23_ci-timing-shapes
fix(ci): give timing-flake shapes one bounded retry and widen the two…
test(ci): align issue411 waitFor with the #4161 timing-window idiom (PR
Merge upstream/master (1f311dd): adopt ranxianglei#5986 degenerate wh…