Flaky test: concurrent CLI redownload times out waiting for the progress log to go away
Los mantenedores suelen responder en 2 días
@EhabY ya está trabajando en esto.
Desde el 18/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
test/unit/core/cliManager.concurrent.test.ts fails intermittently on CI. It passed on attempt 1 of run 35406584668 and failed on attempt 2 of the same commit, in Unit Test (Linux, Electron 37).
FAIL test/unit/core/cliManager.concurrent.test.ts > CliManager Concurrent Downloads > redownloads when version mismatch is detected concurrently
AssertionError: promise resolved "undefined" instead of rejecting
- Expected: Error { "message": "rejected promise" }
+ Received: undefined
❯ test/unit/core/cliManager.concurrent.test.ts:102:56
Line 102 is the progress-log half of expectLockFilesRemoved:
await vi.waitFor(async () => {
await expect(fs.access(binaryPath + ".lock")).rejects.toThrow();
await expect(fs.access(binaryPath + ".progress.log")).rejects.toThrow();
});
fs.access resolved, so <binary>.progress.log was still on disk when the poll gave up. The test starts three fetchBinary calls, two of which detect the version mismatch and redownload, and Promise.all resolves before every peer has finished releasing its progress log. vi.waitFor defaults to a 1s timeout at a 50ms interval, which a loaded runner can outlast.
#1043 added that polling for this same flake, so the window helps but is not always enough.
Worth considering:
- Give
vi.waitForan explicit timeout, which is the cheap fix but still time-based. - Make the cleanup observable and await it, rather than polling the filesystem.
- Decide whether the progress log belongs in the assertion at all after a concurrent redownload, since the lock is the part the contract depends on.
- Lenguaje dominante
- TypeScript
- Estrellas
- 131
- Forks
- 48
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 16
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de coder/vscode-coder
-
Split commands.ts by topicAbiertoImprovement tech-debt vs-code
coder/vscode-coder#1135 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Migrate CI setup to pnpm/setupPosiblemente ocupada @EhabY la tomó hace 17 días. Abiertotech-debt
coder/vscode-coder#1119 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Design the VS Code Workspaces panelPosiblemente ocupada @chrifro la tomó hace 20 días. Abierto
coder/vscode-coder#1113 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable serverAbiertoenhancement tech-debt
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
coder/vscode-coder#1112 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug upstream
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
coder/vscode-coder#1087 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de coder/vscode-coder
Issues similares
-
enhancement good first issue priority: low size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Empty label or headline exports the editor hint ("LABEL" / "Headline goes here") into the PNGAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
streamplace/streamplace#1351 ·
Los mantenedores suelen responder en 2 días
-
Link Checker ReportAbiertoautomated issue report
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
databendlabs/databend-docs#3511 ·
-
automated issue report
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100