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

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

Issue 2061893003: Build delegation for perf tryjobs (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Refine request build procedures 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 collections 5 import collections
6 import contextlib 6 import contextlib
7 import copy 7 import copy
8 import itertools 8 import itertools
9 import json 9 import json
10 10
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 # build was not used at all, leading to confusion why source code changes 497 # build was not used at all, leading to confusion why source code changes
498 # are not taking effect. 498 # are not taking effect.
499 # 499 #
500 # The best way to ensure the old build directory is not used is to 500 # The best way to ensure the old build directory is not used is to
501 # remove it. 501 # remove it.
502 self.m.file.rmtree( 502 self.m.file.rmtree(
503 'build directory', 503 'build directory',
504 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs)) 504 self.m.chromium.c.build_dir.join(self.m.chromium.c.build_config_fs))
505 505
506 legacy_build_url = None 506 legacy_build_url = None
507 got_revision = update_step.presentation.properties['got_revision']
508 build_revision = build_revision or self.m.properties.get( 507 build_revision = build_revision or self.m.properties.get(
509 'parent_got_revision') or got_revision 508 'parent_got_revision') or update_step.presentation.properties[
RobertoCN 2016/06/24 18:46:37 This change is ok, but doesn't belong in this cl.
Ziqi Xiong 2016/06/27 18:47:55 Acknowledged.
509 'got_revision']
510 build_archive_url = build_archive_url or self.m.properties.get( 510 build_archive_url = build_archive_url or self.m.properties.get(
511 'parent_build_archive_url') 511 'parent_build_archive_url')
512 if build_archive_url is None: 512 if build_archive_url is None:
513 master_config = bot_db.get_master_settings(mastername) 513 master_config = bot_db.get_master_settings(mastername)
514 legacy_build_url = self._make_legacy_build_url(master_config, mastername) 514 legacy_build_url = self._make_legacy_build_url(master_config, mastername)
515 515
516 self.m.archive.download_and_unzip_build( 516 self.m.archive.download_and_unzip_build(
517 step_name='extract build', 517 step_name='extract build',
518 target=self.m.chromium.c.build_config_fs, 518 target=self.m.chromium.c.build_config_fs,
519 build_url=legacy_build_url, 519 build_url=legacy_build_url,
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 def get_compile_targets_for_scripts(self): 839 def get_compile_targets_for_scripts(self):
840 return self.m.python( 840 return self.m.python(
841 name='get compile targets for scripts', 841 name='get compile targets for scripts',
842 script=self.m.path['checkout'].join( 842 script=self.m.path['checkout'].join(
843 'testing', 'scripts', 'get_compile_targets.py'), 843 'testing', 'scripts', 'get_compile_targets.py'),
844 args=[ 844 args=[
845 '--output', self.m.json.output(), 845 '--output', self.m.json.output(),
846 '--', 846 '--',
847 ] + self.get_common_args_for_scripts(), 847 ] + self.get_common_args_for_scripts(),
848 step_test_data=lambda: self.m.json.test_api.output({})) 848 step_test_data=lambda: self.m.json.test_api.output({}))
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/perf_try/__init__.py » ('j') | scripts/slave/recipe_modules/perf_try/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698