determinism violation prints only a 2,000-character prefix, hiding the first difference
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 64/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- testing
Rechercherichtung
Durchsuche das oracle-gaps-Harness nach dem Code, der die Verstoßmeldung oracle-gaps.report formatiert, und nach der Kürzung auf 2.000 Zeichen bei jedem aufgezeichneten Text. Reproduziere mit vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "an edit that changed the cold result after a hang replaced the only context", dann nutze dieses Log, um zu bestätigen, dass das gedruckte Präfix die Abweichung verbirgt. Fertig bedeutet, dass die Meldung den ersten abweichenden Offset in jedem Text mit ungefähr 200 Zeichen Kontext meldet, plus die Art jeder Beobachtung und die beiden Längen, wobei vor dem Offset nichts abgeschnitten wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
When two runs of a constructed history record different observations, the determinism violation prints the
observation's text only as a prefix. The first 2,000 characters are identical, and the output stops there, so the
difference is not shown. A diagnosis then needs a local patch to see where the two traces diverge.
The violation should print the first differing offset in each recorded text, with context on both sides, and the
observation's kinds and lengths, so the failure can be read without a patch.
Example
tests/gap-report-oracle.property.test.mjs, test "constructed history: an edit that changed the cold result after a
hang replaced the only context" (run with -t), at commit 11105c5 on fix/gap-cli-retention (#61):
Error: oracle-gaps.report: two runs of "constructed history: an edit that changed the cold result after a hang replaced
the only context" recorded different traces at observation 0 ("cli").
First run: cli {"lead":[...
Second run: cli {"lead":[...
Both texts are the same for 1,996 characters, and the framework cuts them at 2,000. The difference is not visible.
Log: /tmp/oom/h2h-control.log (on the reporting machine). Replay: vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "an edit that changed the cold result after a hang replaced the only context".
Why it matters
The determinism check is how a timing dependency is caught. A check that cannot say what differed cannot tell whether
the difference is a wall-clock cut, a reordering, or a different gap, so the failure cannot be classified.
Expected
- The first differing offset in each text, with about 200 characters of context on each side.
- The observation's kind and the lengths of the two texts.
- Nothing cut before the offset.
Limits
This is a diagnostic issue. It doesn't say whether the underlying nondeterminism is a bug (the wall-clock cut issue may
be the cause, tracked separately).
- Vorherrschende Sprache
- JavaScript
- Sterne
- 5
- Forks
- 1
- Ø Merge
- 8 Std. 31 Min.
- Gemergte PRs (30 T.)
- 60
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TanStack/oracles
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 46/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TanStack/oracles
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Edit: Telemante [YT]Offenchannels:edit check:passed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
swc-project/swc-next-issues#490 ·
-
feedback simulation workshop
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
githubnext/gh-aw-workshop#5826 ·
Maintainer antworten meist innerhalb von 1 Tag