-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add option to stream logs to file for flutter logs and way to use it in devicelab runs #84008
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
packages/flutter_tools/test/commands.shard/hermetic/logs_test.dart
Outdated
Show resolved
Hide resolved
jonahwilliams
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.
tool changes LGTM
|
dev/devicelab/bin/run.dart
Outdated
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes...
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
jmagman
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
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 doing this.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.