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

Đang mở Phù hợp với người mới
#2,493 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu tại apps/vscode-e2e/src/suite/providers/deepseek-v4.test.ts: đọc bộ lọc ghi nhận request quanh dòng 290-291, thao tác đặt lại bộ đệm ở cấp suite quanh dòng 170 và assertion ở dòng 360/401 đọc result.requests[0]. So sánh các mẫu ở những tệp kiểm thử cùng nhóm: xai.test.ts, dòng 415 (probeTag bằng nhau), và openrouter.test.ts, dòng 155 (kiểm tra mọi request đã ghi nhận). Công việc hoàn tất khi assertion cho reasoning bị tắt chỉ áp dụng cho các request được gắn thẻ của probe, nên vẫn đạt bất kể những gì khác ghi vào bộ đệm dùng chung; hãy xác minh bằng cách chạy bộ e2e giả lập cho tệp này và kiểm tra bản dump request.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
2k
Fork
301
Merge trung bình
3 ngày 14 giờ
Pull request đã merge (30 ngày)
103

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Zoo-Code-Org/Zoo-Code

Tất cả issue của Zoo-Code-Org/Zoo-Code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.