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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/bisector.py

Issue 2088033002: Change WebView bisect bot to grab 64 bit builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Update master.cfg Created 4 years, 5 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 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 import json 5 import json
6 import re 6 import re
7 import time 7 import time
8 import urllib 8 import urllib
9 9
10 from . import config_validation 10 from . import config_validation
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 return self.api.builder_bot 801 return self.api.builder_bot
802 802
803 # TODO(prasadv): Refactor this code to remove hard coded values. 803 # TODO(prasadv): Refactor this code to remove hard coded values.
804 bot_name = self.get_perf_tester_name() 804 bot_name = self.get_perf_tester_name()
805 if 'win' in bot_name: 805 if 'win' in bot_name:
806 if any(b in bot_name for b in ['x64', 'gpu']): 806 if any(b in bot_name for b in ['x64', 'gpu']):
807 return 'winx64_bisect_builder' 807 return 'winx64_bisect_builder'
808 return 'win_perf_bisect_builder' 808 return 'win_perf_bisect_builder'
809 809
810 if 'android' in bot_name: 810 if 'android' in bot_name:
811 if 'nexus9' in bot_name: 811 if any(b in bot_name for b in ['arm64', 'nexus9']):
812 return 'android_arm64_perf_bisect_builder' 812 return 'android_arm64_perf_bisect_builder'
813 return 'android_perf_bisect_builder' 813 return 'android_perf_bisect_builder'
814 814
815 if 'mac' in bot_name: 815 if 'mac' in bot_name:
816 return 'mac_perf_bisect_builder' 816 return 'mac_perf_bisect_builder'
817 817
818 return 'linux_perf_bisect_builder' 818 return 'linux_perf_bisect_builder'
819 819
820 def get_platform_gs_prefix(self): 820 def get_platform_gs_prefix(self):
821 """Returns the prefix of a GS URL where a build can be found. 821 """Returns the prefix of a GS URL where a build can be found.
822 822
823 This prefix includes the schema, bucket, directory and beginning 823 This prefix includes the schema, bucket, directory and beginning
824 of filename. It is joined together with the part of the filename 824 of filename. It is joined together with the part of the filename
825 that includes the revision and the file extension to form the 825 that includes the revision and the file extension to form the
826 full GS URL. 826 full GS URL.
827 """ 827 """
828 if self.api.buildurl_gs_prefix: # pragma: no cover 828 if self.api.buildurl_gs_prefix: # pragma: no cover
829 return self.api.buildurl_gs_prefix 829 return self.api.buildurl_gs_prefix
830 830
831 # TODO(prasadv): Refactor this code to remove hard coded values. 831 # TODO(prasadv): Refactor this code to remove hard coded values.
832 bot_name = self.get_perf_tester_name() 832 bot_name = self.get_perf_tester_name()
833 if 'win' in bot_name: 833 if 'win' in bot_name:
834 if any(b in bot_name for b in ['x64', 'gpu']): 834 if any(b in bot_name for b in ['x64', 'gpu']):
835 return 'gs://chrome-perf/Win x64 Builder/full-build-win32_' 835 return 'gs://chrome-perf/Win x64 Builder/full-build-win32_'
836 return 'gs://chrome-perf/Win Builder/full-build-win32_' 836 return 'gs://chrome-perf/Win Builder/full-build-win32_'
837 837
838 if 'android' in bot_name: 838 if 'android' in bot_name:
839 if 'nexus9' in bot_name: 839 if any(b in bot_name for b in ['arm64', 'nexus9']):
840 return 'gs://chrome-perf/android_perf_rel_arm64/full-build-linux_' 840 return 'gs://chrome-perf/android_perf_rel_arm64/full-build-linux_'
841 return 'gs://chrome-perf/android_perf_rel/full-build-linux_' 841 return 'gs://chrome-perf/android_perf_rel/full-build-linux_'
842 842
843 if 'mac' in bot_name: 843 if 'mac' in bot_name:
844 return 'gs://chrome-perf/Mac Builder/full-build-mac_' 844 return 'gs://chrome-perf/Mac Builder/full-build-mac_'
845 845
846 return 'gs://chrome-perf/Linux Builder/full-build-linux_' 846 return 'gs://chrome-perf/Linux Builder/full-build-linux_'
847 847
848 def ensure_sync_master_branch(self): 848 def ensure_sync_master_branch(self):
849 """Make sure the local master is in sync with the fetched origin/master. 849 """Make sure the local master is in sync with the fetched origin/master.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 }) 946 })
947 return revision_rows 947 return revision_rows
948 948
949 def _get_build_url(self): 949 def _get_build_url(self):
950 properties = self.api.m.properties 950 properties = self.api.m.properties
951 bot_url = properties.get('buildbotURL', 951 bot_url = properties.get('buildbotURL',
952 'http://build.chromium.org/p/chromium/') 952 'http://build.chromium.org/p/chromium/')
953 builder_name = urllib.quote(properties.get('buildername', '')) 953 builder_name = urllib.quote(properties.get('buildername', ''))
954 builder_number = str(properties.get('buildnumber', '')) 954 builder_number = str(properties.get('buildnumber', ''))
955 return '%sbuilders/%s/builds/%s' % (bot_url, builder_name, builder_number) 955 return '%sbuilders/%s/builds/%s' % (bot_url, builder_name, builder_number)
OLDNEW
« no previous file with comments | « masters/master.tryserver.chromium.perf/slaves.cfg ('k') | scripts/slave/recipes/bisection/android_bisect.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698