-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Make device debuggable if useDwdsWebSocketConnection is true and added simple test case #171648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
packages/flutter_tools/lib/src/isolated/resident_web_runner.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/integration.shard/test_data/hot_reload_websocket_test_common.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/integration.shard/test_data/hot_reload_websocket_test_common.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/integration.shard/test_data/hot_reload_websocket_test_common.dart
Outdated
Show resolved
Hide resolved
nshahan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a few more comments.
| /// WebServer device is debuggable when running with --start-paused. | ||
| bool get deviceIsDebuggable => device!.device is! WebServerDevice || debuggingOptions.startPaused; | ||
| bool get deviceIsDebuggable => | ||
| device!.device is! WebServerDevice || | ||
| debuggingOptions.startPaused || | ||
| _useDwdsWebSocketConnection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually support debugging with the web socket connection without start paused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we do now. When we run the app from the terminal it runs without --start-paused. From vscode, it starts paused.
packages/flutter_tools/lib/src/isolated/resident_web_runner.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/lib/src/isolated/resident_web_runner.dart
Outdated
Show resolved
Hide resolved
| assert(connectDebug != null); | ||
| _connectionResult = await connectDebug; | ||
| unawaited(_connectionResult!.debugConnection!.onDone.whenComplete(_cleanupAndExit)); | ||
| unawaited( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff is making it tricky to see but is this the key difference that is breaking the deadlock we were discussing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. The app.started event needs to go out for the tool to start the test driver process, and the VM service doesn't need to be configured before that's sent out since there's a separate app.debugPort event used to indicate that the service is available.
Attaching a listener to connectDebug instead of blocking on its completion and not requiring the service to be available before application startup lets us break the deadlock safely.
…e and added simple test case (flutter/flutter#171648)
…e and added simple test case (flutter/flutter#171648)
flutter/flutter@3821790...1590543 2025-08-09 [email protected] Make device debuggable if useDwdsWebSocketConnection is true and added simple test case (flutter/flutter#171648) 2025-08-09 [email protected] Roll Dart SDK from 91cbf6d7563a to 6a7ae1ffd1c9 (1 revision) (flutter/flutter#173487) 2025-08-09 [email protected] add `--variance host_debug_unopt_arm64` for apple chip simulator (flutter/flutter#173475) 2025-08-08 [email protected] [WebParagraph] Fix a property name on newer Chrome versions (flutter/flutter#173477) 2025-08-08 [email protected] Make sure that a Checkbox doesn't crash in 0x0 environment (flutter/flutter#173178) 2025-08-08 [email protected] Make sure that a RawChip doesn't crash in 0x0 environment (flutter/flutter#173265) 2025-08-08 [email protected] Fix tooltip crash when route has secondary animation (flutter/flutter#172678) 2025-08-08 [email protected] Roll Skia from 86824ed582be to 44bb9d908ee4 (3 revisions) (flutter/flutter#173476) 2025-08-08 [email protected] Fix null value reference in `flutter logs` path (flutter/flutter#173437) 2025-08-08 [email protected] Remove jetifier usages from framework and engine (flutter/flutter#173459) 2025-08-08 [email protected] [a11y] Textfield has flag `isFocusable` set to true (flutter/flutter#173235) 2025-08-08 [email protected] Roll Dart SDK from 4b7b565eb468 to 91cbf6d7563a (1 revision) (flutter/flutter#173469) 2025-08-08 [email protected] Roll Packages from 6efb759 to 34948d1 (4 revisions) (flutter/flutter#173470) 2025-08-08 [email protected] Roll Skia from a6ccfeafbfba to 86824ed582be (20 revisions) (flutter/flutter#173468) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] 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
|
Time to revert pull request flutter/flutter/171648 has elapsed. |
…and added simple test case (flutter#171648)" This reverts commit 1590543.
#173551) Reverts #171648 for multiple failing tests <img width="624" height="347" alt="image" src="https://github.com/user-attachments/assets/affc7820-bd1a-408a-822c-3bc0df5f985d" />
…d simple test case (flutter#171648) - Make device debuggable if useDwdsWebSocketConnection is true - This change is needed to support hot reload on web-server devices over websocket-based DWDS. - Added simple test case to test hot reload over websocket related to dart-lang/webdev#2605, dart-lang/webdev#2645 and dart-lang/webdev#2646 --------- Co-authored-by: Ben Konyi <[email protected]>
flutter#173551) Reverts flutter#171648 for multiple failing tests <img width="624" height="347" alt="image" src="https://github.com/user-attachments/assets/affc7820-bd1a-408a-822c-3bc0df5f985d" />
…d simple test case (flutter#171648) - Make device debuggable if useDwdsWebSocketConnection is true - This change is needed to support hot reload on web-server devices over websocket-based DWDS. - Added simple test case to test hot reload over websocket related to dart-lang/webdev#2605, dart-lang/webdev#2645 and dart-lang/webdev#2646 --------- Co-authored-by: Ben Konyi <[email protected]>
flutter#173551) Reverts flutter#171648 for multiple failing tests <img width="624" height="347" alt="image" src="https://github.com/user-attachments/assets/affc7820-bd1a-408a-822c-3bc0df5f985d" />
…d simple test case (flutter#171648) - Make device debuggable if useDwdsWebSocketConnection is true - This change is needed to support hot reload on web-server devices over websocket-based DWDS. - Added simple test case to test hot reload over websocket related to dart-lang/webdev#2605, dart-lang/webdev#2645 and dart-lang/webdev#2646 --------- Co-authored-by: Ben Konyi <[email protected]>
flutter#173551) Reverts flutter#171648 for multiple failing tests <img width="624" height="347" alt="image" src="https://github.com/user-attachments/assets/affc7820-bd1a-408a-822c-3bc0df5f985d" />
…d simple test case (flutter#171648) - Make device debuggable if useDwdsWebSocketConnection is true - This change is needed to support hot reload on web-server devices over websocket-based DWDS. - Added simple test case to test hot reload over websocket related to dart-lang/webdev#2605, dart-lang/webdev#2645 and dart-lang/webdev#2646 --------- Co-authored-by: Ben Konyi <[email protected]>
flutter#173551) Reverts flutter#171648 for multiple failing tests <img width="624" height="347" alt="image" src="https://github.com/user-attachments/assets/affc7820-bd1a-408a-822c-3bc0df5f985d" />

related to dart-lang/webdev#2605, dart-lang/webdev#2645 and dart-lang/webdev#2646