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

Issue 635202 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Devserver failure reports as test failure.

Project Member Reported by dgarr...@chromium.org, Aug 6 2016

Issue description

We had devserver problems in the lab that killed a number of builds. These failures were all reported as test failures, not infrastructure. That's wrong.

Sample build:
https://uberchromegw.corp.google.com/i/chromeos/builders/peach_pit-paladin/builds/13206


Error from build logs:
03:41:07: WARNING: Exception is not retriable return code: 1; command: /b/cbuild/internal_master/chromite/third_party/swarming.client/swarming.py run --swarming chromeos-proxy.appspot.com --task-summary-json /tmp/cbuildbot-tmpZf1v6A/tmp_pM5Ne/temp_summary.json --raw-cmd --task-name peach_pit-paladin/R54-8676.0.0-rc1-bvt-cq --dimension os Ubuntu-14.04 --dimension pool default --print-status-updates --timeout 9000 --io-timeout 9000 --hard-timeout 9000 --expiration 1200 -- /usr/local/autotest/site_utils/run_suite.py --build peach_pit-paladin/R54-8676.0.0-rc1 --board peach_pit --suite_name suite_attr_wrapper --pool cq --num 6 --file_bugs False --priority CQ --timeout_mins 90 --retry True --max_retries 10 --minimum_duts 4 --offload_failures_only True --suite_args "{'attr_filter': '(suite:bvt-cq) and (subsystem:default)'}" -c
Priority was reset to 100
Triggered task: peach_pit-paladin/R54-8676.0.0-rc1-bvt-cq
chromeos-server31-172: 30731c2d71485810 1
  Autotest instance: cautotest
  08-05-2016 [03:41:02] Submitted create_suite_job rpc
  Error Message: StageControlFileFailure: Failed to stage peach_pit-paladin/R54-8676.0.0-rc1: staging artifacts=test_suites files=  for peach_pit-paladin/R54-8676.0.0-rc1 failed;HTTP OK not accompanied by 'Success'.
  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/rpc_utils.py", line 1336, in replacement
      return func(**kwargs)
    File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 248, in create_suite_job
      test_source_build, hostname=sample_dut)
    File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 143, in _stage_build_artifacts
      "Failed to stage %s: %s" % (build, e))
  StageControlFileFailure: Failed to stage peach_pit-paladin/R54-8676.0.0-rc1: staging artifacts=test_suites files=  for peach_pit-paladin/R54-8676.0.0-rc1 failed;HTTP OK not accompanied by 'Success'.
  
  Traceback (most recent call last):
    File "/usr/local/autotest/site_utils/run_suite.py", line 1737, in <module>
      sys.exit(main())
    File "/usr/local/autotest/site_utils/run_suite.py", line 1724, in main
      output_json = json.dumps(output_dict, sort_keys=True)
    File "/usr/lib/python2.7/json/__init__.py", line 250, in dumps
      sort_keys=sort_keys, **kw).encode(obj)
    File "/usr/lib/python2.7/json/encoder.py", line 209, in encode
      chunks = list(chunks)
    File "/usr/lib/python2.7/json/encoder.py", line 434, in _iterencode
      for chunk in _iterencode_dict(o, _current_indent_level):
    File "/usr/lib/python2.7/json/encoder.py", line 408, in _iterencode_dict
      for chunk in chunks:
    File "/usr/lib/python2.7/json/encoder.py", line 442, in _iterencode
      o = _default(o)
    File "/usr/lib/python2.7/json/encoder.py", line 184, in default
      raise TypeError(repr(o) + " is not JSON serializable")
  TypeError: JSONRPCException(u'StageControlFileFailure: Failed to stage peach_pit-paladin/R54-8676.0.0-rc1: staging artifacts=test_suites files=  for peach_pit-paladin/R54-8676.0.0-rc1 failed;HTTP OK not accompanied by \'Success\'.\nTraceback (most recent call last):\n  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 114, in dispatchRequest\n    results[\'result\'] = self.invokeServiceEndpoint(meth, args)\n  File "/usr/local/autotest/frontend/afe/json_rpc/serviceHandler.py", line 154, in invokeServiceEndpoint\n    return meth(*args)\n  File "/usr/local/autotest/frontend/afe/rpc_handler.py", line 125, in new_fn\n    return f(*args, **keyword_args)\n  File "/usr/local/autotest/frontend/afe/rpc_utils.py", line 1336, in replacement\n    return func(**kwargs)\n  File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 248, in create_suite_job\n    test_source_build, hostname=sample_dut)\n  File "/usr/local/autotest/frontend/afe/site_rpc_interface.py", line 143, in _stage_build_artifacts\n    "Failed to stage %s: %s" % (build, e))\nStageControlFileFailure: Failed to stage peach_pit-paladin/R54-8676.0.0-rc1: staging artifacts=test_suites files=  for peach_pit-paladin/R54-8676.0.0-rc1 failed;HTTP OK not accompanied by \'Success\'.\n',) is not JSON serializable


cwd=None

 
Status: Started (was: Untriaged)

Comment 2 by dshi@chromium.org, Aug 9 2016

Labels: -current-issue
Project Member

Comment 3 by bugdroid1@chromium.org, Aug 11 2016

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

commit c3aa769599fb805d8ecc2dad060da70cb58f61b6
Author: Allen Li <ayatane@chromium.org>
Date: Mon Aug 08 18:45:00 2016

[autotest] Convert exceptions to strings for JSON serialization

The output dict gets JSON serialized and returned to cbuildbot, but this
infra failure becomes a test failure due to the TypeError of trying to
serialize the exception object.

BUG= chromium:635202 
TEST=Eyeballs and prayers

Change-Id: I3c60a38f084ef82b439d6bf80bdde92bb50ab086
Reviewed-on: https://chromium-review.googlesource.com/366896
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@google.com>

[modify] https://crrev.com/c3aa769599fb805d8ecc2dad060da70cb58f61b6/site_utils/run_suite.py

Status: Fixed (was: Started)
Labels: VerifyIn-54

Comment 6 by dchan@chromium.org, Oct 7 2016

Labels: VerifyIn-55

Comment 7 by dchan@chromium.org, Oct 10 2016

Labels: -VerifyIn-55

Comment 8 by dchan@google.com, Nov 19 2016

Labels: VerifyIn-56

Comment 9 by dchan@google.com, Jan 21 2017

Labels: VerifyIn-57

Comment 10 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 11 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 12 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Labels: VerifyIn-61

Comment 14 by dchan@chromium.org, Oct 14 2017

Status: Archived (was: Fixed)

Sign in to add a comment