Flaky test: concurrent CLI redownload times out waiting for the progress log to go away
I maintainer di solito rispondono entro 2 giorni
@EhabY ci sta già lavorando.
Dal 18/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 131
- Fork
- 48
- Merge medio
- 1g 23h
- PR unite (30g)
- 16
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 coder/vscode-coder
-
Migrate CI setup to pnpm/setupForse già presa @EhabY l’ha presa 15 giorni fa. Apertatech-debt
coder/vscode-coder#1119 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Design the VS Code Workspaces panelForse già presa @chrifro l’ha presa 19 giorni fa. Aperta
coder/vscode-coder#1113 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable serverApertaenhancement tech-debt
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
coder/vscode-coder#1112 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
bug upstream
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
coder/vscode-coder#1087 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Improvement tech-debt vs-code
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
coder/vscode-coder#1066 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di coder/vscode-coder
Issue simili
-
skills.mdx: ReadResourceDirectoryRequest does not type-check against the 2026-07-28 base schemaAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
modelcontextprotocol/ext-skills#156 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
MystenLabs/MemWal#1104 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Effect-TS/effect#8728 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
account-pool bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
lidge-jun/opencodex#6571 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add: CanalPlusSport8SK.skApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno