Skip to content

Conversation

@ptarjan
Copy link
Contributor

@ptarjan ptarjan commented Jan 5, 2026

The test was failing with SocketTimeout because the pywatchman client in WatchmanInstance.start() used the default 1 second timeout, which is too short on resource-constrained systems (e.g., Windows CI running tests with 2GB/4GB files).

Changes:

  • Increase client connection timeout from 1s to up to 10s
  • Catch SocketTimeout in addition to SocketConnectError so the startup loop can retry on timeout

The test was failing with SocketTimeout because the pywatchman client
in WatchmanInstance.start() used the default 1 second timeout, which
is too short on resource-constrained systems (e.g., Windows CI running
tests with 2GB/4GB files).

Changes:
- Increase client connection timeout from 1s to up to 10s
- Catch SocketTimeout in addition to SocketConnectError so the
  startup loop can retry on timeout
@meta-cla meta-cla bot added the CLA Signed label Jan 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 5, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D90087810. (Because this pull request was imported automatically, there will not be any future comments.)

@meta-codesync
Copy link

meta-codesync bot commented Jan 6, 2026

This pull request has been merged in 32c84e2.

meta-codesync bot pushed a commit to facebook/hhvm that referenced this pull request Jan 6, 2026
Summary:
The test was failing with SocketTimeout because the pywatchman client in WatchmanInstance.start() used the default 1 second timeout, which is too short on resource-constrained systems (e.g., Windows CI running tests with 2GB/4GB files).

Changes:
- Increase client connection timeout from 1s to up to 10s
- Catch SocketTimeout in addition to SocketConnectError so the startup loop can retry on timeout

X-link: facebook/watchman#1324

Reviewed By: genevievehelsel

Differential Revision: D90087810

fbshipit-source-id: 4ad3c33229b0b2a2cff89bb4a820d2b85f433238
ptarjan pushed a commit to ptarjan/watchman that referenced this pull request Jan 7, 2026
The test_big_file test was failing intermittently on Windows CI due to
SocketTimeout errors. The pywatchman client was using a short default
timeout of 1 second, which is insufficient on resource-constrained systems.

This fix:
- Increases the client connection timeout to up to 10 seconds
- Catches SocketTimeout in addition to SocketConnectError in the retry loop

This matches the fix from PR facebook#1324.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants