Flaky test: concurrent CLI redownload times out waiting for the progress log to go away
維護者通常 1 天內回覆
@EhabY 已經在處理了。
開始於 2026年9月18日。
評估
這個 Issue 還沒有評估資料。
描述
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.
- 主要語言
- TypeScript
- 星號
- 133
- 分支
- 49
- 平均合併
- 1 天 7 小時
- 30 天內合併 PR
- 26
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/vscode-coder 的其他 Issue
-
token authorization is skipped when using mTLS auth unlike CLI behavior可能已有人在做 @EhabY 於 3 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 55/100
coder/vscode-coder#1159 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
ReconnectingWebSocket drops messages the server sends right after the handshake可能已有人在做 @EhabY 於 20 天前認領。 未關閉bug vs-code
難度 3/5 1-2 天 新手友好度 72/100
coder/vscode-coder#1141 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Split commands.ts by topic可能已有人在做 @EhabY 於 20 天前認領。 未關閉Improvement tech-debt vs-code
難度 4/5 3-5 天 新手友好度 48/100
coder/vscode-coder#1135 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Design the VS Code Workspaces panel可能重新可做 @chrifro 於 47 天前認領,目前沒有進行中的 PR。 未關閉
coder/vscode-coder#1113 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
bug upstream
難度 4/5 3-5 天 新手友好度 42/100
coder/vscode-coder#1087 · 1 則留言 ·
維護者通常 1 天內回覆
查看 coder/vscode-coder 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
JuliusBrussee/caveman#1449 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
linagora/twake-calendar-frontend#1924 ·
維護者通常 1 天內回覆
-
check:passed streams:add
難度 1/5 1 小時以內 新手友好度 65/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
libnativeapi/nativeapi#21 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
GiganticMinecraft/seichi-playguide#183 ·
維護者通常 1 天內回覆