reach: "a heartbeat named a busy mutant" depends on wall-clock timing and is reached 1 to 2 times per shard

Offen
#84 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript
Bereich
testing

Rechercherichtung

Start from the reach state "a heartbeat named a busy mutant" and the fixed-seed shard runs that count it, then read the determinism-under-load entry in the decisions register (2026-11-13). The proposed pattern is the test-only pause point used by PAUSE_AT in the daemon witness; find that witness and mirror it so the mutant is held for a constructed duration instead of relying on a slow test crossing the 2 s beat. Done means every shard that declares the state reaches it with wall-clock timing removed, verified by rerunning the fixed seed 20261105 across shards 1-3.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Summary

The reach state "a heartbeat named a busy mutant" is entered only when a slow test crosses the 2 s heartbeat interval. Its count per shard depends on the machine's timing, not only on the constructed history.

Evidence

Fixed seed 20261105, main 35422e3, Linux fixed-seed shards 1 to 3:

  • GitHub CI (run 43578388114): shard 1 = 2, shard 2 = 2, shard 3 = 2 (total 6).
  • The same commit on the Arca Arclet pool (tags r61-main{1,2,3}-35422): shard 1 = 1, shard 2 = 2, shard 3 = 2 (total 5).

The same Arclet pool gave head 346c8a8 shard 1 = 1 (tag r61-fs1-346), so the difference is between machines, not between main and the PR.

Why it matters

Under "determinism under load" (decisions register, 2026-11-13), a reach state must not depend on wall-clock timing. A state reached only by a slow test crossing a 2 s beat is that kind of dependency. The state still has to be reached on every shard that declares it. It is, but only by timing.

Proposed fix

Gate the state with a constructed history that holds a mutant for a deterministic time at a named test-only pause point (the same pattern as PAUSE_AT in the daemon witness), so the heartbeat fires regardless of machine speed. Not started here.

Related

#61 (fix(oracle-gaps): retire a batch's copies from Vitest's state). #80, #81 and #82 are separate.

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/oracles

Alle Issues in TanStack/oracles

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.