Add option to stream logs to file for flutter logs and way to use it in devicelab runs#84008
Add option to stream logs to file for flutter logs and way to use it in devicelab runs#84008dnfield merged 5 commits intoflutter:masterfrom
Conversation
packages/flutter_tools/test/commands.shard/hermetic/logs_test.dart
Outdated
Show resolved
Hide resolved
|
dev/devicelab/bin/run.dart
Outdated
There was a problem hiding this comment.
The arg is device-log-path. Probably worth adding device-logs-path as an alias to the arg if you, the person who wrote it a few minutes ago, couldn't quite remember which it was 😄
There was a problem hiding this comment.
WDYT of doing this as an optional arg vs. detecting LocalPlatform().environment[FLUTTER_LOGS_DIR]?
I mentionedin the issue, I'd rather avoid the HostAgent logic since I don't want to do this by default on local dev machines.
There was a problem hiding this comment.
As discussed in chat, uploaded a new change to make hostAGent not fall back to a local temp dir (and updated the test to make sure that's the case), and now using hostAgent.
packages/flutter_tools/test/commands.shard/hermetic/logs_test.dart
Outdated
Show resolved
Hide resolved
|
Argh. This doesn't work great. I'm going to instead directly interact with adb and idevicesyslog. |
|
Ok, now this works. I've renamed I've added new methods to I've wrapped task execution with actually collecting those logs. |
|
Most of the changes here are simple file renames. a3bfe1e is the meat of this change. |
|
Fixed up the merge conflicts. |
jmagman
left a comment
There was a problem hiding this comment.
LGTM
Thanks for renaming adb.dart, that should have been done awhile ago!
|
Since Dan is OOO this week, can we land this right away please? |
|
Oh I landed it. Not waiting ror another merge conflict. I'm semi-around. |
Fixes #84000
See also #83939, #77193
We'll need a recipe change to get this running on the recipes.