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

Side by Side Diff: build/android/pylib/local/device/local_device_instrumentation_test_run.py

Issue 2834143002: [Android] Fix tombstone streaming to logdog. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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 logging 5 import logging
6 import os 6 import os
7 import posixpath 7 import posixpath
8 import re 8 import re
9 import time 9 import time
10 10
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 if not tombstones_url: 402 if not tombstones_url:
403 resolved_tombstones = tombstones.ResolveTombstones( 403 resolved_tombstones = tombstones.ResolveTombstones(
404 device, 404 device,
405 resolve_all_tombstones=True, 405 resolve_all_tombstones=True,
406 include_stack_symbols=False, 406 include_stack_symbols=False,
407 wipe_tombstones=True) 407 wipe_tombstones=True)
408 stream_name = 'tombstones_%s_%s' % ( 408 stream_name = 'tombstones_%s_%s' % (
409 time.strftime('%Y%m%dT%H%M%S', time.localtime()), 409 time.strftime('%Y%m%dT%H%M%S', time.localtime()),
410 device.serial) 410 device.serial)
411 tombstones_url = logdog_helper.text( 411 tombstones_url = logdog_helper.text(
412 stream_name, resolved_tombstones) 412 stream_name, '\n'.join(resolved_tombstones))
413 result.SetLink('tombstones', tombstones_url) 413 result.SetLink('tombstones', tombstones_url)
414 return results, None 414 return results, None
415 415
416 #override 416 #override
417 def _ShouldRetry(self, test): 417 def _ShouldRetry(self, test):
418 if 'RetryOnFailure' in test.get('annotations', {}): 418 if 'RetryOnFailure' in test.get('annotations', {}):
419 return True 419 return True
420 420
421 # TODO(jbudorick): Remove this log message once @RetryOnFailure has been 421 # TODO(jbudorick): Remove this log message once @RetryOnFailure has been
422 # enabled for a while. See crbug.com/619055 for more details. 422 # enabled for a while. See crbug.com/619055 for more details.
(...skipping 18 matching lines...) Expand all
441 if k in annotations: 441 if k in annotations:
442 timeout = v 442 timeout = v
443 break 443 break
444 else: 444 else:
445 logging.warning('Using default 1 minute timeout for %s', test_name) 445 logging.warning('Using default 1 minute timeout for %s', test_name)
446 timeout = 60 446 timeout = 60
447 447
448 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations) 448 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations)
449 449
450 return timeout 450 return timeout
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698