Repository navigation
[DO NOT MERGE] Debug restricted session failures on Windows CI - #263
Closed
juliandescottes wants to merge 2 commits into
Closed
juliandescottes wants to merge 2 commits into
juliandescottes wants to merge 2 commits into
Conversation
Fail the connection when browser.getUserContexts fails with an unexpected error, instead of treating the session as not restricted. Enable debug logs on the Windows CI jobs.
…ion tests Log how long getBidi, the WebSocket opening and browser.getUserContexts take. Show the stderr of the MCP server in tests when DEBUG is set. Run the MCP restricted session tests 20 times on the Windows CI jobs.
Collaborator
Author
|
Investigation done. The slow step was opening the BiDi WebSocket after a Firefox launch on Windows. Fixed in #265. |
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.
Diagnostic PR, not meant to land.
The restricted session tests often fail on the Windows CI jobs (for example
container-isolation.test.ts,restricted-session.test.ts,restricted-session-restart.test.ts). In the failing runs,FirefoxClient.connect()takes 6 to 19 seconds instead of under 1.3 seconds, the session is not detected as restricted, and the event subscriptions fail.detectRestrictedUserContextonly logs unexpected errors withlogDebug, so the CI logs do not show the first failure. This PR:browser.getUserContexts,DEBUG=firefox-mcpon the Windows jobs.