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

Unified Diff: scripts/slave/recipe_modules/goma/resources/ensure_goma.py

Issue 1814713002: ensure_goma for goma canary (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/goma/resources/ensure_goma.py
diff --git a/scripts/slave/recipe_modules/goma/resources/ensure_goma.py b/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
index b65956b2b1e5d33e7948d2939db7a49d2f47ea4e..a2679d34f073e1811bc9baf71ef2b1096fe7347b 100755
--- a/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
+++ b/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
@@ -30,6 +30,7 @@ def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument('--target-dir', required=True)
parser.add_argument('--download-from-google-storage-path', required=True)
+ parser.add_argument('--canary', action='store_true')
args = parser.parse_args()
@@ -46,8 +47,11 @@ def main(argv):
subprocess.check_call(['git', 'clone', config['repo'], client_dir])
subprocess.check_call(['git', 'fetch'], cwd=client_dir)
+ rev = config['revision']
+ if arg.canary:
scottmg 2016/03/18 01:09:09 Here.
+ rev = 'refs/heads/master'
subprocess.check_call(
- ['git', 'reset', '--hard', config['revision']], cwd=client_dir)
+ ['git', 'reset', '--hard', rev], cwd=client_dir)
subprocess.check_call([sys.executable,
args.download_from_google_storage_path,

Powered by Google App Engine
This is Rietveld 408576698