Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: appengine/cr-buildbucket/swarming/swarming.py

Issue 2098203002: swarmbucket: task TIMED_OUT is infra failure (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/cr-buildbucket/swarming/test/swarming_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cr-buildbucket/swarming/swarming.py
diff --git a/appengine/cr-buildbucket/swarming/swarming.py b/appengine/cr-buildbucket/swarming/swarming.py
index d4970d747b035ba0e098871fb75e5a8666541f06..35033a46abcd6439ec9d3ab14ec13815a467bd69 100644
--- a/appengine/cr-buildbucket/swarming/swarming.py
+++ b/appengine/cr-buildbucket/swarming/swarming.py
@@ -424,8 +424,8 @@ def _update_build(build, result):
build.cancelation_reason = model.CancelationReason.CANCELED_EXPLICITLY
elif state == 'EXPIRED':
# Task did not start.
- build.result = model.BuildResult.CANCELED
- build.cancelation_reason = model.CancelationReason.TIMEOUT
+ build.result = model.BuildResult.FAILURE
+ build.failure_reason = model.FailureReason.INFRA_FAILURE
elif state == 'TIMED_OUT':
# Task started, but timed out.
build.result = model.BuildResult.FAILURE
« no previous file with comments | « no previous file | appengine/cr-buildbucket/swarming/test/swarming_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698