Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#4,910 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
bun, typescript
Área
testing-qa

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
139
Merge medio
6 h 35 min
PR fusionados (30 d)
819

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coder/xum

Todos los issues de coder/xum

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.