Mocked e2e DeepSeek V4 probe asserts on index 0 of a shared request capture buffer

オープン 初心者向け
#2,493 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
testing

調査の方向性

apps/vscode-e2e/src/suite/providers/deepseek-v4.test.tsから始めます。290〜291行目付近のリクエスト取得フィルター、170行目付近のスイート単位のバッファリセット、result.requests[0]を読み取る360/401行目のアサーションを確認します。兄弟ファイルのパターン、xai.test.tsの415行目(probeTagの一致)とopenrouter.test.tsの155行目(取得したすべてのリクエストを確認)を比較します。reasoning無効時のアサーションがプローブのタグ付きリクエストに限定され、共有バッファにほかの何が書き込まれても通るようになれば完了です。このファイルのモックe2eスイートを実行し、リクエストダンプを確認して検証します。

索引モデルが issue の本文から書いたものです。

説明

Observed while pushing commit eb764a92e1cd61b9a78a3ee95c69ea189a96b750 to the vps2/f6-e2e-viewstate branch (pull request 1565), where the required context e2e-mock came back completed with failure. The failing test is not in that pull request's diff; this issue is filed against the probe, not against that pull request.

The failure
Failing test: deepseek-v4-pro should complete a tool-using task with reasoning disabled, in apps/vscode-e2e/src/suite/providers/deepseek-v4.test.ts. Job e2e-mock, step Run mocked E2E tests, run 44242134805, job 134592318560, server Date 2026-11-18 05:17:57 UTC. The suite reported 88 passing, 1 failing.
Assertion text at line 401: Reasoning-disabled probe should send thinking=disabled.
The test printed its own request dump. It recorded four entries:
request[0]: model deepseek-v4-pro, thinkingType enabled, reasoningEffort high, no probeTag, last user message beginning You are Zoo, a knowledgeable technical assistant focused on answering questions...
request[1] to request[3]: model deepseek-v4-pro, thinkingType disabled, no reasoning_effort field, probeTag deepseek-v4-e2e:deepseek-v4-pro:reasoning-off, last user messages being the code-mode system prompt, then environment details, then the did-not-use-a-tool reminder.

What the dump supports
The probe's own requests - the three carrying its probeTag - all sent thinking disabled with no reasoning_effort, which is the behaviour the assertion is about. The entry the assertion looked at is not one of them. Line 360 takes result.requests[0]; line 290-291 builds result.requests with the filter request.model === modelId and (!request.probeTag or request.probeTag === probeTag), so untagged requests on the same model that land in the capture window are admitted into the asserted sequence; line 170 clears the suite-level buffer when a probe starts, so anything written before the probe's first turn becomes index 0. request[0] above carries no probeTag, a different system prompt, and reasoning enabled with effort high, so it is a different kind of call than the probe's turn.
That makes the outcome depend on what else wrote into the shared buffer first, which is what makes this flaky rather than broken: the provider behaviour under test recorded correctly in the failing run. Two sibling tests in the same directory already avoid this shape - xai.test.ts line 415 filters on probeTag equality, and openrouter.test.ts line 155 comments that it checks all captured requests rather than requests[0]. The log alone does not identify which component issued the untagged request, and I am not claiming that.

Scope of the observation
e2e-mock is completed with success on five earlier heads of the same chain - 33ca1dd1c7, 2bc72bbe02, 940b9090dc, 3bd957e84c and 1f98df4e3f - and the pull request's 45 changed files include none matching deepseek or reasoning and do not include this test file. The only delta between the green head and the red one is a vitest unit spec, which the mocked e2e job does not execute.
Of the last 100 runs of .github/workflows/e2e.yml, two others ended in failure on the same job and step: run 44210538177 on coderabbit/secure-mock-fixture-interface (head fa38f64b5c) and run 44128485154 on feat/standard-compute-provider (head 68b987c1d2). I read both logs: neither contains this test or this assertion, so they failed on other tests. What that supports is that the job is flaky. What is not established is whether this particular probe has a known failure mode.

Tooling note
A rerun needs a human: POST actions/runs/44242134805/rerun-failed-jobs answered 403 with the automation token used for this lane, while GET actions/jobs/134592318560/logs works normally and GET check-runs/134592318560/logs answers 404. A maintainer rerunning the job from the UI is the cheap path.
No change is proposed here and none was made. The file belongs to the reasoning-effort work, and a filler commit elsewhere would spend a review pass to buy nothing.

主要言語
TypeScript
スター
2k
フォーク
301
平均マージ
3日 14時間
マージ済み PR(30日)
103

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Zoo-Code-Org/Zoo-Code のほかの issue

Zoo-Code-Org/Zoo-Code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。