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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py

Issue 2203923004: Add loop for triggering try bots in --auto-update flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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 """Pull latest revisions of a W3C test repo and make a local commit.""" 5 """Pull latest revisions of a W3C test repo and make a local commit."""
6 6
7 import argparse 7 import argparse
8 import json 8 import json
9 import time 9 import time
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 try_bots = self.host.builders.all_try_builder_names() 69 try_bots = self.host.builders.all_try_builder_names()
70 data_file_path = self.finder.path_from_webkit_base('Tools', 'Scripts ', 'webkitpy', 'w3c', 'directory_owners.json') 70 data_file_path = self.finder.path_from_webkit_base('Tools', 'Scripts ', 'webkitpy', 'w3c', 'directory_owners.json')
71 with open(data_file_path) as data_file: 71 with open(data_file_path) as data_file:
72 directory_dict = self.parse_directory_owners(json.load(data_file )) 72 directory_dict = self.parse_directory_owners(json.load(data_file ))
73 self.print_('## Gathering directory owners email to CC') 73 self.print_('## Gathering directory owners email to CC')
74 _, out = self.run(['git', 'diff', 'master', '--name-only']) 74 _, out = self.run(['git', 'diff', 'master', '--name-only'])
75 email_list = self.generate_email_list(out, directory_dict) 75 email_list = self.generate_email_list(out, directory_dict)
76 self.print_('## Uploading change list.') 76 self.print_('## Uploading change list.')
77 self.check_run(self.generate_upload_command(email_list)) 77 self.check_run(self.generate_upload_command(email_list))
78 self.print_('## Triggering try jobs.') 78 self.print_('## Triggering try jobs.')
79 self.run(['git', 'cl', 'try'] + ['-b ' + try_bot for try_bot in try_ bots]) 79 for try_bot in try_bots:
80 self.run(['git', 'cl', 'try', '-b', try_bot])
80 self.print_('## Waiting for Try Job Results') 81 self.print_('## Waiting for Try Job Results')
81 if self.has_failing_results(): 82 if self.has_failing_results():
82 self.write_test_expectations() 83 self.write_test_expectations()
83 else: 84 else:
84 self.print_('No Failures, committing patch.') 85 self.print_('No Failures, committing patch.')
85 self.run(['git', 'cl', 'land', '-f']) 86 self.run(['git', 'cl', 'land', '-f'])
86 return 0 87 return 0
87 88
88 def parse_args(self, argv): 89 def parse_args(self, argv):
89 parser = argparse.ArgumentParser() 90 parser = argparse.ArgumentParser()
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 if results.get('Failures'): 353 if results.get('Failures'):
353 return True 354 return True
354 return False 355 return False
355 356
356 def generate_upload_command(self, email_list): 357 def generate_upload_command(self, email_list):
357 command = ['git', 'cl', 'upload', '-f', '-m', 'W3C auto test importer'] 358 command = ['git', 'cl', 'upload', '-f', '-m', 'W3C auto test importer']
358 command += ['--cc=' + email for email in email_list] 359 command += ['--cc=' + email for email in email_list]
359 if self.auth_refresh_token_json: 360 if self.auth_refresh_token_json:
360 command += ['--auth-refresh-token-json', self.auth_refresh_token_jso n] 361 command += ['--auth-refresh-token-json', self.auth_refresh_token_jso n]
361 return command 362 return command
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