Chrome on Chrome OS is tested using a handful of frameworks, each of which you‘ll find running on Chrome’s CQ and waterfalls. If you're investigating failures in these tests, below are some tips for debugging and identifying the cause.
Tast is Chrome OS‘s integration testing framework. Since Chrome itself is instrumental to the Chrome OS system, it’s equally important that we run some of these integration tests on Chrome's waterfalls. If you find one of these tests failing (likely in the chrome_all_tast_tests
step), you can:
Inspect the failed test's log snippet: There should be a log link for each failed test with failure information. eg: For this failed build, opening the ui.WindowControl log link contains stack traces and error messages.
View browser & system logs: A common cause of failure on Chrome‘s builders are browser crashes. When this happens, each test’s log snippets will simply contain warnings like “Chrome probably crashed”. To debug these crashes, navigate to the test‘s Isolated output, listed in the build under the test step’s shard #0 isolated out link. There you‘ll find expanded logs for every test. For example, the tests/ui.WindowControl/messages log has more info than its earlier snippet. Additionally, you can find system logs under the system_logs/
prefix. To find a system log for a particular test, match the timestamps printed in the test’s log with the timestamps present in the system log filename. For instance, the previous ui.WindowControl
failure matches the system_logs/chrome/chrome_20201029-195153 browser log, which contains the culprit Chrome crash and backtrace.
There a couple ways to disable a test on Chrome's builders:
informational
attribute to the test‘s definition (see Tast attributes for more info). This can take time (ie: many hours) to land and propagate onto Chrome’s builders. So if you need the test disabled ASAP, consult the next option.chrome_all_tast_tests
step, add it to this list.In both cases, please make sure a bug is filed for the test, and route it to the appropriate owners.
To run a Tast test the same way it‘s ran on Chrome’s builders:
Decide which Chrome OS device type or VM to test on.
Build Chrome via the Simple Chrome workflow for that board.
Deploy your Chrome to the device via the deploy_chrome.py tool.
Finally, run the Tast test on the device via the cros_run_test
tool under //third_party/chromite/bin/
. eg: cros_run_test --device $DEVICE_IP --tast ui.ChromeLogin
. See here for more info on cros_run_test.
TODO: Add instructions for debugging telemetry failures.
TODO: Add instructions for debugging GTest failures.
TODO: Add instructions for rerunning these tests locally.