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

Issue 603302 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Apr 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Fetch Tests From Build does not work when at the job creation page

Project Member Reported by ntang@google.com, Apr 13 2016

Issue description

If I set the image URL "gandof-release/R50-7978.42.0", and click "Fetch Tests From Build", I got the error:

ControlVariableException: Error parsing data because invalid syntax (line 1)
Traceback (most recent call last):
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 114, in dispatchRequest
    results['result'] = self.invokeServiceEndpoint(meth, args)
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 154, in invokeServiceEndpoint
    return meth(*args)
  File "/usr/local/autotest/frontend/afe/rpc_handler.py", line 125, in new_fn
    return f(*args, **keyword_args)
  File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 995, in get_tests_by_build
    control_obj = control_data.parse_control_string(control_file)
  File "/usr/local/autotest/client/common_lib/control_data.py", line 344, in parse_control_string
    raise ControlVariableException("Error parsing data because %s" % e)
ControlVariableException: Error parsing data because invalid syntax (line 1)

------------------------------
Failed to update tests for given build.
------------------------------
ControlVariableException: Error parsing data because invalid syntax (line 1)
Traceback (most recent call last):
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 114, in dispatchRequest
    results['result'] = self.invokeServiceEndpoint(meth, args)
  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 154, in invokeServiceEndpoint
    return meth(*args)
  File "/usr/local/autotest/frontend/afe/rpc_handler.py", line 125, in new_fn
    return f(*args, **keyword_args)
  File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 995, in get_tests_by_build
    control_obj = control_data.parse_control_string(control_file)
  File "/usr/local/autotest/client/common_lib/control_data.py", line 344, in parse_control_string
    raise ControlVariableException("Error parsing data because %s" % e)
ControlVariableException: Error parsing data because invalid syntax (line 1)
 

Comment 1 by ntang@google.com, Apr 14 2016

Owner: ntang@chromium.org
Did some debugging. A invalid control file called "client/deps/telemetry_dep/test_src/third_party/catapult/third_party/gsutil/third_party/python-gflags/debian/control" is packaged inside the control_files.tar. The code choke on it.

Comment 2 by ntang@google.com, Apr 14 2016

Cc: dshi@chromium.org

Comment 4 by ntang@google.com, Apr 15 2016

Actually, we could not just exclude "client/deps". The files like "autotest/client/deps/telemetry_dep/control" is good control file. But "autotest/client/deps/telemetry_dep/test_src/third_party/catapult/third_party/gsutil/third_party/python-gflags/debian/control" is not. Probably, I will add a checkbox "Ignore Invalid Tests" on the UI.

Comment 6 by ntang@google.com, Apr 20 2016

Status: Fixed (was: Untriaged)
Bulk verified
Status: Verified (was: Fixed)
bulk verified

Sign in to add a comment