-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Stop serving Observatory by default #122419
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
Observatory can still be enabled by providing `--serve-observatory` or invoking the `_serveObservatory` private service RPC via web socket or HTTP. Related to dart-lang/sdk#50233
|
The test failures look related. |
|
Test failures should be resolved now. |
| await flutterRun.run(withDebugger: true, serveObservatory: false); | ||
| await flutterRun.run(withDebugger: true); | ||
| // Bail out if Observatory is still served by default in the VM. | ||
| if (await isObservatoryAvailable()) { |
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.
is observatory still served by default by the vm?
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.
No, it's not.
| if (await isObservatoryAvailable()) { | ||
| return; | ||
| } |
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.
Can we update this then to:
| if (await isObservatoryAvailable()) { | |
| return; | |
| } | |
| expect(await isObservatoryAvailable(), isFalse); |
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.
No, since the change in the VM hasn't rolled in yet.
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.
Which change?
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.
It was reverted in dart-lang/sdk@5a8ddc0, which will reland once this change lands.
This reverts commit edead9c. Reason for revert: We have some flutter framework tests that are breaking, "flutter test should respect --serve-observatory". This will apparently be fixed when flutter/flutter#122419 lands. Original change's description: > [ Observatory ] Disable serving Observatory by default > > Observatory can still be enabled by providing `--serve-observatory` or > invoking the `_serveObservatory` private service RPC via web socket or > HTTP. > > Related to #50233 > > TEST=pkg/dartdev/test/commands/run_test > > Change-Id: I89b000e69bb31c91a9a5386fed1ee590cdafa58c > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287821 > Reviewed-by: Michael Thomsen <[email protected]> > Commit-Queue: Ben Konyi <[email protected]> > Reviewed-by: Siva Annamalai <[email protected]> Change-Id: I994c86cbca9d0eb25e1f9adddeede94c227acad9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288601 Commit-Queue: Siva Annamalai <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Reviewed-by: Zach Anderson <[email protected]>
christopherfujino
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
| expect(await isObservatoryAvailable(), true); | ||
| }); | ||
|
|
||
| testWithoutContext('enables Observatory on attach', () async { |
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.
Should this test have a new name?
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.
No, this test was named this way in anticipation of Observatory being disabled by default.
|
The presub runs on this were a week old, I think? I would have suggested re-running them. Let's keep an eye on how this does on the tree. |
* cbdee52 Roll Flutter Engine from 59acb5362098 to 12c822327825 (3 revisions) (flutter/flutter#123330) * 897e3db Inject the gstatic CanvasKit CDN URL by default in `flutter build web` (flutter/flutter#122772) * 5a36bdd Stop serving Observatory by default (flutter/flutter#122419) * b212e7b implement Iterator and Comparable instead of extending them (flutter/flutter#123282) * af6029c c0fbe5a53 Roll Dart SDK from 9256fffbd5af to e8e045620234 (1 revision) (flutter/engine#40561) (flutter/flutter#123336) * 9dec4fb FIX: NavigationDrawer hover/focus/pressed does not use indicatorShape (flutter/flutter#123325) * 4907464 20ab040cd Roll Skia from ce5ff5cc03ce to c42320d53714 (2 revisions) (flutter/engine#40565) (flutter/flutter#123340) * 28d40a4 Roll Packages from 75491e9 to 0826798 (5 revisions) (flutter/flutter#123342) * 674ff15 [macOS] Add platform_channel sample/test (flutter/flutter#123141) * 7b7af9f roll packages (flutter/flutter#123339) * 3179875 replace some ._() constructors with class modifiers (flutter/flutter#122765) * 7f41ab2 Fix (insert|move|remove)RenderObjectChild methods in base class (flutter/flutter#123276) * fccca49 Refactor buildOverscrollIndicator (flutter/flutter#123246) * 11bbce1 6b0933e74 [web] Add `dart:js_interop` to `_embedder.yaml`. (flutter/engine#40545) (flutter/flutter#123347) * 716d252 Remove prefer_const_constructors ignores (flutter/flutter#123284) * 100cf21 Prefer enum over class. (flutter/flutter#123312) * 5ef9b84 Expose toggle to textfield's opacity animation. (flutter/flutter#122474) * d79f3aa Roll Flutter Engine from 6b0933e74965 to bdce896fb64f (2 revisions) (flutter/flutter#123351)
This reverts commit 5a8ddc0. Reason for reland: fix for failing Flutter test landed upstream in flutter/flutter#122419 TEST=pkg/dartdev/test/commands/run_test.dart Change-Id: I1152296828428e118ccba11025f25f6b1dbbb0f3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290921 Reviewed-by: Zach Anderson <[email protected]> Commit-Queue: Ben Konyi <[email protected]>
This reverts commit fb1516c. Reason for revert: flutter/flutter#123516 Original change's description: > Reland "[ Observatory ] Disable serving Observatory by default" > > This reverts commit 5a8ddc0. > > Reason for reland: fix for failing Flutter test landed upstream > in flutter/flutter#122419 > > TEST=pkg/dartdev/test/commands/run_test.dart > > Change-Id: I1152296828428e118ccba11025f25f6b1dbbb0f3 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290921 > Reviewed-by: Zach Anderson <[email protected]> > Commit-Queue: Ben Konyi <[email protected]> Change-Id: I4e35f93ef4ac46c6dbd905903496a27107eb8329 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291180 Bot-Commit: Rubber Stamper <[email protected]> Commit-Queue: Alexander Markov <[email protected]> Reviewed-by: Alexander Markov <[email protected]> Reviewed-by: Ben Konyi <[email protected]>
) * cbdee52 Roll Flutter Engine from 59acb5362098 to 12c822327825 (3 revisions) (flutter/flutter#123330) * 897e3db Inject the gstatic CanvasKit CDN URL by default in `flutter build web` (flutter/flutter#122772) * 5a36bdd Stop serving Observatory by default (flutter/flutter#122419) * b212e7b implement Iterator and Comparable instead of extending them (flutter/flutter#123282) * af6029c c0fbe5a53 Roll Dart SDK from 9256fffbd5af to e8e045620234 (1 revision) (flutter/engine#40561) (flutter/flutter#123336) * 9dec4fb FIX: NavigationDrawer hover/focus/pressed does not use indicatorShape (flutter/flutter#123325) * 4907464 20ab040cd Roll Skia from ce5ff5cc03ce to c42320d53714 (2 revisions) (flutter/engine#40565) (flutter/flutter#123340) * 28d40a4 Roll Packages from 75491e9 to 0826798 (5 revisions) (flutter/flutter#123342) * 674ff15 [macOS] Add platform_channel sample/test (flutter/flutter#123141) * 7b7af9f roll packages (flutter/flutter#123339) * 3179875 replace some ._() constructors with class modifiers (flutter/flutter#122765) * 7f41ab2 Fix (insert|move|remove)RenderObjectChild methods in base class (flutter/flutter#123276) * fccca49 Refactor buildOverscrollIndicator (flutter/flutter#123246) * 11bbce1 6b0933e74 [web] Add `dart:js_interop` to `_embedder.yaml`. (flutter/engine#40545) (flutter/flutter#123347) * 716d252 Remove prefer_const_constructors ignores (flutter/flutter#123284) * 100cf21 Prefer enum over class. (flutter/flutter#123312) * 5ef9b84 Expose toggle to textfield's opacity animation. (flutter/flutter#122474) * d79f3aa Roll Flutter Engine from 6b0933e74965 to bdce896fb64f (2 revisions) (flutter/flutter#123351)
Observatory can still be enabled by providing
--serve-observatoryor invoking the_serveObservatoryprivate service RPC via web socket or HTTP.Related to dart-lang/sdk#50233