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

Ouverte Adaptée aux débutants
#2,493 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
68/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript
Domaine
testing

Piste de recherche

Commence dans apps/vscode-e2e/src/suite/providers/deepseek-v4.test.ts : lis le filtre de capture des requêtes autour des lignes 290-291, la réinitialisation du tampon au niveau de la suite autour de la ligne 170 et l’assertion à la ligne 360/401 qui lit result.requests[0]. Compare les modèles des fichiers de test frères : xai.test.ts, ligne 415 (égalité de probeTag), et openrouter.test.ts, ligne 155 (vérifier toutes les requêtes capturées). Le travail est terminé lorsque l’assertion de raisonnement désactivé est limitée aux requêtes portant l’étiquette de la sonde, afin qu’elle réussisse indépendamment de tout autre élément écrit dans le tampon partagé ; vérifie-le en exécutant la suite e2e simulée pour ce fichier et en contrôlant le dump des requêtes.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
2k
Forks
301
Merge moyen
3 j 14 h
PR mergées (30 j)
103

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Zoo-Code-Org/Zoo-Code

Toutes les issues de Zoo-Code-Org/Zoo-Code

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.