New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 845054 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 836254



Sign in to add a comment

FilesApp FileDialog browser test takes too long

Project Member Reported by noel@chromium.org, May 21 2018

Issue description

The FileDialog browser test should be split it into three separate tests. The current test loads the open file dialog _three times_ in each test fixture to test:

  - clicking the file dialog ok button
  - clicking the file dialog cancel button
  - sending the file dialog an ESC key

This makes the test-time long, which leads to persistent TIMEOUT-PASS flakes on the (slow) DEBUG/ASAN/MSAN bots.

By splitting the test into three parts, flakes will be mostly eliminated, and overall run-time of FileDialog browser tests _will be reduced_ [1] even though there are more test cases.

[1] TIMEOUT-PASS flakes cause a test to run again, effectively doubling the test-time of the FileDialog browser tests.
 

Comment 1 by noel@chromium.org, May 21 2018

Blocking: 836254

Comment 2 by noel@chromium.org, May 21 2018

An example FileDialog browser test result on the main waterfall (attached).
file-dialog-flap-tastic-browser-test.png
75.0 KB View Download

Comment 3 by noel@chromium.org, May 21 2018

Long test-time flirts with the MSAN/ASN/DEBUG bot time-out limits, which gets hit too often (due to whatever other browser tests the bot is running at the time).

Comment 4 Deleted

Comment 5 Deleted

Project Member

Comment 6 by bugdroid1@chromium.org, May 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e63f0a4fd560818c396a518b37ab5f37876533f0

commit e63f0a4fd560818c396a518b37ab5f37876533f0
Author: Noel Gordon <noel@chromium.org>
Date: Mon May 21 06:11:52 2018

Deflake FileDialog browser test: split it into separate test cases

Split the test for Ok button, Cancel button, ESC key, closing the open
file dialog into separate test cases.

Formerly the test tried to do all three per test case, but that causes
persistent TIMEOUT-PASS flakes on MSAN/ASAN/DEBUG bots [1].

Splitting the test into separate test cases will shorten the test-time
and hopefully minimize TIMEOUT-PASS flake likelihood on those bots.

FileDialog is not supported in Mash, so add Mash bot filter exclusions
for the new tests added in this change-set:

  FileDialog/FilesAppBrowserTest.Test/openFileDialogCancelDrive
  FileDialog/FilesAppBrowserTest.Test/openFileDialogEscapeDrive
  FileDialog/FilesAppBrowserTest.Test/openFileDialogCancelDownloads
  FileDialog/FilesAppBrowserTest.Test/openFileDialogEscapeDownloads

[1] See  crbug.com/845054#c2 

Test: browser_tests --gtest_filter="FileDialog/FilesApp*"
Bug:  845054 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Idaa629727fb78babe96a51d4e0b89e43fb9abc97
Reviewed-on: https://chromium-review.googlesource.com/1065718
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Reviewed-by: Tomasz Mikolajewski <mtomasz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560236}
[modify] https://crrev.com/e63f0a4fd560818c396a518b37ab5f37876533f0/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
[modify] https://crrev.com/e63f0a4fd560818c396a518b37ab5f37876533f0/testing/buildbot/filters/mash.browser_tests.filter
[modify] https://crrev.com/e63f0a4fd560818c396a518b37ab5f37876533f0/ui/file_manager/integration_tests/file_manager/file_dialog.js

Comment 7 by noel@chromium.org, May 21 2018

Labels: CrOSFilesCategory-Testing

Comment 8 Deleted

Comment 9 by noel@chromium.org, May 22 2018

Ahem, making Files.App browser tests faster, more focussed, can way improve the flake situation, and that improves the lives of chromium developers in general. A reading from the Flakiness Dashboard after #6, for browser test:

  FileDialog/FilesAppBrowserTest.Test/openFileDialogDownloads

FileDialog:FilesAppBrowserTest.Test:openFileDialogDownloads.png
85.8 KB View Download

Comment 10 by noel@chromium.org, May 22 2018

Owner: noel@chromium.org
Status: Fixed (was: Untriaged)
Before shot #2, after shot #9, bye bye persistent bot flakiness.

Sign in to add a comment