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

オープン
#100 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript, typescript
領域
testing

調査の方向性

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.

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

説明

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).

主要言語
JavaScript
スター
5
フォーク
1
平均マージ
8時間 31分
マージ済み PR(30日)
60

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

TanStack/oracles のほかの issue

TanStack/oracles の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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