-
Notifications
You must be signed in to change notification settings - Fork 6k
Revert "Use track-widget-creation transformer included in the sdk. (#9085)" #9134
Revert "Use track-widget-creation transformer included in the sdk. (#9085)" #9134
Conversation
…lutter#9085)" This reverts commit 651c904. With this change applied, test/widgets/widget_inspector_test.dart is failing when run by the dev/bots/test.dart script in the framework tree.
The change to the track-widget-creation transformer was causing failures in the framework test suite. To reproduce:
Interestingly, if you run The test also runs as expected if you just run |
flutter/engine@8dc3a4c...4c4c0f8 git log 8dc3a4c..4c4c0f8 --no-merges --oneline 4c4c0f8 Add plugin shim to facilitate old plugins in new embedding (#33478). (flutter/engine#9120) e8c2b17 Added support for transparent FlutterActivitys (#32740). (flutter/engine#9115) 19c5029 Roll src/third_party/skia 29e013deb476..1013ecfb3421 (3 commits) (flutter/engine#9130) 45d39e1 Revert "Roll src/third_party/dart fee615c5a5..d5405d06f4 (21 commits) (#9127)" (flutter/engine#9135) 44f1b44 Revert "Use track-widget-creation transformer included in the sdk. (#9085)" (flutter/engine#9134) ae14c5a Roll src/third_party/dart fee615c5a5..d5405d06f4 (21 commits) (flutter/engine#9127) 3ea7ac8 Roll src/third_party/skia 633db4db7672..29e013deb476 (3 commits) (flutter/engine#9128) 8ad0e2f Roll src/third_party/skia 25b63f91b3b4..633db4db7672 (4 commits) (flutter/engine#9125) 37e6e0c Roll src/third_party/skia 8f88b2da05d5..25b63f91b3b4 (2 commits) (flutter/engine#9121) 37b367e Allow specifying both Dart and non-Dart fixtures in engine unit-tests. (flutter/engine#9113) 28f2c05 Roll src/third_party/skia 1f02e8488551..8f88b2da05d5 (3 commits) (flutter/engine#9116) 0932008 Remove outdated TODOs (flutter/engine#9114) c880ca2 Roll src/third_party/dart 50b0d85804..fee615c5a5 (4 commits) 6e51513 Removing unused imports (flutter/engine#9108) 9ee2697 Roll src/third_party/skia d04aaa3a841a..1f02e8488551 (8 commits) (flutter/engine#9109) fa2e2d9 Add checks to constructors and add missing constructor members (flutter/engine#9106) 7e1788a Fix unopt variants of profile and release builds. (flutter/engine#9107) 867120c Better help message. (flutter/engine#9097) e27c6e8 Forward custom IDE flags to GN. (flutter/engine#9023) 6b4ca8d Roll src/third_party/skia 176b214f91bc..d04aaa3a841a (7 commits) (flutter/engine#9105) a207318 Roll src/third_party/dart ec4d48e241..50b0d85804 (87 commits) 0a6aeb3 Roll src/third_party/skia 213aa46af167..176b214f91bc (2 commits) (flutter/engine#9100) f2e22aa Roll src/third_party/skia 7730d7cb8fb2..213aa46af167 (3 commits) (flutter/engine#9098) 557db42 Roll src/third_party/skia de7e074e8190..7730d7cb8fb2 (2 commits) (flutter/engine#9096) 64a4a0e Roll src/third_party/skia f06b6d5469a5..de7e074e8190 (1 commits) (flutter/engine#9094) fdee625 Roll src/third_party/skia 7e5a64f517e4..f06b6d5469a5 (2 commits) (flutter/engine#9093) daf47f0 Roll src/third_party/skia dc01a84ae098..7e5a64f517e4 (1 commits) (flutter/engine#9092) 41e10f0 Fix internal break since listing contents can return null (flutter/engine#9078) cf1b203 Roll src/third_party/skia f33c95cd6f55..dc01a84ae098 (3 commits) (flutter/engine#9091) 2404cdc Rename macOS FLEPlugin* to FlutterPlugin* (flutter/engine#9074) 509a43f Apply minor cleanups to Android embedding (flutter/engine#9088) 0a0f330 Removed outdated deprecation comments (flutter/engine#9087) a44cbbf Delete BSDiff sources (flutter/engine#9086) 0f1ff3b Correct typos, adopt US spellings (flutter/engine#9081) 651c904 Use track-widget-creation transformer included in the sdk. (flutter/engine#9085) cfa524f New Plugin API PR4: Adds Lifecycle support to the new plugin system. (flutter/engine#9049) 6b8ac18 Roll src/third_party/skia d9430297e74a..f33c95cd6f55 (5 commits) (flutter/engine#9082) 11408ef Update macOS podspec version requirement (flutter/engine#9077) 66c6ae4 Roll src/third_party/skia a4b837971c4b..d9430297e74a (30 commits) (flutter/engine#9080) 9151b37 Roll src/third_party/skia 9339a8a61af0..a4b837971c4b (34 commits) (flutter/engine#9076) ee6a9c4 Fix unchecked operation warnings in FlutterMain (flutter/engine#9073) 333042c Roll third_party/dart/tools/sdks to 2.3.0 (flutter/engine#9072) 01b8c07 Roll src/third_party/skia f77dbd04b926..9339a8a61af0 (12 commits) (flutter/engine#9065) 26b4fb5 Roll src/third_party/dart e3edfd36b2..ec4d48e241 (7 commits) 9d2d58a Add mouse button support to the macOS shell (flutter/engine#9054) ...
Fyi @askeksa-google. I thought Terry landed this change 5 days ago. Did something change on the dart:sdk side that is causing it to fail now? |
Try removing the |
I believe the affected test started failing as soon as 651c904 landed. However, we didn't notice for a few days due to the weekend and because the engine->framework roller was failing earlier this week due to some unrelated CI errors. |
The widget_inspector_test error still occurs if I remove |
Jason I can't find a version in the repository of
bin/internal/engine.version that has a commit that includes 651c904
<651c904>
Here are the commits to engine.version (May 22 doesn't have the 651c904
commit and May 29 has the commit and reverted too).
commit abca503
Author: engine-flutter-autoroll <[email protected]>
Date: Wed May 29 23:28:18 2019 -0400
Roll engine 8dc3a4c..4c4c0f8 (47 commits) (#33546)
8dc3a4c...4c4c0f8
git log
8dc3a4c..4c4c0f8
--no-merges --oneline
4c4c0f8 Add plugin shim to facilitate old plugins in new embedding
(#33478). (flutter/engine#9120)
...
44f1b44 Revert "Use track-widget-creation transformer included in
the sdk. (#9085)" (flutter/engine#9134)
ae14c5a Roll src/third_party/dart fee615c..d5405d0 (21 commits)
(flutter/engine#9127)
...
651c904 Use track-widget-creation transformer included in the sdk.
(flutter/engine#9085)
...
9d2d58a Add mouse button support to the macOS shell
(flutter/engine#9054)
...
commit 018df5e
Author: Jonah Williams <[email protected]>
Date: Wed May 22 16:12:02 2019 -0700
Tried editing engine.version to my local SHA change (that has the CL
patched in) but that doesn't work either. Tried three ways:
1. After a build that works (flutter run
--local-engine=android_debug_unopt works) with an unedited engine.version,
edited engine.version to point to my local SHA (patched in CL) doesn't work.
2. Edit engine.version to point to my local SHA (patched in CL), delete
out directory and rebuilt still fails.
3. Also tried rebuilding with untouched engine.version and a patched in
the CL but "flutter test test/widgets/widget_inspector_test.dart" doesn't
fail
Running flutter test with --local-engine doesn't work (although flutter run
with --local-engine works).
flutter test --local-engine=android_debug_unopt
test/widgets/widget_inspector_test.dart
! sky_engine 0.0.99 from path
/Users/terry/flutter-engine2-git/engine/src/out/host_debug_unopt/gen/dart-pkg/sky_engine
! sky_services 0.0.99 from path
/Users/terry/flutter-engine2-git/engine/src/out/host_debug_unopt/gen/dart-pkg/sky_services
Running "flutter pub get" in flutter... 0.5s
Cannot find Flutter shell at
/Users/terry/flutter-engine2-git/engine/src/out/android_debug_unopt/flutter_tester
Is there something else I need to do?
…On Thu, May 30, 2019 at 12:57 PM Jason Simmons ***@***.***> wrote:
The widget_inspector_test error still occurs if I remove const on those
lines
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9134?email_source=notifications&email_token=AAPV5QMRQIYS6M47NSWWD3TPYAWT5A5CNFSM4HQYENJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWTLHFA#issuecomment-497464212>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPV5QPCGX44RCOPF3JXLVLPYAWT5ANCNFSM4HQYENJA>
.
|
You can set
|
From the test failures it looks like the widget objects are not properly transformed. Is the Maybe the Flutter change did not account for this SDK change: dart-lang/sdk@b08397c |
@askeksa-google that patch from @mraleph should only apply to flutter engine b48c8b1 so I don't think that is it. Code used to determine whether to run tests that require --track-widget-creaiton. /// Returns whether [Widget] creation locations are available.
///
/// [Widget] creation locations are only available for debug mode builds when
/// the `--track-widget-creation` flag is passed to `flutter_tool`. Dart 2.0
/// is required as injecting creation locations requires a
/// [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
bool isWidgetCreationTracked() {
_widgetCreationTracked ??= _WidgetForTypeTests() is _HasCreationLocation;
return _widgetCreationTracked;
}
That patch shouldn't |
Aske is there anything in the CFE/kernel transformer AST that might be in the dill file (or something that's not computed until there is a dill file? Vijay mentioned there a dill dump tool - I'm going to look at the dump. If you think it's interesting to see this dill file I'll attach it too. |
==================================== Flutter test run w/o --track-widget-creation inside of widget_inspector_test.dart the WidgetInspectorService's isWidgetCreationTracked() is false therefore this test is not compiled w/ track-widget-creation from the kernel transformer point of view. ==================================== flutter test --track-widget-creation inside of the widget_inspector_test.dart the WidgetInspectorService's isWidgetCreationTracked() is true so this test should have been compiled w/ track-widget-creation There is a dill file generated testfile.dill.track.dill however the test fails because no creationLocation entry can be found (at the top-level same level as children) the getSelectedWidget JSON payload is:
==================================== When the dill file is generated all run with --track-widget-creation works, a dump of the dill file shows that creationLocation field exist so the tests all run successfully e.g.,
Notice after the dill is generated there is a creationLocation (at the same level as children prefix with **)
|
…lutter#9085)" (flutter#9134) This reverts commit 651c904. With this change applied, test/widgets/widget_inspector_test.dart is failing when run by the dev/bots/test.dart script in the framework tree.
Is there a plan to re-land this, now that the SDK issue is fixed by https://dart-review.googlesource.com/c/sdk/+/105661 ? |
Flutter 1.7 is locked into the Dart 2.4 and this fix
<https://dart-review.googlesource.com/c/sdk/+/105661> wont be cherry-picked
into 2.4. Jacob's PR, to use the new kernel transformer, will land in the
Flutter engine when the next > 2.4 Dart is rolled into Flutter and an
engine is built. This will happen sometime after June 24 when Flutter 1.7
stabilizes.
…On Fri, Jun 14, 2019 at 4:38 AM Aske Simon Christensen < ***@***.***> wrote:
Is there a plan to re-land this, now that the SDK issue is fixed by
https://dart-review.googlesource.com/c/sdk/+/105661 ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9134?email_source=notifications&email_token=AAPV5QOM4QJ4U7LZRBZQXPLP2N7MXA5CNFSM4HQYENJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWRFWI#issuecomment-502076121>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPV5QLEBI53HEABHSWL4JDP2N7MXANCNFSM4HQYENJA>
.
|
flutter/engine@8dc3a4c...4c4c0f8 git log 8dc3a4c..4c4c0f8 --no-merges --oneline 4c4c0f8 Add plugin shim to facilitate old plugins in new embedding (flutter#33478). (flutter/engine#9120) e8c2b17 Added support for transparent FlutterActivitys (flutter#32740). (flutter/engine#9115) 19c5029 Roll src/third_party/skia 29e013deb476..1013ecfb3421 (3 commits) (flutter/engine#9130) 45d39e1 Revert &flutter#34;Roll src/third_party/dart fee615c5a5..d5405d06f4 (21 commits) (flutter#9127)&flutter#34; (flutter/engine#9135) 44f1b44 Revert &flutter#34;Use track-widget-creation transformer included in the sdk. (flutter#9085)&flutter#34; (flutter/engine#9134) ae14c5a Roll src/third_party/dart fee615c5a5..d5405d06f4 (21 commits) (flutter/engine#9127) 3ea7ac8 Roll src/third_party/skia 633db4db7672..29e013deb476 (3 commits) (flutter/engine#9128) 8ad0e2f Roll src/third_party/skia 25b63f91b3b4..633db4db7672 (4 commits) (flutter/engine#9125) 37e6e0c Roll src/third_party/skia 8f88b2da05d5..25b63f91b3b4 (2 commits) (flutter/engine#9121) 37b367e Allow specifying both Dart and non-Dart fixtures in engine unit-tests. (flutter/engine#9113) 28f2c05 Roll src/third_party/skia 1f02e8488551..8f88b2da05d5 (3 commits) (flutter/engine#9116) 0932008 Remove outdated TODOs (flutter/engine#9114) c880ca2 Roll src/third_party/dart 50b0d85804..fee615c5a5 (4 commits) 6e51513 Removing unused imports (flutter/engine#9108) 9ee2697 Roll src/third_party/skia d04aaa3a841a..1f02e8488551 (8 commits) (flutter/engine#9109) fa2e2d9 Add checks to constructors and add missing constructor members (flutter/engine#9106) 7e1788a Fix unopt variants of profile and release builds. (flutter/engine#9107) 867120c Better help message. (flutter/engine#9097) e27c6e8 Forward custom IDE flags to GN. (flutter/engine#9023) 6b4ca8d Roll src/third_party/skia 176b214f91bc..d04aaa3a841a (7 commits) (flutter/engine#9105) a207318 Roll src/third_party/dart ec4d48e241..50b0d85804 (87 commits) 0a6aeb3 Roll src/third_party/skia 213aa46af167..176b214f91bc (2 commits) (flutter/engine#9100) f2e22aa Roll src/third_party/skia 7730d7cb8fb2..213aa46af167 (3 commits) (flutter/engine#9098) 557db42 Roll src/third_party/skia de7e074e8190..7730d7cb8fb2 (2 commits) (flutter/engine#9096) 64a4a0e Roll src/third_party/skia f06b6d5469a5..de7e074e8190 (1 commits) (flutter/engine#9094) fdee625 Roll src/third_party/skia 7e5a64f517e4..f06b6d5469a5 (2 commits) (flutter/engine#9093) daf47f0 Roll src/third_party/skia dc01a84ae098..7e5a64f517e4 (1 commits) (flutter/engine#9092) 41e10f0 Fix internal break since listing contents can return null (flutter/engine#9078) cf1b203 Roll src/third_party/skia f33c95cd6f55..dc01a84ae098 (3 commits) (flutter/engine#9091) 2404cdc Rename macOS FLEPlugin* to FlutterPlugin* (flutter/engine#9074) 509a43f Apply minor cleanups to Android embedding (flutter/engine#9088) 0a0f330 Removed outdated deprecation comments (flutter/engine#9087) a44cbbf Delete BSDiff sources (flutter/engine#9086) 0f1ff3b Correct typos, adopt US spellings (flutter/engine#9081) 651c904 Use track-widget-creation transformer included in the sdk. (flutter/engine#9085) cfa524f New Plugin API PR4: Adds Lifecycle support to the new plugin system. (flutter/engine#9049) 6b8ac18 Roll src/third_party/skia d9430297e74a..f33c95cd6f55 (5 commits) (flutter/engine#9082) 11408ef Update macOS podspec version requirement (flutter/engine#9077) 66c6ae4 Roll src/third_party/skia a4b837971c4b..d9430297e74a (30 commits) (flutter/engine#9080) 9151b37 Roll src/third_party/skia 9339a8a61af0..a4b837971c4b (34 commits) (flutter/engine#9076) ee6a9c4 Fix unchecked operation warnings in FlutterMain (flutter/engine#9073) 333042c Roll third_party/dart/tools/sdks to 2.3.0 (flutter/engine#9072) 01b8c07 Roll src/third_party/skia f77dbd04b926..9339a8a61af0 (12 commits) (flutter/engine#9065) 26b4fb5 Roll src/third_party/dart e3edfd36b2..ec4d48e241 (7 commits) 9d2d58a Add mouse button support to the macOS shell (flutter/engine#9054) ...
… sdk. (flutter#9085)" (flutter#9134)" This reverts commit 44f1b44.
This reverts commit 651c904.
With this change applied, test/widgets/widget_inspector_test.dart is failing
when run by the dev/bots/test.dart script in the framework tree.