Skip to content

test: deflake concurrent CLI and Windows ssh unit tests#1043

Merged
EhabY merged 1 commit into
mainfrom
test/deflake-unit-tests
Jul 21, 2026
Merged

test: deflake concurrent CLI and Windows ssh unit tests#1043
EhabY merged 1 commit into
mainfrom
test/deflake-unit-tests

Conversation

@EhabY

@EhabY EhabY commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Fixes two flaky unit tests seen on CI.

  • cliManager.concurrent.test.ts: the lock/progress cleanup assertions raced the library's peer re-acquire window — a waiter can recreate the .lock dir after the first downloader releases it, so the one-shot fs.access(...).rejects.toThrow() intermittently failed. Assert eventual removal via a vi.waitFor helper (expectLockFilesRemoved).
  • sshSupport.test.ts > "current shell supports ssh": spawns the real ssh -V, which took >10s on the Windows runner and hit the 10s testTimeout. Kept it end-to-end; bumped the timeout to 30s on Windows only.

Both remain behavior tests (no mocking).

Generated by Coder Agents on behalf of @EhabY.

Assert eventual removal of the lock/progress files in the concurrent
download tests instead of racing the peer re-acquire window, and give the
end-to-end ssh spawn test a larger timeout on Windows runners.
@EhabY EhabY self-assigned this Jul 21, 2026
@EhabY
EhabY merged commit beeb1c4 into main Jul 21, 2026
11 checks passed
@EhabY
EhabY deleted the test/deflake-unit-tests branch July 21, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants