-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
8e13e9f
to
8e9a8db
Compare
6a00db0
to
904fecd
Compare
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! 🥳
12fd7a2
to
ffd48f5
Compare
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
-d
flag and its value out of theflutter
command line - Run
flutter devices --machine
which will spit out some json on stdout. - Search for the device given by
-d
in the json and grab the info out of thetargetPlatform
orsdk
field(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
ffd48f5
to
e0d7981
Compare
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. |
e0d7981
to
739ae61
Compare
13920e3
to
dc69440
Compare
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 john@johnmccutchan.com 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 aaclarke@google.com,rmistry@google.com,zra@google.com 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
run
command builds both the host and target engines and then invokesflutter run
so 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 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.Also: