Commit 73c3bd8b authored by Kenneth Russell's avatar Kenneth Russell Committed by Commit Bot

Use mixins for GPU bot configurations.

Define and use mixins for the most common GPU bot configurations. To
avoid errors and differences between machines, in most of these mixins,
parameters like the OS have been flattened in.

Use these mixins on the chromium.gpu, chromium.gpu.fyi, and
client.v8.fyi waterfalls.

This CL is essentially a no-op; it only modifies a few timeouts due to
unification under the mixin "limited_capacity_bot".

Bug: 895815
Change-Id: Ia9da945d73720ea70ebb4983808eb23463ee1108
Reviewed-on: https://chromium-review.googlesource.com/c/1287431Reviewed-by: default avatarStephen Martinis <martiniss@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601324}
parent 3ac55499
...@@ -4147,7 +4147,7 @@ ...@@ -4147,7 +4147,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "angle_unittests" "test": "angle_unittests"
}, },
...@@ -4164,7 +4164,7 @@ ...@@ -4164,7 +4164,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "angle_white_box_tests" "test": "angle_white_box_tests"
}, },
...@@ -4186,7 +4186,7 @@ ...@@ -4186,7 +4186,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "browser_tests" "test": "browser_tests"
}, },
...@@ -4204,7 +4204,7 @@ ...@@ -4204,7 +4204,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gl_tests" "test": "gl_tests"
}, },
...@@ -4221,7 +4221,7 @@ ...@@ -4221,7 +4221,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gles2_conform_test" "test": "gles2_conform_test"
}, },
...@@ -4235,7 +4235,7 @@ ...@@ -4235,7 +4235,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "swiftshader_unittests" "test": "swiftshader_unittests"
} }
...@@ -4261,7 +4261,7 @@ ...@@ -4261,7 +4261,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4285,7 +4285,7 @@ ...@@ -4285,7 +4285,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4309,7 +4309,7 @@ ...@@ -4309,7 +4309,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4333,7 +4333,7 @@ ...@@ -4333,7 +4333,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4361,7 +4361,7 @@ ...@@ -4361,7 +4361,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4392,7 +4392,7 @@ ...@@ -4392,7 +4392,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4431,7 +4431,7 @@ ...@@ -4431,7 +4431,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4456,7 +4456,7 @@ ...@@ -4456,7 +4456,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4480,7 +4480,7 @@ ...@@ -4480,7 +4480,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -4506,7 +4506,7 @@ ...@@ -4506,7 +4506,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false, "idempotent": false,
"shards": 20 "shards": 20
} }
...@@ -4531,7 +4531,7 @@ ...@@ -4531,7 +4531,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false, "idempotent": false,
"shards": 2 "shards": 2
} }
...@@ -4556,7 +4556,7 @@ ...@@ -4556,7 +4556,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false, "idempotent": false,
"shards": 2 "shards": 2
} }
...@@ -11504,7 +11504,7 @@ ...@@ -11504,7 +11504,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"shards": 4 "shards": 4
}, },
"test": "angle_end2end_tests" "test": "angle_end2end_tests"
...@@ -11523,7 +11523,7 @@ ...@@ -11523,7 +11523,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "angle_unittests" "test": "angle_unittests"
}, },
...@@ -11544,7 +11544,7 @@ ...@@ -11544,7 +11544,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "browser_tests" "test": "browser_tests"
}, },
...@@ -11562,7 +11562,7 @@ ...@@ -11562,7 +11562,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gl_tests" "test": "gl_tests"
}, },
...@@ -11579,7 +11579,7 @@ ...@@ -11579,7 +11579,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gl_unittests" "test": "gl_unittests"
}, },
...@@ -11596,7 +11596,7 @@ ...@@ -11596,7 +11596,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gles2_conform_test" "test": "gles2_conform_test"
}, },
...@@ -11610,7 +11610,7 @@ ...@@ -11610,7 +11610,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800 "expiration": 21600
}, },
"test": "gpu_unittests" "test": "gpu_unittests"
} }
...@@ -11636,7 +11636,7 @@ ...@@ -11636,7 +11636,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11660,7 +11660,7 @@ ...@@ -11660,7 +11660,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11684,7 +11684,7 @@ ...@@ -11684,7 +11684,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11708,7 +11708,7 @@ ...@@ -11708,7 +11708,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11736,7 +11736,7 @@ ...@@ -11736,7 +11736,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11767,7 +11767,7 @@ ...@@ -11767,7 +11767,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11806,7 +11806,7 @@ ...@@ -11806,7 +11806,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11831,7 +11831,7 @@ ...@@ -11831,7 +11831,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11855,7 +11855,7 @@ ...@@ -11855,7 +11855,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false "idempotent": false
} }
}, },
...@@ -11881,7 +11881,7 @@ ...@@ -11881,7 +11881,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false, "idempotent": false,
"shards": 20 "shards": 20
} }
...@@ -11906,7 +11906,7 @@ ...@@ -11906,7 +11906,7 @@
"pool": "Chrome-GPU" "pool": "Chrome-GPU"
} }
], ],
"expiration": 10800, "expiration": 21600,
"idempotent": false, "idempotent": false,
"shards": 2 "shards": 2
} }
......
...@@ -435,11 +435,13 @@ class BBJSONGenerator(object): ...@@ -435,11 +435,13 @@ class BBJSONGenerator(object):
def add_common_test_properties(self, test, tester_config): def add_common_test_properties(self, test, tester_config):
if tester_config.get('use_multi_dimension_trigger_script'): if tester_config.get('use_multi_dimension_trigger_script'):
# Assumes update_and_cleanup_test has already been called, so the
# builder's mixins have been flattened into the test.
test['trigger_script'] = { test['trigger_script'] = {
'script': '//testing/trigger_scripts/trigger_multiple_dimensions.py', 'script': '//testing/trigger_scripts/trigger_multiple_dimensions.py',
'args': [ 'args': [
'--multiple-trigger-configs', '--multiple-trigger-configs',
json.dumps(tester_config['swarming']['dimension_sets'] + json.dumps(test['swarming']['dimension_sets'] +
tester_config.get('alternate_swarming_dimensions', [])), tester_config.get('alternate_swarming_dimensions', [])),
'--multiple-dimension-script-verbose', '--multiple-dimension-script-verbose',
'True' 'True'
......
...@@ -40,6 +40,19 @@ class FakeBBGen(generate_buildbot_json.BBJSONGenerator): ...@@ -40,6 +40,19 @@ class FakeBBGen(generate_buildbot_json.BBJSONGenerator):
def write_file(self, relative_path, contents): def write_file(self, relative_path, contents):
self.files[relative_path] = contents self.files[relative_path] = contents
# pragma pylint: disable=arguments-differ
def check_output_file_consistency(self, verbose=False, dump=True):
try:
super(FakeBBGen, self).check_output_file_consistency(verbose)
except generate_buildbot_json.BBGenErr:
if verbose and dump:
# Assume we want to see the difference in the waterfalls'
# generated output to make it easier to rebaseline the test.
for line in self.printed_lines:
print line
raise
# pragma pylint: enable=arguments-differ
FOO_GTESTS_WATERFALL = """\ FOO_GTESTS_WATERFALL = """\
[ [
...@@ -1366,7 +1379,8 @@ MULTI_DIMENSION_OUTPUT = """\ ...@@ -1366,7 +1379,8 @@ MULTI_DIMENSION_OUTPUT = """\
"trigger_script": { "trigger_script": {
"args": [ "args": [
"--multiple-trigger-configs", "--multiple-trigger-configs",
"[{\\"gpu\\": \\"none\\", \\"os\\": \\"1\\"}, \ "[{\\"gpu\\": \\"none\\", \\"integrity\\": \\"high\\", \
\\"os\\": \\"1\\"}, \
{\\"gpu\\": \\"none\\", \\"os\\": \\"2\\"}]", {\\"gpu\\": \\"none\\", \\"os\\": \\"2\\"}]",
"--multiple-dimension-script-verbose", "--multiple-dimension-script-verbose",
"True" "True"
...@@ -2145,7 +2159,7 @@ class UnitTest(unittest.TestCase): ...@@ -2145,7 +2159,7 @@ class UnitTest(unittest.TestCase):
fbb.files['chromium.test.json'] = ( fbb.files['chromium.test.json'] = (
'\n' + COMPOSITION_WATERFALL_FILTERED_OUTPUT) '\n' + COMPOSITION_WATERFALL_FILTERED_OUTPUT)
with self.assertRaises(generate_buildbot_json.BBGenErr): with self.assertRaises(generate_buildbot_json.BBGenErr):
fbb.check_output_file_consistency(verbose=True) fbb.check_output_file_consistency(verbose=True, dump=False)
joined_lines = ' '.join(fbb.printed_lines) joined_lines = ' '.join(fbb.printed_lines)
self.assertRegexpMatches( self.assertRegexpMatches(
joined_lines, 'Waterfall chromium.test did not have the following' joined_lines, 'Waterfall chromium.test did not have the following'
......
...@@ -120,6 +120,15 @@ ...@@ -120,6 +120,15 @@
}, },
}, },
}, },
'angler': {
# Nexus 6P
'swarming': {
'dimensions': {
'device_type': 'angler',
'os': 'Android',
},
},
},
'arm_tester': { 'arm_tester': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -135,6 +144,24 @@ ...@@ -135,6 +144,24 @@
}, },
}, },
}, },
'flounder': {
# Nexus 9
'swarming': {
'dimensions': {
'device_type': 'flounder',
'os': 'Android',
},
},
},
'foster': {
# NVIDIA SHIELD TV
'swarming': {
'dimensions': {
'device_type': 'foster',
'os': 'Android',
},
},
},
'gpu_pool': { 'gpu_pool': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -143,6 +170,7 @@ ...@@ -143,6 +170,7 @@
}, },
}, },
'hammerhead': { 'hammerhead': {
# Nexus 5
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
'device_type': 'hammerhead', 'device_type': 'hammerhead',
...@@ -184,6 +212,49 @@ ...@@ -184,6 +212,49 @@
}, },
}, },
}, },
'linux_amd_r7_240': {
'swarming': {
'dimensions': {
'gpu': '1002:6613',
'os': 'Ubuntu',
'pool': 'Chrome-GPU',
},
},
},
'linux_intel_hd_530': {
'swarming': {
'dimensions': {
'gpu': '8086:1912',
'os': 'Ubuntu',
'pool': 'Chrome-GPU',
}
}
},
'linux_intel_hd_630': {
'swarming': {
'dimensions': {
'gpu': '8086:5912',
'os': 'Ubuntu',
'pool': 'Chrome-GPU',
}
}
},
'linux_nvidia_quadro_p400': {
'swarming': {
'dimensions': {
'gpu': '10de:1cb3-384.90',
'os': 'Ubuntu',
'pool': 'Chrome-GPU',
}
}
},
'lollipop': {
'swarming': {
'dimensions': {
'device_os': 'L',
},
},
},
'mac-rel-args': { 'mac-rel-args': {
'args': [ 'args': [
'mac-release/sizes', 'mac-release/sizes',
...@@ -225,6 +296,83 @@ ...@@ -225,6 +296,83 @@
}, },
}, },
}, },
'mac_mini_intel_gpu': {
'swarming': {
'dimensions': {
'gpu': '8086:0a2e',
'os': 'Mac-10.12.6',
},
},
},
'mac_mini_intel_gpu_experimental': {
'swarming': {
'dimensions': {
'gpu': '8086:0a2e',
'os': 'Mac-10.13.6',
'pool': 'Chrome-GPU',
},
},
},
'mac_pro_amd_gpu': {
'swarming': {
'dimensions': {
'gpu': '1002:679e',
'os': 'Mac-10.12',
'pool': 'Chrome-GPU',
},
},
},
'mac_retina_amd_gpu': {
'swarming': {
'dimensions': {
'gpu': '1002:6821',
'hidpi': '1',
'os': 'Mac-10.13.6',
'pool': 'Chrome-GPU',
},
},
},
'mac_retina_amd_gpu_experimental': {
# Currently same configuration as stable version above.
'swarming': {
'dimensions': {
'gpu': '1002:6821',
'hidpi': '1',
'os': 'Mac-10.13.6',
'pool': 'Chrome-GPU',
},
},
},
'mac_retina_nvidia_gpu': {
'swarming': {
'dimensions': {
'gpu': '10de:0fe9',
'hidpi': '1',
'os': 'Mac-10.13.6',
'pool': 'Chrome-GPU',
},
},
},
'mac_retina_nvidia_gpu_experimental': {
# Currently the same as the stable version.
'swarming': {
'dimensions': {
'gpu': '10de:0fe9',
'hidpi': '1',
'os': 'Mac-10.13.6',
'pool': 'Chrome-GPU',
},
},
},
'marlin': {
# Pixel XL
'swarming': {
'dimensions': {
'device_type': 'marlin',
'os': 'Android',
},
},
},
'marshmallow': { 'marshmallow': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -232,6 +380,13 @@ ...@@ -232,6 +380,13 @@
}, },
}, },
}, },
'marshmallow_generic': {
'swarming': {
'dimensions': {
'device_os': 'M',
},
},
},
'no_gpu': { 'no_gpu': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -239,6 +394,13 @@ ...@@ -239,6 +394,13 @@
}, },
}, },
}, },
'nougat': {
'swarming': {
'dimensions': {
'device_os': 'N',
},
},
},
'nvidia_750m_mac_edition': { 'nvidia_750m_mac_edition': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -246,6 +408,38 @@ ...@@ -246,6 +408,38 @@
}, },
}, },
}, },
'oreo': {
'swarming': {
'dimensions': {
'device_os': 'O',
},
},
},
'pie': {
'swarming': {
'dimensions': {
'device_os': 'P',
},
},
},
'shamu': {
# Nexus 6
'swarming': {
'dimensions': {
'device_type': 'shamu',
'os': 'Android',
},
},
},
'walleye': {
# Pixel 2
'swarming': {
'dimensions': {
'device_type': 'walleye',
'os': 'Android',
},
},
},
'win10': { 'win10': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -253,6 +447,44 @@ ...@@ -253,6 +447,44 @@
}, },
}, },
}, },
'win10_intel_hd_630_experimental': {
# Currently same as stable version.
'swarming': {
'dimensions': {
'gpu': '8086:5912-24.20.100.6286',
'os': 'Windows-10',
'pool': 'Chrome-GPU',
},
},
},
'win10_intel_hd_630_stable': {
'swarming': {
'dimensions': {
'gpu': '8086:5912-24.20.100.6286',
'os': 'Windows-10',
'pool': 'Chrome-GPU',
},
},
},
'win10_nvidia_quadro_p400_experimental': {
# Currently same as stable driver.
'swarming': {
'dimensions': {
'gpu': '10de:1cb3-23.21.13.8816',
'os': 'Windows-10',
'pool': 'Chrome-GPU',
},
},
},
'win10_nvidia_quadro_p400_stable': {
'swarming': {
'dimensions': {
'gpu': '10de:1cb3-23.21.13.8816',
'os': 'Windows-10',
'pool': 'Chrome-GPU',
},
},
},
'win7': { 'win7': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
...@@ -260,6 +492,24 @@ ...@@ -260,6 +492,24 @@
}, },
}, },
}, },
'win7_amd_r7_240': {
'swarming': {
'dimensions': {
'gpu': '1002:6613',
'os': 'Windows-2008ServerR2-SP1',
'pool': 'Chrome-GPU',
},
},
},
'win7_nvidia_quadro_p400': {
'swarming': {
'dimensions': {
'gpu': '10de:1cb3-23.21.13.8792',
'os': 'Windows-2008ServerR2-SP1',
'pool': 'Chrome-GPU',
},
},
},
'win8': { 'win8': {
'swarming': { 'swarming': {
'dimensions': { 'dimensions': {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment