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

Issue 650925 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug



Sign in to add a comment

"ToastManagerTest.PositionWithVisibleLeftShelf" is flaky

Project Member Reported by chromium...@appspot.gserviceaccount.com, Sep 28 2016

Issue description

"ToastManagerTest.PositionWithVisibleLeftShelf" is flaky.

This issue was created automatically by the chromium-try-flakes app. Please find the right owner to fix the respective test/step and assign this issue to them. If the step/test is infrastructure-related, please add Infra-Troopers label and change issue status to Untriaged. When done, please remove the issue from Sheriff Bug Queue by removing the Sheriff-Chromium label.

We have detected 3 recent flakes. List of all flakes can be found at https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM.

Flaky tests should be disabled within 30 minutes unless culprit CL is found and reverted. Please see more details here: https://sites.google.com/a/chromium.org/dev/developers/tree-sheriffs/sheriffing-bug-queues#triaging-auto-filed-flakiness-bugs
 
Owner: yoshiki@chromium.org
Status: Assigned (was: Untriaged)
yoshiki@ seems an owner of the test.  Could you take a look?
The test results are as follows.


ToastManagerTest.PositionWithVisibleLeftShelf (run #1):
[ RUN      ] ToastManagerTest.PositionWithVisibleLeftShelf
e:\c\win\srcsh\system	oast	oast_manager_unittest.cc(238): error: Value of: round(precise_toast_bounds.CenterPoint().x())
  Actual: 423
Expected: round(shelf_bounds.right() + (root_bounds.width() - shelf_bounds.width()) / 2.0)
Which is: 424
[  FAILED  ] ToastManagerTest.PositionWithVisibleLeftShelf (29 ms)

ToastManagerTest.PositionWithVisibleLeftShelf (run #2):
[ RUN      ] ToastManagerTest.PositionWithVisibleLeftShelf
e:\c\win\srcsh\system	oast	oast_manager_unittest.cc(238): error: Value of: round(precise_toast_bounds.CenterPoint().x())
  Actual: 423
Expected: round(shelf_bounds.right() + (root_bounds.width() - shelf_bounds.width()) / 2.0)
Which is: 424
[  FAILED  ] ToastManagerTest.PositionWithVisibleLeftShelf (31 ms)

ToastManagerTest.PositionWithVisibleLeftShelf (run #3):
[ RUN      ] ToastManagerTest.PositionWithVisibleLeftShelf
e:\c\win\srcsh\system	oast	oast_manager_unittest.cc(238): error: Value of: round(precise_toast_bounds.CenterPoint().x())
  Actual: 423
Expected: round(shelf_bounds.right() + (root_bounds.width() - shelf_bounds.width()) / 2.0)
Which is: 424
[  FAILED  ] ToastManagerTest.PositionWithVisibleLeftShelf (16 ms)

ToastManagerTest.PositionWithVisibleLeftShelf (run #4):
[ RUN      ] ToastManagerTest.PositionWithVisibleLeftShelf
e:\c\win\srcsh\system	oast	oast_manager_unittest.cc(238): error: Value of: round(precise_toast_bounds.CenterPoint().x())
  Actual: 423
Expected: round(shelf_bounds.right() + (root_bounds.width() - shelf_bounds.width()) / 2.0)
Which is: 424
[  FAILED  ] ToastManagerTest.PositionWithVisibleLeftShelf (32 ms)
Labels: -Sheriff-Chromium
Project Member

Comment 3 by chromium...@appspot.gserviceaccount.com, Sep 29 2016

Labels: Sheriff-Chromium
Detected 5 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app. Since flakiness is ongoing, the issue was moved back into Sheriff Bug Queue (unless already there).
Ping yoshiki@, can you please take a look at this test flake?
Project Member

Comment 5 by chromium...@appspot.gserviceaccount.com, Sep 30 2016

Detected 12 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app.
Status: Started (was: Assigned)
Let me look
Project Member

Comment 7 by chromium...@appspot.gserviceaccount.com, Oct 1 2016

Detected 9 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app.
Project Member

Comment 8 by chromium...@appspot.gserviceaccount.com, Oct 3 2016

Detected 3 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app.
Project Member

Comment 9 by chromium...@appspot.gserviceaccount.com, Oct 4 2016

Detected 5 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app.

Comment 10 by horo@chromium.org, Oct 5 2016

Labels: -Sheriff-Chromium
Project Member

Comment 11 by chromium...@appspot.gserviceaccount.com, Oct 5 2016

Labels: Sheriff-Chromium
Detected 5 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app. Since flakiness is ongoing, the issue was moved back into Sheriff Bug Queue (unless already there).

Comment 12 by gab@chromium.org, Oct 6 2016

Labels: -Sheriff-Chromium OS-Windows
Seems like a flaky off-by-one error.

@yoshiki please disable test by policy if you can't get it to pass promptly:

" Flaky tests should be disabled within 30 minutes unless culprit CL is found and reverted. Please see more details here: https://sites.google.com/a/chromium.org/dev/developers/tree-sheriffs/sheriffing-bug-queues#triaging-auto-filed-flakiness-bugs "
Project Member

Comment 13 by bugdroid1@chromium.org, Oct 6 2016

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

commit d7cbf7ccc5f21177c925657fd50c688ca437526a
Author: gab <gab@chromium.org>
Date: Thu Oct 06 19:42:20 2016

Log extra information on weird ToastManagerTest.PositionWithVisibleLeftShelf flake.

BUG= 650925 
TBR=sadrul

Review-Url: https://codereview.chromium.org/2394483006
Cr-Commit-Position: refs/heads/master@{#423635}

[modify] https://crrev.com/d7cbf7ccc5f21177c925657fd50c688ca437526a/ash/system/toast/toast_manager_unittest.cc

Project Member

Comment 14 by chromium...@appspot.gserviceaccount.com, Oct 6 2016

Labels: Sheriff-Chromium
Detected 9 new flakes for test/step "ToastManagerTest.PositionWithVisibleLeftShelf". To see the actual flakes, please visit https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyOAsSBUZsYWtlIi1Ub2FzdE1hbmFnZXJUZXN0LlBvc2l0aW9uV2l0aFZpc2libGVMZWZ0U2hlbGYM. This message was posted automatically by the chromium-try-flakes app. Since flakiness is ongoing, the issue was moved back into Sheriff Bug Queue (unless already there).

Comment 15 by gab@chromium.org, Oct 7 2016

From the logs it looks like the result arrives at 423.5 -- I guess that's
somehow nondeterministically rounded up/down depending on the precision of float
arithmetic?! Maybe even depends on a given bot's CPU architecture? e.g. whether
it's holding 423.50000000000000001 or 423.4999999999999 before rounding..?

error: Value of: round(precise_toast_bounds.CenterPoint().x())
  Actual: 423
Expected: round(shelf_bounds.right() + (root_bounds.width() -
shelf_bounds.width()) / 2.0)
Which is: 424
Shelf right bound: 47
Root width: 800
Shelf width: 47
Precise toast center x position: 423

I'm confused why this isn't deterministic but https://codereview.chromium.org/2391823004/ will fix this.
Project Member

Comment 16 by bugdroid1@chromium.org, Oct 7 2016

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

commit b407c4aba81c739c364901214ee203acda162281
Author: gab <gab@chromium.org>
Date: Fri Oct 07 19:22:58 2016

Revert of Log extra information on weird ToastManagerTest.PositionWithVisibleLeftShelf flake. (patchset #1 id:20001 of https://codereview.chromium.org/2394483006/ )

Reason for revert:
https://codereview.chromium.org/2391823004/ will fix  http://crbug.com/650925  and can't land as-is (patch failure) because of this CL

Original issue's description:
> Log extra information on weird ToastManagerTest.PositionWithVisibleLeftShelf flake.
>
> BUG= 650925 
> TBR=sadrul
>
> Committed: https://crrev.com/d7cbf7ccc5f21177c925657fd50c688ca437526a
> Cr-Commit-Position: refs/heads/master@{#423635}

TBR=sadrul@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 650925 

Review-Url: https://codereview.chromium.org/2402763002
Cr-Commit-Position: refs/heads/master@{#423928}

[modify] https://crrev.com/b407c4aba81c739c364901214ee203acda162281/ash/system/toast/toast_manager_unittest.cc

Project Member

Comment 17 by bugdroid1@chromium.org, Oct 7 2016

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

commit fbda6558904fcc065cfe88c47e3354a98b0b1d7b
Author: yoshiki <yoshiki@chromium.org>
Date: Fri Oct 07 19:43:05 2016

Use EXPECT_NEAR to compare float values

This patch uses EXPECT_NEAR to compare float values, to prevent comparison error. Previously "round" function was used to compare, but it was the cause of flakiness (see the issue for detail).

BUG= 650925 
TEST=Run tests 5 times on Win bots and observe no failure.

Review-Url: https://codereview.chromium.org/2391823004
Cr-Commit-Position: refs/heads/master@{#423937}

[modify] https://crrev.com/fbda6558904fcc065cfe88c47e3354a98b0b1d7b/ash/system/toast/toast_manager_unittest.cc

Comment 18 by gab@chromium.org, Oct 7 2016

Cc: gab@chromium.org
Status: Fixed (was: Started)
Should be fixed, will re-open if it reflakes.
Project Member

Comment 19 by bugdroid1@chromium.org, Oct 27 2016

Labels: merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d7cbf7ccc5f21177c925657fd50c688ca437526a

commit d7cbf7ccc5f21177c925657fd50c688ca437526a
Author: gab <gab@chromium.org>
Date: Thu Oct 06 19:42:20 2016

Log extra information on weird ToastManagerTest.PositionWithVisibleLeftShelf flake.

BUG= 650925 
TBR=sadrul

Review-Url: https://codereview.chromium.org/2394483006
Cr-Commit-Position: refs/heads/master@{#423635}

[modify] https://crrev.com/d7cbf7ccc5f21177c925657fd50c688ca437526a/ash/system/toast/toast_manager_unittest.cc

Comment 20 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840

Sign in to add a comment