Repository navigation
Bug 2100702 - [firefox-mcp] Raise the WebSocket open limit and the default test timeout - #265
Open
juliandescottes wants to merge 3 commits into
Open
juliandescottes wants to merge 3 commits into
juliandescottes wants to merge 3 commits into
Conversation
…ket to open The first BiDi command opens the WebSocket. On Windows CI, opening it after a slow Firefox startup sometimes took more than the 5 second limit, and the connection failed with "Timeout waiting for WebSocket to open". Measured on Windows CI: median 187 ms, 90% under 1.4 s, maximum over 5 s. No test: a real Firefox cannot be made to open the WebSocket slowly on demand.
Tests without an explicit timeout used the vitest default of 5 seconds. Tests which start or restart Firefox, such as restricted-session-restart.test.ts, take 3.6 to 4.8 seconds on Windows CI when they pass, and failed when a slow startup pushed them over 5 seconds. Explicit timeouts on single tests still apply.
… context test The test starts Firefox with its first tool call. On Windows CI it takes 4.8 to 5.7 seconds, and sometimes went over its explicit 10 second limit. Use the default test timeout of 30 seconds instead.
This was referenced Dec 3, 2026
Collaborator
Author
|
@hbenl there was a recent increase in flakiness for CI jobs on windows, can you take a look at this PR? |
juliandescottes
commented
Dec 3, 2026
| * Wait for WebSocket to be in OPEN state | ||
| */ | ||
| private async waitForWebSocketOpen(ws: any, timeout: number = 5000): Promise<void> { | ||
| private async waitForWebSocketOpen(ws: any, timeout: number = 30000): Promise<void> { |
Collaborator
Author
There was a problem hiding this comment.
This is the only non-test change. Maybe 30s is excessive in general and should be reserved for CI jobs known to run on slow workers?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug 2100702
This PR has 2 commits:
Tests without an explicit timeout used the vitest default of 5 seconds. Tests which start or restart Firefox, such as
restricted-session-restart.test.ts, take 3.6 to 4.8 seconds on Windows CI when they pass, and fail when a slow startup pushes them over 5 seconds. Explicit timeouts on single tests still apply.This PR and #264 are opened separately to compare their Windows CI results.