-
Notifications
You must be signed in to change notification settings - Fork 6k
Add et run command #51037
Add et run command #51037
Conversation
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.
Awesome work! 🥳
|
I can't land this change because: I don't think the lint is useful. |
| "os=Mac-13", | ||
| "os=Linux" |
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 LUCI recipes understand a | for specifying that either is okay. For example:
| "os=Mac-12|Mac-13", |
Hadn't added support for it since it wasn't needed, yet, but parsing that would go here: https://github.com/flutter/engine/blob/main/tools/pkg/engine_build_configs/lib/src/build_config.dart#L805.
| "os=Mac-13", | |
| "os=Linux" | |
| "os=Mac-13|Linux", |
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.
Will do this in a follow on CL.
| if (configName.isNotEmpty) { | ||
| return configName; | ||
| } | ||
| // TODO(johnmccutchan): We need a way to invoke flutter tool and be told |
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.
I think this would look like the following:
- Parse the
-dflag and its value out of thefluttercommand line - Run
flutter devices --machinewhich will spit out some json on stdout. - Search for the device given by
-din the json and grab the info out of thetargetPlatformorsdkfield(s).
If there's no -d flag, there's probably some magic to knowing which device is the default one, but this run command could always just require the flag.
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.
Thanks for this info, I will do this in a follow on CL.
tools/pkg/engine_build_configs/lib/src/build_config_runner.dart
Outdated
Show resolved
Hide resolved
|
auto label is removed for flutter/engine/51037, due to - The status or check suite Mac mac_host_engine has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
auto label is removed for flutter/engine/51037, due to - The status or check suite Linux linux_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label. |
The `run` command builds both the host and target engines and then invokes `flutter run` so that it runs with the custom engine builds. It is expected that 'et run' be used inside the directory of a flutter application. Command line flags passed after `--` will be forwarded to `flutter run`. Some examples: `et run` Build the debug variant and runs the app in that mode. `et run -- --profile` Build the profile variant and runs the app in that mode. `et run -- --release` Build the release variant and runs the app in that mode.
…144450) flutter/engine@0db468f...34cf95c 2024-03-01 [email protected] Add et run command (flutter/engine#51037) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
The
runcommand builds both the host and target engines and then invokesflutter runso that it runs the app using the custom engine builds.It is expected that 'et run' be used inside the directory of a flutter application.
Command line flags passed after
--will be forwarded toflutter run.Some examples:
et runBuild the debug variant and runs the app in that mode.et run -- --profileBuild the profile variant and runs the app in that mode.et run -- --releaseBuild the release variant and runs the app in that mode.Also: