Repository navigation
Turn off the simulator hardware keyboard in the iPhone CI job - #160
Merged
Merged
Conversation
CompanionServer.close() destroyed only the sockets Node's closeAllConnections() knows about, which are the ones that finished the TLS handshake. A phone that opened a TCP connection but never sent its ClientHello kept close() waiting for Node's 120 s handshake timeout. The paused-Mac step of the iPhone CI flow answers /resume only after dispose() returns, so on a slow simulator the UI test's 10 s wait expired first (run 37983100896, main at #154). The runner's Session log showed its wait ending on schedule, which placed the stall in the fixture. Track every accepted socket per server and destroy them all in close(). A unit test holds a half-open connection and requires dispose() to return promptly; it timed out at 5 s before the fix. Reproduced against the real fixture with one half-open connection: no reply in 15 s before, 204 in 6 ms after. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The commit's pull_request run passed the whole paired iPhone flow while its push run (38012518622) failed at the first follow-up, before the pause-and-resume step this change affects. The phone's log shows one request hitting its 8 s timeout ten seconds before the send tap and no later request failing. The fixture writes no log, so the status page now says what is known and what to add first if it recurs. Co-Authored-By: Claude Fable 5.1 <[email protected]>
With a hardware keyboard connected the iOS simulator hides the software keyboard, so app.keyboards stays empty after a field takes focus. That is the fallback focus check in typeTextWhenReady. The iPhone companion job now sets ConnectHardwareKeyboard to false before the first xcodebuild boots the simulator. CI only; local Simulator settings are untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Why
With a hardware keyboard connected, the iOS simulator hides the software keyboard. When XCTest can't read a field's own focus,
typeTextWhenReadyfalls back to checkingapp.keyboards.firstMatch.exists, which stays false when the simulator hides the software keyboard. Run 37831389640 failed atCompanionFlowTests.swift:45with "The keyboard did not appear".#153 found that failure's real cause: a tap landed while the sheet was still animating, and the helper now taps again until the field has focus. This PR is a safeguard on top of that, not the fix. The fixture network timeout in run 37983100896 at
CompanionFlowTests.swift:169was handled separately in #158.What
.github/workflows/ci.yml: a newiPhone companionstep setsdefaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool falsebefore the firstxcodebuildboots the simulator, then reads the value back into the log. The step runs only in CI;Scripts/test-e2e.shis unchanged, so local Simulator settings stay as they are.docs/status.md: a note in Known rough edges.Verification
fa90a390is based on merged Close half-open companion connections on shutdown #158 (c32f179). Its tree is unchanged from reviewed9c5edd0: build and unit tests passed (469 passed, 1 skipped). Independent review verified the workflow exactly matches the original safeguard and both overlapping status explanations remain intact.0. Both required macOS jobs passed all 166 desktop and 7 site cases; all four current-head checks are green.