New issue
Advanced search Search tips

Issue 873915 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 836254



Sign in to add a comment

Speed-up keyboardDeleteDrive tests on Mash

Project Member Reported by noel@chromium.org, Aug 14

Issue description

See Mash browser tests https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=mash_browser_tests&tests=KeyboardOperations%2FFilesAppBrowser

All test looking good, _except_ the delete on Drive tests

KeyboardOperations/FilesAppBrowserTest.Test/keyboardDeleteDrive
KeyboardOperations/FilesAppBrowserTest.Test/keyboardDeleteDrive_DriveFs

Note: normally Drive tests are a bit faster than Downloads tests, but not in this case it seems.

Anyho, we can apply the usual test assay and speed-up story here:

  - only load the volume/files we need for a test
  - test do 2 delete tests
    - how about we delete one file
  - clean-up code, add-docs as needed etc

 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 14

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

commit 180a0fc9bd581262b2197e16d3329da22844a3c6
Author: Noel Gordon <noel@chromium.org>
Date: Tue Aug 14 05:56:58 2018

Clean-up keyboard_operations.js waitAndAcceptDialog

 Bug 873915  notes flakey time-outs on the Mash bots for keyboard delete
on Drive tests. The test LOG says the tests are in waitAndAcceptDialog
waiting for the .cr-dialog-ok button to appear.

waitAndAcceptDialog() looks ok-ish (so problem is somewhere else), but
while here, write the promise/then chain per ES6 normality.

Test: browser_tests --gtest_filter="KeyboardOperations/FilesApp*"
Bug:  873915 
Change-Id: I5292584a0436e19878eb57730370fd8941c389f6
Reviewed-on: https://chromium-review.googlesource.com/1173942
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582844}
[modify] https://crrev.com/180a0fc9bd581262b2197e16d3329da22844a3c6/ui/file_manager/integration_tests/file_manager/keyboard_operations.js

Owner: noel@chromium.org
Status: Started (was: Untriaged)
Cc: noel@chromium.org a...@chromium.org
 Issue 874042  has been merged into this issue.
 Issue 871684  has been merged into this issue.
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 15

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

commit 9973a074d1e4e4db5ad9f3e4af1c4e884a197688
Author: Noel Gordon <noel@chromium.org>
Date: Wed Aug 15 01:35:19 2018

Speed-up keyboard_operations.js delete file tests

 Bug 873915  notes flakey time-outs on the Mash bots for keyboard delete
on Drive tests. Speed-up the delete file tests by loading the one file
needed for the test (photos). Make the test delete one file (not two).

Minor: fix comments, group the keyboard delete test cases together.

Test: browser_tests --gtest_filter="*/FilesApp*keyboardDelete*"
Bug:  873915 
Change-Id: I2af501ef6b10cbad323991fcdec2f500260ad0d3
Reviewed-on: https://chromium-review.googlesource.com/1174336
Reviewed-by: Noel Gordon <noel@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583119}
[modify] https://crrev.com/9973a074d1e4e4db5ad9f3e4af1c4e884a197688/ui/file_manager/integration_tests/file_manager/keyboard_operations.js

Project Member

Comment 6 by bugdroid1@chromium.org, Aug 15

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

commit 03ea533a82e8c63c1bba8ec374efb8e5880993d7
Author: Noel Gordon <noel@chromium.org>
Date: Wed Aug 15 01:46:39 2018

Speed-up keyboard_operations.js copy file tests

Speed-up these copy tests by loading the one file needed for the test,
and adjust test comments.

Test: browser_tests --gtest_filter="*/FilesApp*keyboardCopy*"
Bug:  873915 
Change-Id: Icbac3f7dd25dfae5b1119f021e5b336a4406ff7a
Reviewed-on: https://chromium-review.googlesource.com/1174337
Reviewed-by: Noel Gordon <noel@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583121}
[modify] https://crrev.com/03ea533a82e8c63c1bba8ec374efb8e5880993d7/ui/file_manager/integration_tests/file_manager/keyboard_operations.js

Comment 7 Deleted

TODO: above does a directory delete.  We should add a separate delete test case for a file, as lucmult@ mentioned, the Files.app JS code branches on "flle vs directory" [1].

[1] https://cs.chromium.org/chromium/src/ui/file_manager/file_manager/common/js/util.js?l=192-196&rcl=8711d1bf063edb0ea021b23089b4dbd52c26f017
Project Member

Comment 9 by bugdroid1@chromium.org, Aug 15

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

commit f795f24dc859e264d6a4fb8146277a7a3a315439
Author: Noel Gordon <noel@chromium.org>
Date: Wed Aug 15 05:21:41 2018

Add keyboard_operations.js delete file test case

Deleting a file or folder exercise different code paths in Files app.
There is a test case for a folder (aka, a directory). Add a test case
for deleting a file.

Test: browser_tests --gtest_filter="*FilesApp*keyboardDelete*"
Bug:  873915 
Change-Id: I618f7808be3eab4f73a97068cd8298f05f464ed8
Reviewed-on: https://chromium-review.googlesource.com/1174588
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583172}
[modify] https://crrev.com/f795f24dc859e264d6a4fb8146277a7a3a315439/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
[modify] https://crrev.com/f795f24dc859e264d6a4fb8146277a7a3a315439/ui/file_manager/integration_tests/file_manager/keyboard_operations.js

Status: Fixed (was: Started)
Flakes moving off the right (eventually to /dev/null)
KeyboardOperations.FilesAppBrowserTest.Test.keyboardDeleteDrive.etc.png
226 KB View Download
Project Member

Comment 11 by bugdroid1@chromium.org, Aug 16

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

commit a1ba1c3a62a0c3465e4c5a9f1ffd3c62e978ad30
Author: Luciano Pacheco <lucmult@chromium.org>
Date: Thu Aug 16 06:29:27 2018

Remove unnecessary style recalculation from tests

Change extractElementInfo function to only extract the properties that
causes style recalculation if needed. This speeds up most of the tests
since they don't require style information.

Add waitForElementStyle to wait for element and also extract its style
properties and used where it is needed.

Manually tested locally and it improved the performance in a debug
build running all 262 integrations from 5m44s to 5m13s, an improvement
of ~10%.

Bug:  873915 
Change-Id: I4f5d66c2c730ec89c3c09482b1fd8cb493c5379e
Reviewed-on: https://chromium-review.googlesource.com/1174087
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583564}
[modify] https://crrev.com/a1ba1c3a62a0c3465e4c5a9f1ffd3c62e978ad30/ui/file_manager/file_manager/background/js/test_util_base.js
[modify] https://crrev.com/a1ba1c3a62a0c3465e4c5a9f1ffd3c62e978ad30/ui/file_manager/integration_tests/gallery/open_image_files.js
[modify] https://crrev.com/a1ba1c3a62a0c3465e4c5a9f1ffd3c62e978ad30/ui/file_manager/integration_tests/remote_call.js

Status: Verified (was: Fixed)

Sign in to add a comment