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

Issue 846189 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

autotest web frontend: can not create new job

Project Member Reported by yuhsuan@chromium.org, May 24 2018

Issue description

What steps will reproduce the problem?
(1) open autotest website and click "create job" (http://cautotest/afe/#tab_id=create_job)
(2) Fill image URL/Build (eg. link-release/R68-10709.0.0)
(3) Click "Fetch Tests from Build"

What is the expected result?
Can fetch tests correctly.

What happens instead?

It shows "Failed to update tests for given build."

Error log below is
'''
AttributeError: 'module' object has no attribute 'ENABLE_CONTROLS_IN_BATCH'
Traceback (most recent call last):
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 109, in dispatchRequest
    results['result'] = self.invokeServiceEndpoint(meth, args)
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 147, in invokeServiceEndpoint
    return meth(*args)
  File "/usr/local/autotest/frontend/afe/rpc_handler.py", line 270, in new_fn
    return f(*args, **keyword_args)
  File "/usr/local/autotest/frontend/afe/rpc_interface.py", line 2365, in get_tests_by_build
    if SuiteBase.ENABLE_CONTROLS_IN_BATCH:
AttributeError: 'module' object has no attribute 'ENABLE_CONTROLS_IN_BATCH'

------------------------------
Failed to update tests for given build.
'''



 
Owner: akes...@chromium.org
Cc: jrbarnette@chromium.org ayatane@chromium.org
Owner: xixuan@chromium.org
Related to https://chromium-review.googlesource.com/1031620 at all?
Project Member

Comment 3 by bugdroid1@chromium.org, Jun 1 2018

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

commit 94132edd45cc2030a60f0b5485c5403cb6c249dc
Author: Xixuan Wu <xixuan@chromium.org>
Date: Fri Jun 01 17:24:03 2018

autotest: Fix import of ENABLE_CONTROLS_IN_BATCH.

BUG= chromium:846189 
TEST=None

Change-Id: I63d0f600aec62a6098bbd6af21a5850448a68700
Reviewed-on: https://chromium-review.googlesource.com/1076892
Commit-Ready: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>

[modify] https://crrev.com/94132edd45cc2030a60f0b5485c5403cb6c249dc/frontend/afe/control_file.py
[modify] https://crrev.com/94132edd45cc2030a60f0b5485c5403cb6c249dc/frontend/afe/rpc_interface.py

Status: Verified (was: Available)
Thanks!

Sign in to add a comment