| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in | 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in |
| 7 the src/testing/buildbot directory. Maintaining these files by hand is | 7 the src/testing/buildbot directory. Maintaining these files by hand is |
| 8 too unwieldy. | 8 too unwieldy. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 'swarming_dimensions': [ | 172 'swarming_dimensions': [ |
| 173 { | 173 { |
| 174 'gpu': '10de:104a', | 174 'gpu': '10de:104a', |
| 175 'os': 'Windows-2012ServerR2-SP0' | 175 'os': 'Windows-2012ServerR2-SP0' |
| 176 }, | 176 }, |
| 177 ], | 177 ], |
| 178 'build_config': 'Debug', | 178 'build_config': 'Debug', |
| 179 'swarming': True, | 179 'swarming': True, |
| 180 'os_type': 'win', | 180 'os_type': 'win', |
| 181 }, | 181 }, |
| 182 'Win7 Release (ATI)': { | |
| 183 'swarming_dimensions': [ | |
| 184 { | |
| 185 # TODO(kbr): add device PCI ID 6613 once deployed | |
| 186 # http://crbug.com/639353 | |
| 187 'gpu': '1002', | |
| 188 'os': 'Windows-2008ServerR2-SP1' | |
| 189 }, | |
| 190 ], | |
| 191 'build_config': 'Release', | |
| 192 'swarming': True, | |
| 193 'os_type': 'win', | |
| 194 }, | |
| 195 'Win7 Release (AMD)': { | 182 'Win7 Release (AMD)': { |
| 196 'swarming_dimensions': [ | 183 'swarming_dimensions': [ |
| 197 { | 184 { |
| 198 'gpu': '1002:6613', | 185 'gpu': '1002:6613', |
| 199 'os': 'Windows-2008ServerR2-SP1' | 186 'os': 'Windows-2008ServerR2-SP1' |
| 200 }, | 187 }, |
| 201 ], | 188 ], |
| 202 'build_config': 'Release', | 189 'build_config': 'Release', |
| 203 'swarming': True, | 190 'swarming': True, |
| 204 'os_type': 'win', | 191 'os_type': 'win', |
| 205 }, | 192 }, |
| 206 'Win7 Debug (ATI)': { | |
| 207 'swarming_dimensions': [ | |
| 208 { | |
| 209 # TODO(kbr): add device PCI ID 6613 once deployed | |
| 210 # http://crbug.com/639353 | |
| 211 'gpu': '1002', | |
| 212 'os': 'Windows-2008ServerR2-SP1' | |
| 213 }, | |
| 214 ], | |
| 215 'build_config': 'Debug', | |
| 216 'swarming': True, | |
| 217 'os_type': 'win', | |
| 218 }, | |
| 219 'Win7 Debug (AMD)': { | 193 'Win7 Debug (AMD)': { |
| 220 'swarming_dimensions': [ | 194 'swarming_dimensions': [ |
| 221 { | 195 { |
| 222 'gpu': '1002:6613', | 196 'gpu': '1002:6613', |
| 223 'os': 'Windows-2008ServerR2-SP1' | 197 'os': 'Windows-2008ServerR2-SP1' |
| 224 }, | 198 }, |
| 225 ], | 199 ], |
| 226 'build_config': 'Debug', | 200 'build_config': 'Debug', |
| 227 'swarming': True, | 201 'swarming': True, |
| 228 'os_type': 'win', | 202 'os_type': 'win', |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 'swarming_dimensions': [ | 316 'swarming_dimensions': [ |
| 343 { | 317 { |
| 344 'gpu': '8086:0a2e', | 318 'gpu': '8086:0a2e', |
| 345 'os': 'Mac-10.10' | 319 'os': 'Mac-10.10' |
| 346 }, | 320 }, |
| 347 ], | 321 ], |
| 348 'build_config': 'Debug', | 322 'build_config': 'Debug', |
| 349 'swarming': True, | 323 'swarming': True, |
| 350 'os_type': 'mac', | 324 'os_type': 'mac', |
| 351 }, | 325 }, |
| 352 'Mac 10.10 Release (ATI)': { | |
| 353 'swarming_dimensions': [ | |
| 354 { | |
| 355 'gpu': '1002:679e', | |
| 356 'os': 'Mac-10.10' | |
| 357 }, | |
| 358 ], | |
| 359 'build_config': 'Release', | |
| 360 # This bot is a one-off and doesn't have similar slaves in the | |
| 361 # swarming pool. | |
| 362 'swarming': False, | |
| 363 'os_type': 'mac', | |
| 364 }, | |
| 365 'Mac 10.10 Release (AMD)': { | 326 'Mac 10.10 Release (AMD)': { |
| 366 'swarming_dimensions': [ | 327 'swarming_dimensions': [ |
| 367 { | 328 { |
| 368 'gpu': '1002:679e', | 329 'gpu': '1002:679e', |
| 369 'os': 'Mac-10.10' | 330 'os': 'Mac-10.10' |
| 370 }, | 331 }, |
| 371 ], | 332 ], |
| 372 'build_config': 'Release', | 333 'build_config': 'Release', |
| 373 # This bot is a one-off and doesn't have similar slaves in the | 334 # This bot is a one-off and doesn't have similar slaves in the |
| 374 # swarming pool. | 335 # swarming pool. |
| 375 'swarming': False, | 336 'swarming': False, |
| 376 'os_type': 'mac', | 337 'os_type': 'mac', |
| 377 }, | 338 }, |
| 378 'Mac 10.10 Debug (ATI)': { | |
| 379 'swarming_dimensions': [ | |
| 380 { | |
| 381 'gpu': '1002:679e', | |
| 382 'os': 'Mac-10.10' | |
| 383 }, | |
| 384 ], | |
| 385 'build_config': 'Debug', | |
| 386 # This bot is a one-off and doesn't have similar slaves in the | |
| 387 # swarming pool. | |
| 388 'swarming': False, | |
| 389 'os_type': 'mac', | |
| 390 }, | |
| 391 'Mac 10.10 Debug (AMD)': { | 339 'Mac 10.10 Debug (AMD)': { |
| 392 'swarming_dimensions': [ | 340 'swarming_dimensions': [ |
| 393 { | 341 { |
| 394 'gpu': '1002:679e', | 342 'gpu': '1002:679e', |
| 395 'os': 'Mac-10.10' | 343 'os': 'Mac-10.10' |
| 396 }, | 344 }, |
| 397 ], | 345 ], |
| 398 'build_config': 'Debug', | 346 'build_config': 'Debug', |
| 399 # This bot is a one-off and doesn't have similar slaves in the | 347 # This bot is a one-off and doesn't have similar slaves in the |
| 400 # swarming pool. | 348 # swarming pool. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 'gpu': '8086:041a', | 444 'gpu': '8086:041a', |
| 497 'os': 'Linux' | 445 'os': 'Linux' |
| 498 }, | 446 }, |
| 499 ], | 447 ], |
| 500 'build_config': 'Release', | 448 'build_config': 'Release', |
| 501 # This bot is a one-off and doesn't have similar slaves in the | 449 # This bot is a one-off and doesn't have similar slaves in the |
| 502 # swarming pool. | 450 # swarming pool. |
| 503 'swarming': False, | 451 'swarming': False, |
| 504 'os_type': 'linux', | 452 'os_type': 'linux', |
| 505 }, | 453 }, |
| 506 'Linux Release (ATI)': { | |
| 507 'swarming_dimensions': [ | |
| 508 { | |
| 509 'gpu': '1002:6779', | |
| 510 'os': 'Linux' | |
| 511 }, | |
| 512 ], | |
| 513 'build_config': 'Release', | |
| 514 # This bot is a one-off and doesn't have similar slaves in the | |
| 515 # swarming pool. | |
| 516 'swarming': False, | |
| 517 'os_type': 'linux', | |
| 518 }, | |
| 519 'Linux Release (AMD R5 230)': { | 454 'Linux Release (AMD R5 230)': { |
| 520 'swarming_dimensions': [ | 455 'swarming_dimensions': [ |
| 521 { | 456 { |
| 522 'gpu': '1002:6779', | 457 'gpu': '1002:6779', |
| 523 'os': 'Linux' | 458 'os': 'Linux' |
| 524 }, | 459 }, |
| 525 ], | 460 ], |
| 526 'build_config': 'Release', | 461 'build_config': 'Release', |
| 527 # This bot is a one-off and doesn't have similar slaves in the | 462 # This bot is a one-off and doesn't have similar slaves in the |
| 528 # swarming pool. | 463 # swarming pool. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 'swarming_dimensions': [ | 624 'swarming_dimensions': [ |
| 690 { | 625 { |
| 691 'gpu': '10de:104a', | 626 'gpu': '10de:104a', |
| 692 'os': 'Windows-2008ServerR2-SP1' | 627 'os': 'Windows-2008ServerR2-SP1' |
| 693 }, | 628 }, |
| 694 ], | 629 ], |
| 695 'build_config': 'Release', | 630 'build_config': 'Release', |
| 696 'swarming': True, | 631 'swarming': True, |
| 697 'os_type': 'win', | 632 'os_type': 'win', |
| 698 }, | 633 }, |
| 699 'Optional Win7 Release (ATI)': { | |
| 700 'swarming_dimensions': [ | |
| 701 { | |
| 702 # TODO(kbr): add device PCI ID 6613 once deployed | |
| 703 # http://crbug.com/639353 | |
| 704 'gpu': '1002', | |
| 705 'os': 'Windows-2008ServerR2-SP1' | |
| 706 }, | |
| 707 ], | |
| 708 'build_config': 'Release', | |
| 709 'swarming': True, | |
| 710 'os_type': 'win', | |
| 711 }, | |
| 712 'Optional Win7 Release (AMD)': { | 634 'Optional Win7 Release (AMD)': { |
| 713 'swarming_dimensions': [ | 635 'swarming_dimensions': [ |
| 714 { | 636 { |
| 715 'gpu': '1002:6613', | 637 'gpu': '1002:6613', |
| 716 'os': 'Windows-2008ServerR2-SP1' | 638 'os': 'Windows-2008ServerR2-SP1' |
| 717 }, | 639 }, |
| 718 ], | 640 ], |
| 719 'build_config': 'Release', | 641 'build_config': 'Release', |
| 720 'swarming': True, | 642 'swarming': True, |
| 721 'os_type': 'win', | 643 'os_type': 'win', |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) | 1433 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) |
| 1512 fp.write('\n') | 1434 fp.write('\n') |
| 1513 | 1435 |
| 1514 def main(): | 1436 def main(): |
| 1515 generate_all_tests(FYI_WATERFALL, True) | 1437 generate_all_tests(FYI_WATERFALL, True) |
| 1516 generate_all_tests(WATERFALL, False) | 1438 generate_all_tests(WATERFALL, False) |
| 1517 return 0 | 1439 return 0 |
| 1518 | 1440 |
| 1519 if __name__ == "__main__": | 1441 if __name__ == "__main__": |
| 1520 sys.exit(main()) | 1442 sys.exit(main()) |
| OLD | NEW |