Take screenshot when drive fails#78822
Conversation
There was a problem hiding this comment.
I tried for awhile to get DriveCommand working with the CommandRunner to actually run the test, but I eventually gave up after I couldn't pass in --no-pub
flutter/packages/flutter_tools/lib/src/commands/drive.dart
Lines 142 to 145 in ce318b7
There was a problem hiding this comment.
hmm, I think this is wrong. We should always run pub by default, unless we're asked not to.
67fdedf to
7627fdb
Compare
|
Let's ignore the Cirrus failures for now as long as the LUCI equivalents pass #78678. |
jonahwilliams
left a comment
There was a problem hiding this comment.
LGTM
I can take a look at the pub issue tomorrow
|
(yeessssss.... #66153 (comment)) |
| '-d', | ||
| deviceId, | ||
| '--screenshot', | ||
| hostAgent.dumpDirectory.path, |
There was a problem hiding this comment.
I ran into issue where local environment does not have FLUTTER_LOGS_DIR
Add
--screenshotoption toflutter driveto take a screenshot when the tests fail. This should make it easier to debug timeout failures like #78805. Since it doesn't rely on VM'sscreenshotthis should also help us detect that the app launched but is just sitting on a white screen because the engine failed to initialize.Adopt in devicelab tests to point to the directory that gets uploaded via LUCI recipe.
I purposely regressed #75665 locally, and lo:
I wouldn't have had to SSH into the host to figure out the device was sideways.