day-dividers timing test flakes on CI runners

Aperta
#770 0 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
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing

Direzione di ricerca

Start with day-dividers.test.ts and inspect the "cheap enough to run on every streamed update of a long chat" test and the dividerRows implementation it exercises. Consider whether counting timestamp parses or comparing performance against a same-run baseline would preserve detection of repeated parsing while tolerating runner noise. Done when the check catches a real slowdown without failing from ordinary CI timing variation.

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

Descrizione

type:bug

The day-dividers.test.ts test "cheap enough to run on every streamed update of a long chat" asserts dividerRows stays under 0.5 ms per call on 2000 rows, measured in real time. On a shared CI runner it measured 0.605 ms and failed verify on #768 (run 40546143525), which doesn't touch the renderer.

Acceptance: the check still catches a real slowdown (for example, re-parsing every timestamp on each call) but doesn't fail on runner noise. Options include counting timestamp parses instead of measuring time, or comparing against a baseline taken in the same run.

Lingua principale
TypeScript
Stelle
3
Fork
0
Merge medio
17h 33m
PR unite (30g)
163

Preparare l'ambiente

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 musterhq/muster-code

Tutte le issue di musterhq/muster-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.