daemon inputs: after a hang replaced the only context, the next check through the daemon reuses nothing (#133)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- testing
Rechercherichtung
Read the README's reuse contract, R13, and the daemon and warm-read logic in check.mjs around warmReads and globalKey. Compare the fixed-seed e2e unit's reach on #133 with main, then add an oracle law for reuse of the unedited file's runs after a hang replaces the only context. The issue leaves the cause unconfirmed and describes alternative fixes; done means the law captures the regression and the correct check still matches the cold run.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
On #133 (since at least 9bb7c74a, and at 5fc4b9a4), the fixed-seed e2e unit a check through the daemon that works past the bound reuses no unit in its test-edit check through the daemon. On main (97a4e7a8 and 30928ee8), the same check reuses file b's runs. It reaches incremental check reused evidence and incremental check reused some evidence and recomputed some.
This is a loss of reuse, not of correctness: the check still equals the cold run. The campaign does not lose these states, because 34 and 24 other units reach them. But the unit's own reach moved, and no law requires partial reuse after an edit, so the oracle passes.
Trace
- #133 at 5fc4b9a4: CI run 44436324847, job 135266004465 (fixed seed 2/5). The unit's reach has
a check through the daemon worked past its CLI's bound,an edit that changed the cold result after a hang replaced the only contextandedit test changed the cold result, and neither reuse state. - Main 30928ee8: run 44435834785, job 135264344204. Its reach also has both reuse states.
Likely cause (plausible, not confirmed)
In this history a slow copy is cut, and a new context warms in place of the cut one. A warm records its reads as global inputs (warmReads, check.mjs), which become part of the unit identity (globalKey). If the replacement warm reads a file or variable that the first warm did not, then the next check's globalKey differs from the one the earlier units were stored under, and every unit misses once.
Possible fixes:
- A warm in place of a cut context records new reads as hook reads, like a read that arrives after its warm ended.
- Or the global key covers only the reads of a session's first warm.
Either needs a law that the oracle can judge. One option is to require reuse of the unedited file's runs in the check after a hang replaced the only context, which is a state the grammar already reaches.
Authority
The README's reuse contract and R13 (the daemon is the default). M-30 is met (I8 holds), so this is a speed regression, which belongs to the maintainer's cost rules (P12 / R7).
This issue was written by Isaac.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 5
- Forks
- 1
- Ø Merge
- 11 Std. 18 Min.
- Gemergte PRs (30 T.)
- 66
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 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
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 2/5 1-3 Stunden Anfängerfreundlichkeit 64/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
Alle Issues in TanStack/oracles
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
swc-project/swc-next-issues#532 ·
-
domain/checkout Platform(Default) priority/low testing/acceptance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug confirmed css v6
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
check:passed logos:edit
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag