Issue metadata
Sign in to add a comment
|
LockScreenNoteTakingTest.DataAvailableOnRestart is flaky |
||||||||||||||||||||||||
Issue descriptionFlaky test: LockScreenNoteTakingTest.DataAvailableOnRestart Sample failed build due to flakiness: https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-dbg/8686 Test output log: https://chromium-swarm.appspot.com/task?id=40f1f98c99a2fc10 Culprit (100.0% confidence): r605068 Analysis: https://findit-for-me.appspot.com/waterfall/flake?key=ag9zfmZpbmRpdC1mb3ItbWVyxQELEhdNYXN0ZXJGbGFrZUFuYWx5c2lzUm9vdCKOAWNocm9taXVtLmNocm9taXVtb3MvbGludXgtY2hyb21lb3MtZGJnLzg2ODYvc2luZ2xlX3Byb2Nlc3NfbWFzaF9icm93c2VyX3Rlc3RzL1RHOWphMU5qY21WbGJrNXZkR1ZVWVd0cGJtZFVaWE4wTGtSaGRHRkJkbUZwYkdGaWJHVlBibEpsYzNSaGNuUT0MCxITTWFzdGVyRmxha2VBbmFseXNpcxgBDA Please revert the culprit, or disable the test and find the appropriate owner. If the culprit above is wrong, please file a bug using this link: https://bugs.chromium.org/p/chromium/issues/entry?status=Unconfirmed&labels=Pri-1,Test-Findit-Wrong&components=Tools%3ETest%3EFindit%3EFlakiness&summary=%5BFindit%5D%20Flake%20Analyzer%20-%20Wrong%20result%20for%20LockScreenNoteTakingTest.DataAvailableOnRestart&comment=Link%20to%20Analysis%3A%20https://findit-for-me.appspot.com/waterfall/flake?key=ag9zfmZpbmRpdC1mb3ItbWVyxQELEhdNYXN0ZXJGbGFrZUFuYWx5c2lzUm9vdCKOAWNocm9taXVtLmNocm9taXVtb3MvbGludXgtY2hyb21lb3MtZGJnLzg2ODYvc2luZ2xlX3Byb2Nlc3NfbWFzaF9icm93c2VyX3Rlc3RzL1RHOWphMU5qY21WbGJrNXZkR1ZVWVd0cGJtZFVaWE4wTGtSaGRHRkJkbUZwYkdGaWJHVlBibEpsYzNSaGNuUT0MCxITTWFzdGVyRmxha2VBbmFseXNpcxgBDA Automatically posted by the findit-for-me app (https://goo.gl/Ot9f7N).
,
Nov 5
Removing sheriff label since the CL was reverted.
,
Nov 5
,
Nov 7
I'm hopeful that https://chromium-review.googlesource.com/c/chromium/src/+/1316438/ will help with this. I suspect the problem is related to how LockScreenNoteTakingTest runs 2 JS tests simultaneously then has multiple result catchers. The tests seem sensitive to having an additional runloop spin between the two result catchers, which makes me wonder if they happen to pass right now because there's some async event that's *not* happening because the test completes quickly. If this continues to be a problem I think we should either: 1. Disable the first-run toast in tests, which would simplify windowing behavior 2. Break the tests into parts so only one JS test runs in each GTEST
,
Nov 7
I'm not sure that cl will help - DataAvailableOnRestart does not use RunTestAppInLockScreenContext (and uses a single ResultCatcher). Let me take a closer look.
,
Nov 7
OK. You can run single_process_mash_browser_tests with browser_tests --enable-features=SingleProcessMash
,
Nov 7
I think something like this should fix it: https://chromium-review.googlesource.com/c/chromium/src/+/1324870
,
Nov 8
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a0502088c5fc9dfc91359637617689f22d1d08ce commit a0502088c5fc9dfc91359637617689f22d1d08ce Author: Toni Barzic <tbarzic@chromium.org> Date: Thu Nov 08 01:37:41 2018 Fix LockScreenNoteTakingTest.DataAvailableOnRestart The test has PRE_DataAvailableOnRestart part which creates a note in lock screen note storage. DataAvailableOnRestart then verifies that a onDataItemsAvailable event is dispatched as the user session is started. The event is dispatched early on during the test - before the test body is run, which means there is no guarantee that a result catcher created in the test body will be created before the test app runs all the tests, and thus it might miss a test result message. To fix the issue, update the LockScreenNoteTakingTest setup to create a result catcher just after the browser main parts are created - this should be early enough to catch any messages from the test app (i.e. before the event observed by the test app is dispatched), but late enough to have NotificationService available (without it extensions::ResultCatcher cannot be created). BUG= 901616 Change-Id: I58b3ccda9b93bc355bab7fb1f24e2d4a769c44d8 Reviewed-on: https://chromium-review.googlesource.com/c/1324870 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#606277} [modify] https://crrev.com/a0502088c5fc9dfc91359637617689f22d1d08ce/chrome/browser/chromeos/lock_screen_apps/note_taking_browsertest.cc
,
Nov 8
Flake dashboard seems happier since that CL landed. Thanks for fixing it! |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by bugdroid1@chromium.org
, Nov 3