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

Abierto Apto para principiantes
#2,493 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing

Línea de trabajo

Empieza en apps/vscode-e2e/src/suite/providers/deepseek-v4.test.ts: lee el filtro de captura de solicitudes alrededor de las líneas 290-291, el reinicio del búfer a nivel de suite alrededor de la línea 170 y la aserción de la línea 360/401 que lee result.requests[0]. Compara los patrones de los archivos de prueba hermanos: xai.test.ts, línea 415 (igualdad de probeTag), y openrouter.test.ts, línea 155 (comprobar todas las solicitudes capturadas). El trabajo está terminado cuando la aserción de razonamiento desactivado se limita a las solicitudes etiquetadas con la sonda, de modo que pase independientemente de lo que más escriba en el búfer compartido; verifícalo ejecutando la suite e2e simulada para este archivo y comprobando el volcado de solicitudes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
301
Merge medio
3 d 14 h
PR fusionados (30 d)
103

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Zoo-Code-Org/Zoo-Code

Todos los issues de Zoo-Code-Org/Zoo-Code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.