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

Unified Diff: tests/masters_recipes_test.py

Issue 2098943002: Rename Mac/Win GN builders to GYP builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: fix masters_recipes_test.py to handle deprecated builders Created 4 years, 6 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
« no previous file with comments | « scripts/slave/recipes/chromium_trybot.expected/full_tryserver_chromium_win_win8_chromium_gyp_rel.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/masters_recipes_test.py
diff --git a/tests/masters_recipes_test.py b/tests/masters_recipes_test.py
index 8afbb3e48ecfe429bb79cdd67f0e42140cce3401..9eba22ce90caa49ecff578cac7b9188b56ba97e8 100755
--- a/tests/masters_recipes_test.py
+++ b/tests/masters_recipes_test.py
@@ -67,6 +67,31 @@ SUPPRESSIONS = {
'Win7 (32) Tests',
'Win x64 Builder (dbg)',
],
+
+}
+
+
+# This dict should normally be empty, but may be non-empty when builders
+# are being renamed, so that recipes can continue to refer to builders
+# that are in the process of being removed.
+DEPRECATED_BUILDERS = {
+ # TODO(dpranke): Remove these after the masters have restarted.
+ 'master.chromium.mac': [
+ 'Mac GN',
+ 'Mac GN (dbg)',
+ ],
+ 'master.chromium.win': [
+ 'Win8 Aura',
+ 'Win8 GN (dbg)',
+ ],
+ 'master.tryserver.chromium.mac': [
+ 'mac_chromium_gn_dbg',
+ 'mac_chromium_gn_rel',
+ ],
+ 'master.tryserver.chromium.win': [
+ 'win8_chromium_gn_dbg',
+ 'win8_chromium_ng',
+ ],
}
@@ -142,8 +167,10 @@ def main(argv):
cq_builders = getCQBuilders(args.cq_config) if args.cq_config else None
for master in MAIN_WATERFALL_MASTERS:
+
builders = getBuildersAndRecipes(master)
all_builders.update((master, b) for b in builders)
+ deprecated_builders = set(DEPRECATED_BUILDERS.get(master, []))
# We only have a standardized way to mirror builders using the chromium
# recipe on the tryserver.
@@ -154,15 +181,17 @@ def main(argv):
master.replace('master.', ''), {}).get('builders')
if recipe_side_builders is not None:
bogus_builders = set(recipe_side_builders.keys()).difference(
- set(builders.keys()))
+ set(builders.keys())).difference(deprecated_builders)
if bogus_builders:
+ import pdb; pdb.set_trace()
martiniss 2016/06/25 04:39:49 Left in some debug code.
Dirk Pranke 2016/06/25 04:45:37 Ah, so I did. Good thing it doesn't fire :). I'll
exit_code = 1
print 'The following builders from chromium recipe'
print 'do not exist in master config for %s:' % master
print '\n'.join('\t%s' % b for b in sorted(bogus_builders))
other_recipe_builders = set(recipe_side_builders.keys()).difference(
- set(chromium_recipe_builders[master]))
+ set(chromium_recipe_builders[master])).difference(
+ deprecated_builders)
if other_recipe_builders:
exit_code = 1
print 'The following builders from chromium recipe'
@@ -176,9 +205,10 @@ def main(argv):
builders = getBuildersAndRecipes(master)
recipe_side_builders = chromium_trybot_BUILDERS[
short_master]['builders']
+ deprecated_builders = set(DEPRECATED_BUILDERS.get(master, []))
bogus_builders = set(recipe_side_builders.keys()).difference(
- set(builders.keys()))
+ set(builders.keys())).difference(deprecated_builders)
if bogus_builders:
exit_code = 1
print 'The following builders from chromium_trybot recipe'
« no previous file with comments | « scripts/slave/recipes/chromium_trybot.expected/full_tryserver_chromium_win_win8_chromium_gyp_rel.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698