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

Issue 845699 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

cheets_NotificationTest is flaky: ERROR: Timed out waiting for condition: Notification is found

Project Member Reported by xiaoyinh@chromium.org, May 22 2018

Issue description

cheets_NotificationTest failed on reef-chrome-pfq 
Builder link: https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8945805114949567712

Log:http://cautotest-prod/tko/retrieve_logs.cgi?job=/results/202101013-chromeos-test/

ACTIVITY MANAGER RECENT TASKS (dumpsys activity recents)
  Recent tasks:
  * Recent #0: TaskRecord{df0fa28 #2 A=org.chromium.arc.testapp.notification U=0 StackId=2 sz=1}
    userId=0 effectiveUid=u0a51 mCallingUid=2000 mUserSetupComplete=true mCallingPackage=null
    affinity=org.chromium.arc.testapp.notification
    intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.chromium.arc.testapp.notification/.NotificationActivity}
    realActivity=org.chromium.arc.testapp.notification/.NotificationActivity
    autoRemoveRecents=false isPersistable=true numFullscreen=1 taskType=0 mTaskToReturnTo=1
    rootWasReset=false mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
    Activities=[ActivityRecord{428fd36 u0 org.chromium.arc.testapp.notification/.NotificationActivity t2}]
    askedCompatMode=false inRecents=true isAvailable=true
    lastThumbnail=null lastThumbnailFile=/data/system_ce/0/recent_images/2_task_thumbnail.png
    stackId=2
    hasBeenVisible=true mResizeMode=RESIZE_MODE_FORCE_RESIZEABLE isResizeable=true firstActiveTime=1527023040264 lastActiveTime=1527023040264 (inactive for 22s)
    Arc Window State:
    mWindowState=WINDOW_STATE_NORMAL mRestoreBounds=Rect(0, 0 - 0, 0)
  * Recent #1: TaskRecord{ec2e341 #1 A=org.chromium.arc.home U=0 StackId=0 sz=1}
    userId=0 effectiveUid=u0a46 mCallingUid=0 mUserSetupComplete=false mCallingPackage=null
    affinity=org.chromium.arc.home
    intent={act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=org.chromium.arc.home/.HomeActivity}
    realActivity=org.chromium.arc.home/.HomeActivity
    autoRemoveRecents=false isPersistable=true numFullscreen=1 taskType=1 mTaskToReturnTo=1
    rootWasReset=false mNeverRelinquishIdentity=true mReuseTask=false mLockTaskAuth=LOCK_TASK_AUTH_PINNABLE
    Activities=[ActivityRecord{bdcb6ab u0 org.chromium.arc.home/.HomeActivity t1}]
    askedCompatMode=false inRecents=true isAvailable=true
    lastThumbnail=null lastThumbnailFile=/data/system_ce/0/recent_images/1_task_thumbnail.png
    stackId=0
    hasBeenVisible=true mResizeMode=RESIZE_MODE_FORCE_RESIZEABLE isResizeable=false firstActiveTime=1527023040093 lastActiveTime=1527023040093 (inactive for 22s)
    Arc Window State:
    mWindowState=WINDOW_STATE_MAXIMIZED mRestoreBounds=Rect(0, 0 - 0, 0)
05/22 14:04:22.742 WARNI|               arc:0508| Iteration 1 failed, taking a screenshot.
05/22 14:04:23.074 DEBUG|              test:0420| after_iteration_hooks completed
05/22 14:04:23.076 WARNI|              test:0637| The test failed with the following exception
Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 631, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/common_lib/test.py", line 831, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/common_lib/test.py", line 495, in execute
    dargs)
  File "/usr/local/autotest/common_lib/test.py", line 362, in _call_run_once_with_retry
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/common_lib/test.py", line 400, in _call_run_once
    self.run_once(*args, **dargs)
  File "/usr/local/autotest/tests/cheets_NotificationTest/cheets_NotificationTest.py", line 63, in run_once
    sleep_interval=1)  # second
  File "/usr/local/autotest/common_lib/utils.py", line 2740, in poll_for_condition
    raise TimeoutError(desc)

+sheriffs, ARC Constable



 
Owner: levarum@chromium.org
levarum@, could you help to triage? 

Looks like it time out while trying to find a notification:
https://cs.corp.google.com/chromeos_internal/src/third_party/autotest-tests-cheets/client/site_tests/cheets_NotificationTest/cheets_NotificationTest.py?rcl=ddf55be3f02caca38034e29947407374b1d65939&l=60
Cc: edcourtney@chromium.org
Owner: yoshiki@chromium.org
@youshiki, could you check if there is any chrome change, that could have broken this test
I actually lean towards thinking that was a flake since the test pass on all other boards, and I don't see any reef specific in it.

One suspicious thing is Play Store download notification kicking in just after test sends its notification. From logcat:

05-22 14:04:18.568   222   222 D ArcNotificationsService: openOrUpdateWrapper (wrapperKey: 0|org.chromium.arc.testapp.notification|12345|null|10051)
05-22 14:04:18.574   222   222 E ArcNotificationsService: Extracted download completed notification string: Successfully installed


If this is the source of the flake, can we somehow fix or workaround it?
Status: Assigned (was: Untriaged)
This bug has an owner, thus, it's been triaged. Changing status to "assigned".
Components: Platform>Apps>ARC
Cc: khmel@chromium.org
Looks like here's another failure: https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8933846312825179792

+khmel as the current ARC constable
Summary: cheets_NotificationTest is flaky: ERROR: Timed out waiting for condition: Notification is found (was: cheets_NotificationTest failed on reef-chrome-pfq )

Sign in to add a comment