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

Side by Side Diff: appengine/cr-buildbucket/swarming/test/swarming_test.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, 5 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 unified diff | Download patch
« no previous file with comments | « appengine/cr-buildbucket/swarming/swarming.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import base64 5 import base64
6 import contextlib 6 import contextlib
7 import datetime 7 import datetime
8 import json 8 import json
9 9
10 from components import auth 10 from components import auth
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 'status': model.BuildStatus.COMPLETED, 378 'status': model.BuildStatus.COMPLETED,
379 'result': model.BuildResult.FAILURE, 379 'result': model.BuildResult.FAILURE,
380 'failure_reason': model.FailureReason.INFRA_FAILURE, 380 'failure_reason': model.FailureReason.INFRA_FAILURE,
381 }, 381 },
382 382
383 { 383 {
384 'task_result': { 384 'task_result': {
385 'state': 'EXPIRED', 385 'state': 'EXPIRED',
386 }, 386 },
387 'status': model.BuildStatus.COMPLETED, 387 'status': model.BuildStatus.COMPLETED,
388 'result': model.BuildResult.CANCELED, 388 'result': model.BuildResult.FAILURE,
389 'cancelation_reason': model.CancelationReason.TIMEOUT, 389 'failure_reason': model.FailureReason.INFRA_FAILURE,
390 }, 390 },
391 391
392 { 392 {
393 'task_result': { 393 'task_result': {
394 'state': 'CANCELED', 394 'state': 'CANCELED',
395 }, 395 },
396 'status': model.BuildStatus.COMPLETED, 396 'status': model.BuildStatus.COMPLETED,
397 'result': model.BuildResult.CANCELED, 397 'result': model.BuildResult.CANCELED,
398 'cancelation_reason': model.CancelationReason.CANCELED_EXPLICITLY, 398 'cancelation_reason': model.CancelationReason.CANCELED_EXPLICITLY,
399 }, 399 },
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 self.assertEqual(build.status, model.BuildStatus.COMPLETED) 616 self.assertEqual(build.status, model.BuildStatus.COMPLETED)
617 self.assertEqual(build.result, model.BuildResult.FAILURE) 617 self.assertEqual(build.result, model.BuildResult.FAILURE)
618 self.assertEqual(build.failure_reason, model.FailureReason.INFRA_FAILURE) 618 self.assertEqual(build.failure_reason, model.FailureReason.INFRA_FAILURE)
619 self.assertIsNotNone(build.result_details) 619 self.assertIsNotNone(build.result_details)
620 self.assertIsNone(build.lease_key) 620 self.assertIsNone(build.lease_key)
621 self.assertIsNotNone(build.complete_time) 621 self.assertIsNotNone(build.complete_time)
622 622
623 623
624 def b64json(data): 624 def b64json(data):
625 return base64.b64encode(json.dumps(data)) 625 return base64.b64encode(json.dumps(data))
OLDNEW
« no previous file with comments | « appengine/cr-buildbucket/swarming/swarming.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698