Completion stage failing for local test builds. |
|||
Issue description
When I do a local build of cbuildbot for test purposes, I often get this error:
************************************************************
** FAIL Uprev (0:03:14) in /usr/local/google/home/dgarrett/sand/cbuild/chromite/bin/cros_mark_as_stable
************************************************************
** FAIL PreCQCompletion (0:00:01) with AttributeError
************************************************************
Failed in stage Uprev:
/usr/local/google/home/dgarrett/sand/cbuild/chromite/bin/cros_mark_as_stable failed (code=1)
Failed in stage PreCQCompletion:
Traceback (most recent call last):
File "/usr/local/google/home/dgarrett/sand/cbuild/chromite/cbuildbot/stages/generic_stages.py", line 629, in Run
self.PerformStage()
File "/usr/local/google/home/dgarrett/sand/cbuild/chromite/cbuildbot/stages/completion_stages.py", line 1001, in PerformStage
message = self.GetBuildFailureMessage()
File "/usr/local/google/home/dgarrett/sand/cbuild/chromite/cbuildbot/stages/completion_stages.py", line 985, in GetBuildFailureMessage
stage_failures = db.GetBuildsFailures([build_id])
AttributeError: 'NoneType' object has no attribute 'GetBuildsFailures'
,
Jun 8 2017
,
Jun 8 2017
this bug needs to be addressed. but a local successful build shouldn't hit into this ?
,
Jun 8 2017
I thought it was successful, but that might be because didn't keep looking in the log after I saw this.
,
Jun 23 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/bdc9ee95a12f583f50f33c98e931866f9ce680e8 commit bdc9ee95a12f583f50f33c98e931866f9ce680e8 Author: Ningning Xia <nxia@chromium.org> Date: Fri Jun 23 00:03:56 2017 Convert stage exception to stage failure message and record it. Local Cbuilbot runs don't have CIDB instance created, so for all the exceptions threw by the failed stages, convert them to stage failure messages and record them in results_lib.Result, which can be extracted locally to create BuildFailureMessage. BUG= chromium:694730 , chromium:728357 TEST=unit_tests Change-Id: I5ff885981d7ea5d62c1ee823fbbe93c71eef612b Reviewed-on: https://chromium-review.googlesource.com/541925 Commit-Ready: Ningning Xia <nxia@chromium.org> Tested-by: Ningning Xia <nxia@chromium.org> Reviewed-by: Aviv Keshet <akeshet@chromium.org> [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/lib/failures_lib_unittest.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/cbuildbot/stages/completion_stages.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/lib/build_failure_message.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/cbuildbot/stages/generic_stages.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/cbuildbot/stages/completion_stages_unittest.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/lib/results_lib.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/lib/failure_message_lib.py [modify] https://crrev.com/bdc9ee95a12f583f50f33c98e931866f9ce680e8/lib/failures_lib.py
,
Jun 23 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by dgarr...@chromium.org
, May 31 2017