Flaky under load: UI tests hit the 5 s vitest timeout (palette_caps_results and others)
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
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, tauri, typescript
- Ambito
- testing
Direzione di ricerca
Start with src/features/palette/CommandPalette.test.tsx and inspect the palette test’s typing and timeout; then check the two intermittent tests in src/App.test.tsx and src/features/settings/SettingsDialog.test.tsx for slow interactions. Keep the timeout local to the heavy test and preserve checks for the 200 item limit, best match ordering, and one catalog load. Run pnpm test repeatedly under CPU load, then pnpm lint.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
On a loaded dev machine (load average 10–37, another build running), pnpm test fails with Test timed out in 5000ms on UI tests that pass alone and on CI:
src/features/palette/CommandPalette.test.tsx>palette_caps_results: 5 000 tables render at most 200 items and the best match comes first(fails most often: it renders 5 002 catalog entries and types withuser.typetwice);- seen once each:
src/App.test.tsx>restored_workspace_connects_on_activation,src/features/settings/SettingsDialog.test.tsx>Tab cycles inside the dialog.
pnpm test --testTimeout=30000 passes all 876 tests on the same machine, so these are timing budgets, not bugs. Seen while shipping #55 and #57. No testTimeout is set in the vitest config (default 5 s).
To do
- Give the heavy palette test its own budget (
test(..., 20_000)), and type the query withuser.type(input, "tbl_4", { delay: null })or a singlefireEvent.changewhere the keystroke-by-keystroke path is not what is under test. - Check the two other tests for avoidable slow paths (per-key typing, long
findBy*chains); raise their timeout only if needed. - Do not raise the global timeout for every test: slow tests should stay visible.
Acceptance criteria
-
pnpm testgreen 5 runs in a row while a CPU load runs in parallel (e.g.stress-ng --cpu $(nproc) --timeout 300sor acargo buildin another checkout). - The palette test still checks: at most 200 items, best match first after each query, catalog loaded once.
-
pnpm test && pnpm lintgreen
Files likely touched
src/features/palette/CommandPalette.test.tsxsrc/App.test.tsx,src/features/settings/SettingsDialog.test.tsxvitest.config.ts(only if a per-file setting is cleaner)
Related plan / spec
No response
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1h 2m
- PR unite (30g)
- 41
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Cemoche/tablemax
-
accessibility area:frontend size:S status:ready type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:backend size:S status:ready type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
area:infra good first issue size:S status:ready type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
area:docs good first issue size:S status:ready type:task
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:infra size:S status:ready type:task
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Cemoche/tablemax
Issue simili
-
[Feature]: 建议导入源后,自动切换到新导入的源Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
lyswhut/lx-music-desktop#3026 ·
-
area: ci type: test
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
schlessera/brain-kit#2769 ·
I maintainer di solito rispondono entro 1 giorno
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
liberation-data/drivine#231 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
alveusgg/alveusgg#2502 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno