From 276886160ba96748c901b7319ca8f876415269c6 Mon Sep 17 00:00:00 2001 From: Eric Boren Date: Mon, 16 Apr 2018 13:21:01 +0000 Subject: Revert "[infra] Run recipes through Kitchen" This reverts commit 7bbb26fee0dcd7c53c1f5b80f62966654dd823ba. Reason for revert: uploads broke task scheduler Original change's description: > [infra] Run recipes through Kitchen > > Bug: skia:7050 > Change-Id: I50632444eb4ca7f9ae2b1b30b766e531092ccad4 > Reviewed-on: https://skia-review.googlesource.com/82500 > Commit-Queue: Eric Boren > Reviewed-by: Ravi Mistry TBR=borenet@google.com,rmistry@google.com Change-Id: Ic3a5404fde844f01eca551d50039a84a20e84e11 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia:7050 Reviewed-on: https://skia-review.googlesource.com/121423 Reviewed-by: Eric Boren Commit-Queue: Eric Boren --- infra/bots/recipes/bundle_recipes.py | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 infra/bots/recipes/bundle_recipes.py (limited to 'infra/bots/recipes/bundle_recipes.py') diff --git a/infra/bots/recipes/bundle_recipes.py b/infra/bots/recipes/bundle_recipes.py new file mode 100644 index 0000000000..49310af55a --- /dev/null +++ b/infra/bots/recipes/bundle_recipes.py @@ -0,0 +1,40 @@ +# Copyright 2016 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + + +# Recipe module for Skia Swarming compile. + + +DEPS = [ + 'git', + 'recipe_engine/context', + 'recipe_engine/path', + 'recipe_engine/properties', + 'recipe_engine/step', +] + + +def RunSteps(api): + bundle_dir = api.properties['swarm_out_dir'] + '/recipe_bundle' + skia_dir = api.path['start_dir'].join('skia') + recipes_py = api.path['start_dir'].join('skia', 'infra', 'bots', 'recipes.py') + with api.git.env(): + with api.context(cwd=skia_dir): + api.step('git init', infra_step=True, + cmd=['git', 'init']) + api.step('git add', infra_step=True, + cmd=['git', 'add', '.']) + api.step('git commit', infra_step=True, + cmd=['git', 'commit', '-m', 'commit recipes']) + api.step('Bundle Recipes', infra_step=True, + cmd=['python', recipes_py, 'bundle', + '--destination', bundle_dir]) + + +def GenTests(api): + yield ( + api.test('BundleRecipes') + + api.properties(buildername='Housekeeper-PerCommit-BundleRecipes', + swarm_out_dir='[SWARM_OUT_DIR]') + ) -- cgit v1.2.3