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

Side by Side Diff: recipe_engine/run.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 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 | « recipe_engine/recipe_api.py ('k') | recipe_engine/simulation_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013-2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013-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 """Entry point for fully-annotated builds. 5 """Entry point for fully-annotated builds.
6 6
7 This script is part of the effort to move all builds to annotator-based 7 This script is part of the effort to move all builds to annotator-based
8 systems. Any builder configured to use the AnnotatorFactory.BaseFactory() 8 systems. Any builder configured to use the AnnotatorFactory.BaseFactory()
9 found in scripts/master/factory/annotator_factory.py executes a single 9 found in scripts/master/factory/annotator_factory.py executes a single
10 AddAnnotatedScript step. That step (found in annotator_commands.py) calls 10 AddAnnotatedScript step. That step (found in annotator_commands.py) calls
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 'TESTING_MASTERNAME' in os.environ or 441 'TESTING_MASTERNAME' in os.environ or
442 'TESTING_SLAVENAME' in os.environ)): 442 'TESTING_SLAVENAME' in os.environ)):
443 properties['use_mirror'] = False 443 properties['use_mirror'] = False
444 444
445 engine = RecipeEngine(stream, properties, test_data) 445 engine = RecipeEngine(stream, properties, test_data)
446 446
447 # Create all API modules and top level RunSteps function. It doesn't launch 447 # Create all API modules and top level RunSteps function. It doesn't launch
448 # any recipe code yet; RunSteps needs to be called. 448 # any recipe code yet; RunSteps needs to be called.
449 api = None 449 api = None
450 with stream.step('setup_build') as s: 450 with stream.step('setup_build') as s:
451 assert 'recipe' in properties # Should be ensured by get_recipe_properties. 451 assert 'recipe' in properties
452 recipe = properties['recipe'] 452 recipe = properties['recipe']
453 453
454 properties_to_print = properties.copy() 454 properties_to_print = properties.copy()
455 if 'use_mirror' in properties: 455 if 'use_mirror' in properties:
456 del properties_to_print['use_mirror'] 456 del properties_to_print['use_mirror']
457 457
458 run_recipe_help_lines = [ 458 run_recipe_help_lines = [
459 'To repro this locally, run the following line from a build checkout:', 459 'To repro this locally, run the following line from a build checkout:',
460 '', 460 '',
461 './scripts/tools/run_recipe.py %s --properties-file - <<EOF' % recipe, 461 './scripts/tools/run_recipe.py %s --properties-file - <<EOF' % recipe,
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 Args: 930 Args:
931 step: ConfigGroup object with information about the step, see 931 step: ConfigGroup object with information about the step, see
932 recipe_modules/step/config.py. 932 recipe_modules/step/config.py.
933 933
934 Returns: 934 Returns:
935 Opaque engine specific object that is understood by 'run_steps' method. 935 Opaque engine specific object that is understood by 'run_steps' method.
936 """ 936 """
937 return step.as_jsonish() 937 return step.as_jsonish()
938 938
939 939
OLDNEW
« no previous file with comments | « recipe_engine/recipe_api.py ('k') | recipe_engine/simulation_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698