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

Side by Side Diff: projects.py

Issue 24243015: Pointing to a skia master domain name and reading list of required build steps from the master. (Closed) Base URL: https://src.chromium.org/chrome/trunk/tools/commit-queue/
Patch Set: Created 7 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 | « 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Define the supported projects.""" 4 """Define the supported projects."""
5 5
6 import json 6 import json
7 import logging 7 import logging
8 import os 8 import os
9 import re 9 import re
10 import sys 10 import sys
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 _get_skia_committers(), 493 _get_skia_committers(),
494 [re.escape(user)]), 494 [re.escape(user)]),
495 ] 495 ]
496 verifiers = [ 496 verifiers = [
497 presubmit_check.PresubmitCheckVerifier(context_obj), 497 presubmit_check.PresubmitCheckVerifier(context_obj),
498 tree_status.TreeStatusVerifier( 498 tree_status.TreeStatusVerifier(
499 'https://skia-tree-status.appspot.com') 499 'https://skia-tree-status.appspot.com')
500 ] 500 ]
501 501
502 if not no_try: 502 if not no_try:
503 # TODO(rmistry): This should instead be a URL that does not change. 503 # TODO(skia-infrastructure-team): Use skia.org instead of the below when it
504 try_server_url = 'http://173.255.115.253:10117/' 504 # is ready.
505 compile_required_build_steps = [ 505 try_server_url = 'http://skiabot-master.pogerlabs.com:10117/'
506 'BuildBench',
507 'BuildGm',
508 'BuildEverything',
509 'BuildSkiaLib',
510 'BuildTests',
511 'BuildTools',
512 ]
513 506
514 # Get the required build steps and builder names from the try server. 507 # Get the required build steps and builder names from the try server.
515 # compile_required_build_steps = json.load( 508 compile_required_build_steps = json.load(
516 # urllib2.urlopen( 509 urllib2.urlopen(
517 # try_server_url + 'json/cq_required_steps'))['cq_required_steps'] 510 try_server_url + 'json/cq_required_steps'))['cq_required_steps']
518 builder_names = list( 511 builder_names = list(
519 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) 512 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots')))
520 513
521 step_verifiers = [] 514 step_verifiers = []
522 for builder_name in builder_names: 515 for builder_name in builder_names:
523 step_verifiers.append( 516 step_verifiers.append(
524 try_job_steps.TryJobSteps( 517 try_job_steps.TryJobSteps(
525 builder_name=builder_name, 518 builder_name=builder_name,
526 steps=compile_required_build_steps)) 519 steps=compile_required_build_steps))
527 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( 520 verifiers.append(try_job_on_rietveld.TryRunnerRietveld(
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 """List the projects that can be managed by the commit queue.""" 729 """List the projects that can be managed by the commit queue."""
737 return sorted( 730 return sorted(
738 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) 731 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_'))
739 732
740 733
741 def load_project(project, user, root_dir, rietveld_obj, no_try): 734 def load_project(project, user, root_dir, rietveld_obj, no_try):
742 """Loads the specified project.""" 735 """Loads the specified project."""
743 assert os.path.isabs(root_dir) 736 assert os.path.isabs(root_dir)
744 return getattr(sys.modules[__name__], '_gen_' + project)( 737 return getattr(sys.modules[__name__], '_gen_' + project)(
745 user, root_dir, rietveld_obj, no_try) 738 user, root_dir, rietveld_obj, no_try)
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