determinism: the stream-lost-after-note, completed history recorded different traces once (commit 9d71756)

Ouverte
#100 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
30/100
Type d'issue
Bug
Clarté
À clarifier
Activité
Active
Stack technique
javascript, typescript
Domaine
testing

Piste de recherche

Start from the CLI run r57m-det and the unwritableLog trace emitted for this history; reproduce the pair of runs and diff the full traces, since the reported 2,000-character prefix is identical and #81 truncates what distinguishes them. Read #81 and #84 first, then check whether wall-clock heartbeats enter the CLI output path. Done looks like a full failing/passing trace pair showing the differing field, or a deterministic reproduction.

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

Description

Tags: determinism, oracle-gaps, #57 (feat/gap-cli-stream-log).

Commit: 9d71756 (pool run r57m-det, two runs of one history, the same unit as determinism: constructed history: a stream log lost after its note, then completed). Run once; the same unit passed at 7a59640 and 92d7ab0.

Observed: the two runs of the history recorded different unwritableLog traces. The first 2,000 characters of each are identical (the difference is later, which #81 hides):

First run (the 2,000-character prefix, 1986 characters):

unwritableLog {"ending":"complete","exit":0,"signal":null,"stdout":"oracle-gaps: note log <out>/stream.log\noracle-gaps: baseline pass tests/a.test.ts: 1 test\noracle-gaps: baseline pass tests/b.test.ts: 0 tests, 1 skipped\noracle-gaps: baseline pass tests/c.test.ts (ordinary): 0 tests, 1 skipped\noracle-gaps: baseline all 2 oracle files pass\noracle-gaps: summary 395076321439: 44 mutants, 1 killed, 18 gaps, 11 unowned (warnings). 11 source files, 2 oracle files, 1 ordinary test files, 0 authored mutants, seed 1, pool threads.\noracle-gaps: legend unreached: Add an owner test that runs line N and asserts on its result.\noracle-gaps: function fn e0 (..gen/extra.ts)\noracle-gaps: gap unreached L2 ..gen/extra.ts:M1 ` out.push('s19'); ` → ` ; `\noracle-gaps: function fn help (src/es-function.ts)\noracle-gaps: gap unreached L2 es-function.ts:M1 ` out.push('s3'); ` → ` ; `\noracle-gaps: function fn default (src/es-function.ts)\noracle-gaps: gap unreached L5 es-function.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/es-arrow.ts)\noracle-gaps: gap unreached L2 es-arrow.ts:M1 ` out.push('s5'); ` → ` ; `\noracle-gaps: function fn default (src/es-arrow.ts)\noracle-gaps: gap unreached L5 es-arrow.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/es-paren.ts)\noracle-gaps: gap unreached L2 es-paren.ts:M1 ` out.push('s7'); ` → ` ; `\noracle-gaps: function fn default (src/es-paren.ts)\noracle-gaps: gap unreached L5 es-paren.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/cjs.js)\noracle-gaps: gap unreached L2 cjs.js:M1 ` out.push('s9'); ` → ` ; `\noracle-gaps: function fn default (src/cjs.js)\noracle-gaps: gap unreached L5 cjs.js:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/cjs-chained.js)\noracle-gaps: gap unreached L2 cjs-chained.js:M1 ` out.push('s11'); ` → ` ; `\noracle-gaps: function fn default (src/cjs-chained.js)\noracle-gaps: gap unreached L5 cjs-chained.js:M2 ` help(out); ` → ` ; `\noracle-gaps: function f

Second run (prefix, 1986 characters, identical up to the truncation):

unwritableLog {"ending":"complete","exit":0,"signal":null,"stdout":"oracle-gaps: note log <out>/stream.log\noracle-gaps: baseline pass tests/a.test.ts: 1 test\noracle-gaps: baseline pass tests/b.test.ts: 0 tests, 1 skipped\noracle-gaps: baseline pass tests/c.test.ts (ordinary): 0 tests, 1 skipped\noracle-gaps: baseline all 2 oracle files pass\noracle-gaps: summary 395076321439: 44 mutants, 1 killed, 18 gaps, 11 unowned (warnings). 11 source files, 2 oracle files, 1 ordinary test files, 0 authored mutants, seed 1, pool threads.\noracle-gaps: legend unreached: Add an owner test that runs line N and asserts on its result.\noracle-gaps: function fn e0 (..gen/extra.ts)\noracle-gaps: gap unreached L2 ..gen/extra.ts:M1 ` out.push('s19'); ` → ` ; `\noracle-gaps: function fn help (src/es-function.ts)\noracle-gaps: gap unreached L2 es-function.ts:M1 ` out.push('s3'); ` → ` ; `\noracle-gaps: function fn default (src/es-function.ts)\noracle-gaps: gap unreached L5 es-function.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/es-arrow.ts)\noracle-gaps: gap unreached L2 es-arrow.ts:M1 ` out.push('s5'); ` → ` ; `\noracle-gaps: function fn default (src/es-arrow.ts)\noracle-gaps: gap unreached L5 es-arrow.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/es-paren.ts)\noracle-gaps: gap unreached L2 es-paren.ts:M1 ` out.push('s7'); ` → ` ; `\noracle-gaps: function fn default (src/es-paren.ts)\noracle-gaps: gap unreached L5 es-paren.ts:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/cjs.js)\noracle-gaps: gap unreached L2 cjs.js:M1 ` out.push('s9'); ` → ` ; `\noracle-gaps: function fn default (src/cjs.js)\noracle-gaps: gap unreached L5 cjs.js:M2 ` help(out); ` → ` ; `\noracle-gaps: function fn help (src/cjs-chained.js)\noracle-gaps: gap unreached L2 cjs-chained.js:M1 ` out.push('s11'); ` → ` ; `\noracle-gaps: function fn default (src/cjs-chained.js)\noracle-gaps: gap unreached L5 cjs-chained.js:M2 ` help(out); ` → ` ; `\noracle-gaps: function f

Suspected cause: wall-clock timing in the CLI's output (#84's class). The difference cannot be seen until #81 is fixed. The full traces of a passing/failing pair would settle it; the run's log is not kept.

Links: #81 (the 2,000-character truncation that hides the difference), #84 (wall-clock heartbeats, a suspected cause).

Not blocking: this was one observed flake; the unit passed in two later runs. Filed under P4 (an observed counterexample is filed, not kept as a watch item).

Langage dominant
JavaScript
Étoiles
5
Forks
1
Merge moyen
8 h 31 min
PR mergées (30 j)
60

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

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 TanStack/oracles

Toutes les issues de TanStack/oracles

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

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