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

Side by Side Diff: scripts/slave/recipe_modules/v8/api.py

Issue 2329373002: V8: Log captured MB output in case of failure (Closed)
Patch Set: Remove test Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 argparse 5 import argparse
6 import contextlib 6 import contextlib
7 import datetime 7 import datetime
8 import difflib 8 import difflib
9 import random 9 import random
10 import re 10 import re
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 use_goma = (self.m.chromium.c.compile_py.compiler and 449 use_goma = (self.m.chromium.c.compile_py.compiler and
450 'goma' in self.m.chromium.c.compile_py.compiler) 450 'goma' in self.m.chromium.c.compile_py.compiler)
451 def step_test_data(): 451 def step_test_data():
452 # Fake gyp flags. 452 # Fake gyp flags.
453 # TODO(machenbach): Replace with gn args after the gn migration. 453 # TODO(machenbach): Replace with gn args after the gn migration.
454 return self.m.raw_io.test_api.stream_output( 454 return self.m.raw_io.test_api.stream_output(
455 'some line\n' 455 'some line\n'
456 'GYP_DEFINES=\'target_arch=x64 cool_flag=a=1\'\n' 456 'GYP_DEFINES=\'target_arch=x64 cool_flag=a=1\'\n'
457 'moar\n' 457 'moar\n'
458 ) 458 )
459 self.m.chromium.run_mb( 459 try:
460 self.m.properties['mastername'], 460 self.m.chromium.run_mb(
461 self.m.properties['buildername'], 461 self.m.properties['mastername'],
462 use_goma=use_goma, 462 self.m.properties['buildername'],
463 mb_config_path=self.m.path['checkout'].join( 463 use_goma=use_goma,
464 'infra', 'mb', 'mb_config.pyl'), 464 mb_config_path=self.m.path['checkout'].join(
465 gyp_script=self.m.path.join('gypfiles', 'gyp_v8'), 465 'infra', 'mb', 'mb_config.pyl'),
466 stdout=self.m.raw_io.output(), 466 gyp_script=self.m.path.join('gypfiles', 'gyp_v8'),
467 step_test_data=step_test_data, 467 stdout=self.m.raw_io.output(),
468 ) 468 step_test_data=step_test_data,
469 # Log captured output. 469 )
470 self.m.step.active_result.presentation.logs['stdout'] = ( 470 finally:
471 self.m.step.active_result.stdout.splitlines()) 471 # Log captured output.
472 self.m.step.active_result.presentation.logs['stdout'] = (
473 self.m.step.active_result.stdout.splitlines())
472 474
473 # Update the build environment dictionary, which is printed to the 475 # Update the build environment dictionary, which is printed to the
474 # user on test failures for easier build reproduction. 476 # user on test failures for easier build reproduction.
475 self._update_build_environment(self.m.step.active_result.stdout) 477 self._update_build_environment(self.m.step.active_result.stdout)
476 478
477 self.peek_gn() 479 self.peek_gn()
478 self.m.chromium.compile(**kwargs) 480 self.m.chromium.compile(**kwargs)
479 self.isolate_tests() 481 self.isolate_tests()
480 482
481 # TODO(machenbach): This should move to a dynamorio module as soon as one 483 # TODO(machenbach): This should move to a dynamorio module as soon as one
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 def report_culprits(self, culprit_range): 1237 def report_culprits(self, culprit_range):
1236 assert culprit_range 1238 assert culprit_range
1237 if len(culprit_range) > 1: 1239 if len(culprit_range) > 1:
1238 text = 'Suspecting multiple commits' 1240 text = 'Suspecting multiple commits'
1239 else: 1241 else:
1240 text = 'Suspecting %s' % culprit_range[0][:8] 1242 text = 'Suspecting %s' % culprit_range[0][:8]
1241 1243
1242 step_result = self.m.step(text, cmd=None) 1244 step_result = self.m.step(text, cmd=None)
1243 for culprit in culprit_range: 1245 for culprit in culprit_range:
1244 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit 1246 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit
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