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

Unified Diff: scripts/slave/recipes/chromium.py

Issue 1527123002: Support swarming dimensions in src-side JSON buildbot files. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Addressed review feedback from maruel. Created 5 years 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
Index: scripts/slave/recipes/chromium.py
diff --git a/scripts/slave/recipes/chromium.py b/scripts/slave/recipes/chromium.py
index 3c8c6854263238d6703989b26e71f7c71f0e564b..07bd76c1f5d88e33dc365ce851b7cea968bfe61c 100644
--- a/scripts/slave/recipes/chromium.py
+++ b/scripts/slave/recipes/chromium.py
@@ -313,6 +313,136 @@ def GenTests(api):
)
yield (
+ api.test('dynamic_swarmed_isolated_script_test_linux_gpu') +
+ api.properties.generic(mastername='chromium.linux',
+ buildername='Linux Tests',
+ parent_buildername='Linux Builder') +
+ api.properties(swarm_hashes={
+ 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
Sergiy Byelozyorov 2015/12/16 14:44:54 nit: yupieeeeeeee... ;-)
+ }) +
+ api.platform('linux', 64) +
+ api.override_step_data('read test spec', api.json.output({
+ 'Linux Tests': {
+ 'isolated_scripts': [
+ {
+ 'isolate_name': 'telemetry_gpu_unittests',
+ 'name': 'telemetry_gpu_unittests',
+ 'swarming': {
+ 'can_use_on_swarming_builders': True,
+ 'dimension_sets': [
+ {
+ 'gpu': '10de:104a', # NVIDIA GeForce GT 610
+ 'os': 'Linux',
+ },
+ ],
+ },
+ },
+ ],
+ },
+ }))
+ )
+
+ yield (
+ api.test('dynamic_swarmed_isolated_script_test_mac_gpu') +
+ api.properties.generic(mastername='chromium.mac',
+ buildername='Mac10.9 Tests',
+ parent_buildername='Mac Builder') +
+ api.properties(swarm_hashes={
+ 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
+ }) +
+ api.platform('mac', 64) +
+ api.override_step_data('read test spec', api.json.output({
+ 'Mac10.9 Tests': {
+ 'isolated_scripts': [
+ {
+ 'isolate_name': 'telemetry_gpu_unittests',
+ 'name': 'telemetry_gpu_unittests',
+ 'swarming': {
+ 'can_use_on_swarming_builders': True,
+ 'dimension_sets': [
+ {
+ 'gpu': '8086:0a2e', # Intel Iris
+ 'hidpi': '0',
+ 'os': 'Mac-10.10',
+ }, {
+ 'gpu': '10de:0fe9', # NVIDIA GeForce GT 750M
+ 'hidpi': '1',
+ 'os': 'Mac-10.9',
+ },
+ ],
+ },
+ },
+ ],
+ },
+ }))
+ )
+
+ yield (
+ api.test('dynamic_swarmed_isolated_script_test_win_gpu') +
+ api.properties.generic(mastername='chromium.win',
+ buildername='Win7 Tests (1)',
+ parent_buildername='Win Builder') +
+ api.properties(swarm_hashes={
+ 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
+ }) +
+ api.platform('win', 64) +
+ api.override_step_data('read test spec', api.json.output({
+ 'Win7 Tests (1)': {
+ 'isolated_scripts': [
+ {
+ 'isolate_name': 'telemetry_gpu_unittests',
+ 'name': 'telemetry_gpu_unittests',
+ 'swarming': {
+ 'can_use_on_swarming_builders': True,
+ 'dimension_sets': [
+ {
+ 'gpu': '10de:104a', # NVIDIA GeForce GT 610
+ 'os': 'Windows',
+ }, {
+ 'gpu': '1002:6779', # AMD Radeon HD 6450
+ 'os': 'Windows',
+ }, {
+ 'gpu': '15ad:0405', # VMWare SVGA II Adapter
+ 'os': 'Windows',
+ },
+ ],
+ },
+ },
+ ],
+ },
+ }))
+ )
+
+ yield (
+ api.test('dynamic_swarmed_isolated_script_test_win_non_gpu') +
+ api.properties.generic(mastername='chromium.win',
+ buildername='Win7 Tests (1)',
+ parent_buildername='Win Builder') +
+ api.properties(swarm_hashes={
+ 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
+ }) +
+ api.platform('win', 64) +
+ api.override_step_data('read test spec', api.json.output({
+ 'Win7 Tests (1)': {
+ 'isolated_scripts': [
+ {
+ 'isolate_name': 'telemetry_gpu_unittests',
+ 'name': 'telemetry_gpu_unittests',
+ 'swarming': {
+ 'can_use_on_swarming_builders': True,
+ 'dimension_sets': [
+ {
+ 'os': 'Windows',
+ },
+ ],
+ },
+ },
+ ],
+ },
+ }))
+ )
+
+ yield (
api.test('dynamic_swarmed_failed_isolated_script_test') +
api.properties.generic(mastername='chromium.linux',
buildername='Linux Tests',

Powered by Google App Engine
This is Rietveld 408576698