Files
ipass__ipass/tests/llm
admin f179e6e987 fix(llm): is_probe 跳过 mark_exhausted/bump,只留 mark_health (1.1.2)
线上事故回归:面板「测试」按钮走 /_upstream_test 真实转发,账号由 pick 随机
选;上游一旦回耗尽形态(状态码命中 upe 或 body 命中 marker),旧逻辑会把
「管理员手抖点测试」当成「账号额度耗尽」冷却一把好钥匙,恢复要走完整退避/
探测。13:50 一次面板测试轮把 minimax 三把好 key 全部点进冷却,整池不可用。

* handlers.rs LlmHealthHandler:is_probe URI 前缀请求**不写冷却/耗尽**;只
  跑 mark_health(健康展示仍需)。2xx clear_cool 保留——测试成功 = 该账号此刻
  健康,是正向证据。bump_acct_load 保留(测试也是真转发,统计有用)。
* tests/llm/e2e.sh:新增「管理台测试按钮不得写路由状态」剧本,6 条断言;
  fixture probetest 单账号 Bearer probe-dead + exhaust_status=[401] +
  markers 一并命中——status 通道 + body 通道都能触发,真实分流修复前 cool
  必须为 true,修复后为 false;真实流量同时仍正常冷却(不能为避 bug 把真标记
  也关掉)。
* tests/llm/fixtures/llm-upstreams.json:加 probetest 槽位(同形 401+marker)。

回归:bash tests/run.sh llm → 270/0 全绿(原 262 + 8)。
2026-09-18 12:10:33 +08:00
..