New issue
Advanced search Search tips

Issue 740796 link

Starred by 3 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

video_PlaybackPerf on cyan: 'NoneType' object has no attribute '__getitem__'

Project Member Reported by henryhsu@chromium.org, Jul 11 2017

Issue description

failed on 9732.0.0 and 9731.0.0
https://pantheon.corp.google.com/storage/browser/chromeos-autotest-results/127866727-chromeos-test/chromeos4-row6-rack9-host8/debug/

07/10 16:37:54.861 DEBUG|             utils:0212| Running 'mkdir -p /usr/local/autotest/results/default/video_PlaybackPerf/sysinfo/var'
07/10 16:37:54.873 DEBUG|             utils:0212| Running 'rsync --no-perms --chmod=ugo+r -a --exclude=autoserv* --safe-links  /var/log /usr/local/autotest/results/default/video_PlaybackPerf/sysinfo/var'
07/10 16:37:54.974 ERROR|          parallel:0026| child process failed
07/10 16:37:54.987 DEBUG|          parallel:0030| Traceback (most recent call last):
07/10 16:37:54.988 DEBUG|          parallel:0030|   File "/usr/local/autotest/bin/parallel.py", line 18, in fork_start
07/10 16:37:54.989 DEBUG|          parallel:0030|     l()
07/10 16:37:54.989 DEBUG|          parallel:0030|   File "/usr/local/autotest/bin/job.py", line 483, in <lambda>
07/10 16:37:54.990 DEBUG|          parallel:0030|     l = lambda : test.runtest(self, url, tag, args, dargs)
07/10 16:37:54.990 DEBUG|          parallel:0030|   File "/usr/local/autotest/bin/test.py", line 117, in runtest
07/10 16:37:54.991 DEBUG|          parallel:0030|     job.sysinfo.log_after_each_iteration)
07/10 16:37:54.991 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 902, in runtest
07/10 16:37:54.992 DEBUG|          parallel:0030|     mytest._exec(args, dargs)
07/10 16:37:54.992 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 610, in _exec
07/10 16:37:54.992 DEBUG|          parallel:0030|     _call_test_function(self.execute, *p_args, **p_dargs)
07/10 16:37:54.993 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 824, in _call_test_function
07/10 16:37:54.994 DEBUG|          parallel:0030|     raise error.UnhandledTestFail(e)
07/10 16:37:54.994 DEBUG|          parallel:0030| UnhandledTestFail: Unhandled TypeError: 'NoneType' object has no attribute '__getitem__'
07/10 16:37:54.994 DEBUG|          parallel:0030| Traceback (most recent call last):
07/10 16:37:54.995 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 818, in _call_test_function
07/10 16:37:54.995 DEBUG|          parallel:0030|     return func(*args, **dargs)
07/10 16:37:54.995 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 471, in execute
07/10 16:37:54.996 DEBUG|          parallel:0030|     dargs)
07/10 16:37:54.996 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 348, in _call_run_once_with_retry
07/10 16:37:54.997 DEBUG|          parallel:0030|     postprocess_profiled_run, args, dargs)
07/10 16:37:54.997 DEBUG|          parallel:0030|   File "/usr/local/autotest/common_lib/test.py", line 381, in _call_run_once
07/10 16:37:54.997 DEBUG|          parallel:0030|     self.run_once(*args, **dargs)
07/10 16:37:54.998 DEBUG|          parallel:0030|   File "/usr/local/autotest/cros/video/helper_logger.py", line 82, in call
07/10 16:37:54.998 DEBUG|          parallel:0030|     return func(*args, **kwargs)
07/10 16:37:54.999 DEBUG|          parallel:0030|   File "/usr/local/autotest/tests/video_PlaybackPerf/video_PlaybackPerf.py", line 124, in run_once
07/10 16:37:54.999 DEBUG|          parallel:0030|     keyvals = self.test_power(local_path)
07/10 16:37:54.999 DEBUG|          parallel:0030|   File "/usr/local/autotest/tests/video_PlaybackPerf/video_PlaybackPerf.py", line 213, in test_power
07/10 16:37:55.000 DEBUG|          parallel:0030|     self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
07/10 16:37:55.000 DEBUG|          parallel:0030|   File "/usr/local/autotest/cros/power_status.py", line 481, in assert_battery_state
07/10 16:37:55.001 DEBUG|          parallel:0030|     percent_initial_charge = self.percent_current_charge()
07/10 16:37:55.001 DEBUG|          parallel:0030|   File "/usr/local/autotest/cros/power_status.py", line 462, in percent_current_charge
07/10 16:37:55.001 DEBUG|          parallel:0030|     return self.battery[0].charge_now * 100 / \
07/10 16:37:55.002 DEBUG|          parallel:0030| TypeError: 'NoneType' object has no attribute '__getitem__'
07/10 16:37:55.002 DEBUG|          parallel:0030| 
07/10 16:37:55.067 INFO |               job:0227| 		FAIL	video_PlaybackPerf	video_PlaybackPerf	timestamp=1499729875	localtime=Jul 10 16:37:55	Unhandled TypeError: 'NoneType' object has no attribute '__getitem__'
  Traceback (most recent call last):
    File "/usr/local/autotest/common_lib/test.py", line 818, in _call_test_function
      return func(*args, **dargs)
    File "/usr/local/autotest/common_lib/test.py", line 471, in execute
      dargs)
    File "/usr/local/autotest/common_lib/test.py", line 348, in _call_run_once_with_retry
      postprocess_profiled_run, args, dargs)
    File "/usr/local/autotest/common_lib/test.py", line 381, in _call_run_once
      self.run_once(*args, **dargs)
    File "/usr/local/autotest/cros/video/helper_logger.py", line 82, in call
      return func(*args, **kwargs)
    File "/usr/local/autotest/tests/video_PlaybackPerf/video_PlaybackPerf.py", line 124, in run_once
      keyvals = self.test_power(local_path)
    File "/usr/local/autotest/tests/video_PlaybackPerf/video_PlaybackPerf.py", line 213, in test_power
      self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
    File "/usr/local/autotest/cros/power_status.py", line 481, in assert_battery_state
      percent_initial_charge = self.percent_current_charge()
    File "/usr/local/autotest/cros/power_status.py", line 462, in percent_current_charge
      return self.battery[0].charge_now * 100 / \
  TypeError: 'NoneType' object has no attribute '__getitem__'
 
Status: Started (was: Untriaged)
Looks like it happens on one particular cyan device "chromeos4-row6-rack9-host8"
https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/testDetails?testName=video_PlaybackPerf&suite=&daysBack=30&board=&architecture=&boardFamily=&buildConfig=&reason=&version=&milestone=61&dut=

There is no battery stat in sysfs (is battery broken?)
07/10 07:07:14.392 WARNI|      power_status:0415| System does not provide power sysfs interface

ssh to chromeos4-row6-rack9-host8.cros:
localhost ~ # ls -al /sys/class/power_supply/                                                                                                      
total 0
drwxr-xr-x.  2 root root 0 Jul 10 19:51 .
drwxr-xr-x. 54 root root 0 Jul 10 19:51 ..
lrwxrwxrwx.  1 root root 0 Jul 10 19:51 AC -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC

No battery device
Owner: rohi...@chromium.org
Status: Assigned (was: Started)
Hi Rohit,

one Cyan lab device "chromeos4-row6-rack9-host8" seems to have battery issue, under /sys/class/power_supply/ there is no battery device detected so it causes many test failures recently.

Could you help to assign to someone to check the device? Thanks

In chromeos4-row6-rack9-host8.cros:
localhost ~ # ls -al /sys/class/power_supply/                                                                                                      
total 0
drwxr-xr-x.  2 root root 0 Jul 10 19:51 .
drwxr-xr-x. 54 root root 0 Jul 10 19:51 ..
lrwxrwxrwx.  1 root root 0 Jul 10 19:51 AC -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC

Cc: rohi...@chromium.org ka...@chromium.org
Owner: vsu...@chromium.org
Is this device part of the performance pool?

Comment 4 by vsu...@chromium.org, Jul 14 2017

rohitbm@, I checked cautotest for this DUT and it is labelled as 'pool:bvt', does that answer your question?
Is there a reason video_PlaybackPerf running on a pool:bvt device?




Comment 6 by vsu...@chromium.org, Jan 30 2018

Status: Started (was: Assigned)
Following up here regarding Cyan: https://bugs.chromium.org/p/chromium/issues/detail?id=807819

Sign in to add a comment