Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🤖 tests: historyService 'preserves active usage when truncation removes only workflow display rows' fails when run in one process with other history test files

Chiusa
#4,910 1 commento 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
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
testing-qa

Direzione di ricerca

Start with src/node/services/historyService.test.ts and the listed historyService..test.ts, historyScanner..test.ts, historyRowScanner.test.ts, historyReplacementRows.test.ts, and compactionPendingState*.test.ts files. Run the reported Bun command, then identify which earlier test file leaves state affecting getHistoryFromLatestBoundary. Done means the named test passes both alone and in the combined process.

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

Descrizione

Failure

src/node/services/historyService.test.ts → "HistoryService > sealed history rotation > preserves active usage when truncation removes only workflow display rows" fails when it shares a bun process with the other history test files. It passes alone, and it passes when the whole historyService.test.ts file runs by itself (366/366).

Repro on main at eb0da23fc8 (bun 1.3.5), from src/node/services:

bun test historyService.*.test.ts historyService.test.ts historyScanner.*.test.ts historyRowScanner.test.ts historyReplacementRows.test.ts compactionPendingState*.test.ts
# 1004 pass, 1 fail: the test above

The implementation agent observed that getHistoryFromLatestBoundary still returns the workflow-display row after truncateHistory with a reset boundary. That points to state leaking in from an earlier test file in the same process (order dependent), not to a product bug. I have not bisected which file leaks it.

Found while validating the #4655 one-pass read (PR-C). That branch fails the same way, so it is not the cause.

Expected

The test passes regardless of which other test files share its process. CI currently splits files into shards, so the failure can surface when a PR changes how files are grouped.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lingua principale
TypeScript
Stelle
2k
Fork
136
Merge medio
7h 27m
PR unite (30g)
710

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. 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 coder/xum

Tutte le issue di coder/xum

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.