Suggest the -d flag after interactive device selection - #188941
auto-submit[bot] merged 3 commits into
Conversation
|
Hi @theprantadutta! Do you plan on coming back to this PR? |
|
Yes, definitely — sorry for the silence on it. This has been sitting as a draft for one reason only: as a non-committer I can have at most two open non-draft PRs, and #188939 and #188940 currently hold both slots (both are mid-review). So it's parked rather than abandoned. The work itself is finished and still healthy — I re-checked just now:
I'll flip it to ready the moment one of the other two lands. If you'd rather look at it sooner, say the word and I'll flip it straight away — happy to let one of the others go back to draft to free the slot if that's the preferred order. |
There was a problem hiding this comment.
Code Review
This pull request introduces a hint message in TargetDevices and TargetDevicesWithExtendedWirelessDeviceDiscovery to inform users how to skip the device selection prompt in the future by using the "-d" flag with the chosen device's ID. The corresponding unit tests have been updated to assert the presence of this new message. I have no feedback to provide.
|
Thanks for the reviews @bkonyi @chingjun 🙏 Heads-up on why there's a new commit after your approvals: the The PR diff is unchanged by the merge — still only the two files, and One thing I can't do from my side: pushing dropped the |
|
autosubmit label was removed for flutter/flutter/188941, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
The The only failing job is So it wasn't a test assertion — the shard ran to its timeout and was cancelled, which buildbucket classifies as infrastructure rather than failure. Its sibling shard This PR only touches Could someone re-run that one job and re-apply |
|
autosubmit label was removed for flutter/flutter/188941, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…12890) Manual roll requested by stuartmorgan@google.com flutter/flutter@27fec0e...8737f11 2026-09-15 bkonyi@google.com [flutter_tools] Migrate BuildBundleCommand to modular dependency injection (flutter/flutter#192462) 2026-09-15 dacoharkes@google.com Migrate SDK constraints for record_use and data_asset integration test packages to ^3.13.0-0 (flutter/flutter#192728) 2026-09-15 zhongliu88889@gmail.com [tool] Defer app.restart until the app has finished starting (flutter/flutter#192650) 2026-09-15 44747303+theprantadutta@users.noreply.github.com Suggest the -d flag after interactive device selection (flutter/flutter#188941) 2026-09-15 engine-flutter-autoroll@skia.org Roll Packages from 9caa77c to bebbb57 (9 revisions) (flutter/flutter#192809) 2026-09-15 evanwall@buffalo.edu Add a compiler warning for fragment shaders containing both texture samplers and early returns. (flutter/flutter#191969) 2026-09-15 kevmoo@users.noreply.github.com feat(flutter_tools): migrate Android build commands to typed options (flutter/flutter#192524) 2026-09-15 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 7R1l5MhSZZUr1Q6D1... to XCxrICzX1DWvyfqhA... (flutter/flutter#192789) 2026-09-15 engine-flutter-autoroll@skia.org Roll Dart SDK from 7253dff72c96 to c870e8afe036 (1 revision) (flutter/flutter#192791) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
When
flutter run(or any command that resolves a target device) finds multiple devices and no-dflag was given, it interactively prompts the user to pick one — but never tells them how to skip that prompt next time. This implements the suggestion from #63541 (and follows the pointer @jmagman gave there): after the user picks a device, printwith the id of the device they just chose.
The hint is printed in both selection flows:
TargetDevices._chooseOneOfAvailableDevices(the standard flow), right after the selection is parsed.TargetDevicesWithExtendedWirelessDeviceDiscovery._selectFromDevicesAndCheckForWireless(the macOS + iOS wireless flow), after the chosen-device future completes rather than insideTargetDeviceSelection.userSelectDevice— printing it at selection time would interleave with (and get wiped by) the line-clearing/reprinting that happens when wireless device discovery finishes while the prompt is up.The 17 existing interactive-selection tests that assert the full status text have been updated to include the hint line, and the eleventh-device test now asserts the hint contains the correct id (
-d id-11) rather than the fake default.Fixes #63541
Pre-launch Checklist
///).