New issue
Advanced search Search tips

Issue 898259 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

power_LoadTest.fast : veyron : fails with "IndexError: list index out of range"

Project Member Reported by tbroch@google.com, Oct 23

Issue description

power_LoadTest.fast,

https://stainless.corp.google.com/browse/chromeos-autotest-results/250174083-chromeos-test/


10/20 04:54:03.153 WARNI|              test:0606| The test failed with the following exception
Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 600, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/common_lib/test.py", line 806, in _call_test_function
    raise error.UnhandledTestFail(e)
UnhandledTestFail: Unhandled IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/local/autotest/common_lib/test.py", line 800, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/common_lib/test.py", line 464, in execute
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/common_lib/test.py", line 375, in _call_run_once
    self.postprocess_iteration()
  File "/usr/local/autotest/tests/power_LoadTest/power_LoadTest.py", line 527, in postprocess_iteration
    tdash.upload()
  File "/usr/local/autotest/cros/power/power_dashboard.py", line 212, in upload
    raw_measurement = self._convert()
  File "/usr/local/autotest/cros/power/power_dashboard.py", line 388, in _convert
    self._tag_with_checkpoint(power_dict)
  File "/usr/local/autotest/cros/power/power_dashboard.py", line 321, in _tag_with_checkpoint
    checkpoint_dict = self._create_checkpoint_dict()
  File "/usr/local/autotest/cros/power/power_dashboard.py", line 315, in _create_checkpoint_dict
    start_time = self._logger.times[0]
IndexError: list index out of range

 
Cc: puthik@chromium.org
Owner: tbroch@chromium.org
Status: Started (was: Untriaged)
Also affecting veyron power_* tests that use power_test base class.

Still need to figure out why tdash isn't producing anything to upload but probably makes sense to print warning and not throw exception regardless.
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 25

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/47c8b9931f4c40a678a50cb0f10dd673e6a615b7

commit 47c8b9931f4c40a678a50cb0f10dd673e6a615b7
Author: Todd Broch <tbroch@chromium.org>
Date: Thu Oct 25 22:19:03 2018

power_dashboard: ignore empty readings in logger.

BUG= chromium:898259 
TEST=power_LoadTest.fast
- test passes on veyron_* platforms
- see warning, 'No readings in logger ... ignoring'

Change-Id: Ia14fad264abd155799ba23050538b41f3fe5bd33
Reviewed-on: https://chromium-review.googlesource.com/1297713
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Puthikorn Voravootivat <puthik@chromium.org>

[modify] https://crrev.com/47c8b9931f4c40a678a50cb0f10dd673e6a615b7/client/cros/power/power_dashboard.py

Sign in to add a comment