Repository navigation
Conversation
Collaborator
Author
|
Thanks for this. I'm closing it because the normal pane/detach path already serializes stop after pending starts via EmulatorStartLeaseRegistry. The race only shows up when a CLI kill/shutdown or an app quit lands during the jar download or scrcpy handshake, and in those cases the device or process goes away anyway. Chaining each start on the previous one would also let a hung start block the next one, which is a new risk for a theoretical gain. Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar). |
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.
Stopping an Android helper during jar download or stream handshake can return before a handle exists; startup later stores that handle and reports success, leaving a live stream after stop. A subsequent start also joins the obsolete request.
Mark pending starts stopped, skip downstream startup after jar completion, close late handles, and wait for prior teardown before starting a replacement. Keep healthy deduplication, live reuse, retry and idempotent stop. Active ADB/download/handshake I/O is not cancelled; the successor waits for its existing completion.
Validation:34 tests/five suites, parent four regressions fail/two controls pass, strict focused TypeScript and all five normal precommit tasks. Real Node/Linux child+TCP matrix at N=1/10:33 obsolete helpers/66 peers retained→zero;11 jar starts avoided and11 fresh replacements correctly serialized. Healthy/retry controls preserved; all132 matrix helper PIDs, sockets, servers and profiles released. Exact committed bundle rebuild is byte-identical. No actual device/ADB/ElectronUI/macOS/Windows/CPU/RSS/latency claim.
Preserve #35518 video retirement, #35490 GOP replay, #35531 logs, #35566 process policy and #35599 command runner on rebase. Evidence:/home/neil/.local/state/orca-electron-audit/android-stream-start-retirement/report.md
Required pnpm check:changed --maxWorkers=2 is queued after #35599. No aggregate/CI pass or merge claimed; keep draft until gate passes and revalidate current main before merge.