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

Aperta
#84 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
5
Fork
1
Merge medio
6h
PR unite (30g)
56

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/oracles

Tutte le issue di TanStack/oracles

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.