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

Side by Side Diff: content/test/gpu/generate_buildbot_json.py

Issue 2727643011: Skip failing test suites on the GPU FYI TSAN bot. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | testing/buildbot/chromium.gpu.fyi.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 'Linux GPU TSAN Release': { 594 'Linux GPU TSAN Release': {
595 'swarming_dimensions': [ 595 'swarming_dimensions': [
596 { 596 {
597 'gpu': '10de:104a', 597 'gpu': '10de:104a',
598 'os': 'Ubuntu' 598 'os': 'Ubuntu'
599 }, 599 },
600 ], 600 ],
601 'build_config': 'Release', 601 'build_config': 'Release',
602 'swarming': True, 602 'swarming': True,
603 'os_type': 'linux', 603 'os_type': 'linux',
604 'instrumentation_type': 'tsan',
604 }, 605 },
605 'Android Release (Nexus 5)': { 606 'Android Release (Nexus 5)': {
606 'swarming_dimensions': [ 607 'swarming_dimensions': [
607 { 608 {
608 # There are no PCI IDs on Android. 609 # There are no PCI IDs on Android.
609 # This is a hack to get the script working. 610 # This is a hack to get the script working.
610 'gpu': '0000:0000', 611 'gpu': '0000:0000',
611 'os': 'Android' 612 'os': 'Android'
612 }, 613 },
613 ], 614 ],
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 # Run this on the FYI waterfall and optional tryservers. 1317 # Run this on the FYI waterfall and optional tryservers.
1317 'predicate': Predicates.FYI_AND_OPTIONAL, 1318 'predicate': Predicates.FYI_AND_OPTIONAL,
1318 'os_types': ['win', 'linux'], 1319 'os_types': ['win', 'linux'],
1319 }, 1320 },
1320 ], 1321 ],
1321 }, 1322 },
1322 'tab_capture_end2end_tests': { 1323 'tab_capture_end2end_tests': {
1323 'tester_configs': [ 1324 'tester_configs': [
1324 { 1325 {
1325 'build_configs': ['Release', 'Release_x64'], 1326 'build_configs': ['Release', 'Release_x64'],
1327 'disabled_instrumentation_types': ['tsan'],
1326 } 1328 }
1327 ], 1329 ],
1328 # Don't run these tests on Android. 1330 # Don't run these tests on Android.
1329 'disabled_tester_configs': [ 1331 'disabled_tester_configs': [
1330 { 1332 {
1331 'os_types': ['android'], 1333 'os_types': ['android'],
1332 }, 1334 },
1333 ], 1335 ],
1334 'override_compile_targets': [ 1336 'override_compile_targets': [
1335 'tab_capture_end2end_tests_run', 1337 'tab_capture_end2end_tests_run',
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 } 1379 }
1378 } 1380 }
1379 1381
1380 # These tests use Telemetry's new browser_test_runner, which is a much 1382 # These tests use Telemetry's new browser_test_runner, which is a much
1381 # simpler harness for correctness testing. 1383 # simpler harness for correctness testing.
1382 TELEMETRY_GPU_INTEGRATION_TESTS = { 1384 TELEMETRY_GPU_INTEGRATION_TESTS = {
1383 'context_lost': { 1385 'context_lost': {
1384 'tester_configs': [ 1386 'tester_configs': [
1385 { 1387 {
1386 'predicate': Predicates.DEFAULT_PLUS_V8, 1388 'predicate': Predicates.DEFAULT_PLUS_V8,
1389 'disabled_instrumentation_types': ['tsan'],
1387 }, 1390 },
1388 ] 1391 ]
1389 }, 1392 },
1390 'depth_capture': { 1393 'depth_capture': {
1391 'tester_configs': [ 1394 'tester_configs': [
1392 { 1395 {
1393 'predicate': Predicates.DEFAULT_PLUS_V8, 1396 'predicate': Predicates.DEFAULT_PLUS_V8,
1397 'disabled_instrumentation_types': ['tsan'],
1394 }, 1398 },
1395 ] 1399 ]
1396 }, 1400 },
1397 'gpu_process_launch_tests': { 1401 'gpu_process_launch_tests': {
1398 'target_name': 'gpu_process', 1402 'target_name': 'gpu_process',
1399 'tester_configs': [ 1403 'tester_configs': [
1400 { 1404 {
1401 'predicate': Predicates.DEFAULT_PLUS_V8, 1405 'predicate': Predicates.DEFAULT_PLUS_V8,
1406 'disabled_instrumentation_types': ['tsan'],
1402 } 1407 }
1403 ], 1408 ],
1404 }, 1409 },
1405 'hardware_accelerated_feature': { 1410 'hardware_accelerated_feature': {
1406 'tester_configs': [ 1411 'tester_configs': [
1407 { 1412 {
1408 'predicate': Predicates.DEFAULT_PLUS_V8, 1413 'predicate': Predicates.DEFAULT_PLUS_V8,
1414 'disabled_instrumentation_types': ['tsan'],
1409 }, 1415 },
1410 ], 1416 ],
1411 }, 1417 },
1412 'maps_pixel_test': { 1418 'maps_pixel_test': {
1413 'target_name': 'maps', 1419 'target_name': 'maps',
1414 'args': [ 1420 'args': [
1415 '--os-type', 1421 '--os-type',
1416 '${os_type}', 1422 '${os_type}',
1417 '--build-revision', 1423 '--build-revision',
1418 '${got_revision}', 1424 '${got_revision}',
1419 '--test-machine-name', 1425 '--test-machine-name',
1420 '${buildername}', 1426 '${buildername}',
1421 ], 1427 ],
1422 'tester_configs': [ 1428 'tester_configs': [
1423 { 1429 {
1424 'predicate': Predicates.DEFAULT_PLUS_V8, 1430 'predicate': Predicates.DEFAULT_PLUS_V8,
1431 'disabled_instrumentation_types': ['tsan'],
1425 }, 1432 },
1426 ], 1433 ],
1427 }, 1434 },
1428 'pixel_test': { 1435 'pixel_test': {
1429 'target_name': 'pixel', 1436 'target_name': 'pixel',
1430 'args': [ 1437 'args': [
1431 '--refimg-cloud-storage-bucket', 1438 '--refimg-cloud-storage-bucket',
1432 'chromium-gpu-archive/reference-images', 1439 'chromium-gpu-archive/reference-images',
1433 '--os-type', 1440 '--os-type',
1434 '${os_type}', 1441 '${os_type}',
1435 '--build-revision', 1442 '--build-revision',
1436 '${got_revision}', 1443 '${got_revision}',
1437 '--test-machine-name', 1444 '--test-machine-name',
1438 '${buildername}', 1445 '${buildername}',
1439 ], 1446 ],
1440 'non_precommit_args': [ 1447 'non_precommit_args': [
1441 '--upload-refimg-to-cloud-storage', 1448 '--upload-refimg-to-cloud-storage',
1442 ], 1449 ],
1443 'precommit_args': [ 1450 'precommit_args': [
1444 '--download-refimg-from-cloud-storage', 1451 '--download-refimg-from-cloud-storage',
1445 ], 1452 ],
1446 'tester_configs': [ 1453 'tester_configs': [
1447 { 1454 {
1448 'predicate': Predicates.DEFAULT_PLUS_V8, 1455 'predicate': Predicates.DEFAULT_PLUS_V8,
1456 'disabled_instrumentation_types': ['tsan'],
1449 }, 1457 },
1450 ], 1458 ],
1451 }, 1459 },
1452 'screenshot_sync': { 1460 'screenshot_sync': {
1453 'tester_configs': [ 1461 'tester_configs': [
1454 { 1462 {
1455 'predicate': Predicates.DEFAULT_PLUS_V8, 1463 'predicate': Predicates.DEFAULT_PLUS_V8,
1464 'disabled_instrumentation_types': ['tsan'],
1456 }, 1465 },
1457 ], 1466 ],
1458 }, 1467 },
1459 'trace_test': { 1468 'trace_test': {
1460 'tester_configs': [ 1469 'tester_configs': [
1461 { 1470 {
1462 'predicate': Predicates.DEFAULT_PLUS_V8, 1471 'predicate': Predicates.DEFAULT_PLUS_V8,
1472 'disabled_instrumentation_types': ['tsan'],
1463 }, 1473 },
1464 ], 1474 ],
1465 }, 1475 },
1466 'webgl_conformance': { 1476 'webgl_conformance': {
1467 'tester_configs': [ 1477 'tester_configs': [
1468 { 1478 {
1469 'predicate': Predicates.DEFAULT_PLUS_V8, 1479 'predicate': Predicates.DEFAULT_PLUS_V8,
1480 'disabled_instrumentation_types': ['tsan'],
1470 }, 1481 },
1471 ], 1482 ],
1472 'asan_args': ['--is-asan'], 1483 'asan_args': ['--is-asan'],
1473 }, 1484 },
1474 'webgl_conformance_d3d9_tests': { 1485 'webgl_conformance_d3d9_tests': {
1475 'tester_configs': [ 1486 'tester_configs': [
1476 { 1487 {
1477 # Run this on the FYI waterfall and optional tryservers. 1488 # Run this on the FYI waterfall and optional tryservers.
1478 'predicate': Predicates.FYI_AND_OPTIONAL, 1489 'predicate': Predicates.FYI_AND_OPTIONAL,
1479 'os_types': ['win'], 1490 'os_types': ['win'],
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 '--use-angle=gl', 1537 '--use-angle=gl',
1527 ], 1538 ],
1528 'asan_args': ['--is-asan'], 1539 'asan_args': ['--is-asan'],
1529 }, 1540 },
1530 'webgl_conformance_angle_tests': { 1541 'webgl_conformance_angle_tests': {
1531 'tester_configs': [ 1542 'tester_configs': [
1532 { 1543 {
1533 # Run this on the FYI waterfall and optional tryservers. 1544 # Run this on the FYI waterfall and optional tryservers.
1534 'predicate': Predicates.FYI_AND_OPTIONAL, 1545 'predicate': Predicates.FYI_AND_OPTIONAL,
1535 'os_types': ['linux'], 1546 'os_types': ['linux'],
1547 'disabled_instrumentation_types': ['tsan'],
1536 } 1548 }
1537 ], 1549 ],
1538 'target_name': 'webgl_conformance', 1550 'target_name': 'webgl_conformance',
1539 'extra_browser_args': [ 1551 'extra_browser_args': [
1540 '--use-gl=angle', 1552 '--use-gl=angle',
1541 ], 1553 ],
1542 'asan_args': ['--is-asan'], 1554 'asan_args': ['--is-asan'],
1543 }, 1555 },
1544 'webgl_conformance_d3d11_passthrough': { 1556 'webgl_conformance_d3d11_passthrough': {
1545 'tester_configs': [ 1557 'tester_configs': [
(...skipping 16 matching lines...) Expand all
1562 ], 1574 ],
1563 'asan_args': ['--is-asan'], 1575 'asan_args': ['--is-asan'],
1564 }, 1576 },
1565 'webgl2_conformance_tests': { 1577 'webgl2_conformance_tests': {
1566 'tester_configs': [ 1578 'tester_configs': [
1567 { 1579 {
1568 # The WebGL 2.0 conformance tests take over an hour to run on 1580 # The WebGL 2.0 conformance tests take over an hour to run on
1569 # the Debug bots, which is too long. 1581 # the Debug bots, which is too long.
1570 'build_configs': ['Release', 'Release_x64'], 1582 'build_configs': ['Release', 'Release_x64'],
1571 'predicate': Predicates.FYI_OPTIONAL_AND_V8, 1583 'predicate': Predicates.FYI_OPTIONAL_AND_V8,
1584 'disabled_instrumentation_types': ['tsan'],
1572 }, 1585 },
1573 ], 1586 ],
1574 'disabled_tester_configs': [ 1587 'disabled_tester_configs': [
1575 { 1588 {
1576 'names': [ 1589 'names': [
1577 # http://crbug.com/599451: this test is currently too slow 1590 # http://crbug.com/599451: this test is currently too slow
1578 # to run on x64 in Debug mode. Need to shard the tests. 1591 # to run on x64 in Debug mode. Need to shard the tests.
1579 'Win7 x64 Debug (NVIDIA)', 1592 'Win7 x64 Debug (NVIDIA)',
1580 ], 1593 ],
1581 # Don't run these tests on Android yet. 1594 # Don't run these tests on Android yet.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 }, 1626 },
1614 { 1627 {
1615 'gpu': '8086:0412', 1628 'gpu': '8086:0412',
1616 'os': 'Ubuntu' 1629 'os': 'Ubuntu'
1617 }, 1630 },
1618 { 1631 {
1619 'gpu': '8086:1912', 1632 'gpu': '8086:1912',
1620 'os': 'Ubuntu' 1633 'os': 'Ubuntu'
1621 }, 1634 },
1622 ], 1635 ],
1636 'disabled_instrumentation_types': ['tsan'],
1623 }, 1637 },
1624 ], 1638 ],
1625 'target_name': 'webgl_conformance', 1639 'target_name': 'webgl_conformance',
1626 'extra_browser_args': [ 1640 'extra_browser_args': [
1627 '--use-gl=angle', 1641 '--use-gl=angle',
1628 ], 1642 ],
1629 'args': [ 1643 'args': [
1630 '--webgl-conformance-version=2.0.1', 1644 '--webgl-conformance-version=2.0.1',
1631 # The current working directory when run via isolate is 1645 # The current working directory when run via isolate is
1632 # out/Debug or out/Release. Reference this file relatively to 1646 # out/Debug or out/Release. Reference this file relatively to
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 1758
1745 if 'names' in tc: 1759 if 'names' in tc:
1746 # Give priority to matching the tester_name. 1760 # Give priority to matching the tester_name.
1747 if tester_name in tc['names']: 1761 if tester_name in tc['names']:
1748 return True 1762 return True
1749 if not tester_name in tc['names']: 1763 if not tester_name in tc['names']:
1750 return False 1764 return False
1751 if 'os_types' in tc: 1765 if 'os_types' in tc:
1752 if not tester_config['os_type'] in tc['os_types']: 1766 if not tester_config['os_type'] in tc['os_types']:
1753 return False 1767 return False
1768 if 'instrumentation_type' in tester_config:
1769 if 'disabled_instrumentation_types' in tc:
1770 if tester_config['instrumentation_type'] in \
1771 tc['disabled_instrumentation_types']:
1772 return False
1754 if 'build_configs' in tc: 1773 if 'build_configs' in tc:
1755 if not tester_config['build_config'] in tc['build_configs']: 1774 if not tester_config['build_config'] in tc['build_configs']:
1756 return False 1775 return False
1757 if 'swarming_dimension_sets' in tc: 1776 if 'swarming_dimension_sets' in tc:
1758 if not matches_swarming_dimensions(tester_config, 1777 if not matches_swarming_dimensions(tester_config,
1759 tc['swarming_dimension_sets']): 1778 tc['swarming_dimension_sets']):
1760 return False 1779 return False
1761 return True 1780 return True
1762 1781
1763 def should_run_on_tester(tester_name, tester_config, test_config): 1782 def should_run_on_tester(tester_name, tester_config, test_config):
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 install_parent_links(WATERFALL) 2024 install_parent_links(WATERFALL)
2006 install_parent_links(V8_FYI_WATERFALL) 2025 install_parent_links(V8_FYI_WATERFALL)
2007 2026
2008 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json') 2027 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json')
2009 generate_all_tests(WATERFALL, 'chromium.gpu.json') 2028 generate_all_tests(WATERFALL, 'chromium.gpu.json')
2010 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json') 2029 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json')
2011 return 0 2030 return 0
2012 2031
2013 if __name__ == "__main__": 2032 if __name__ == "__main__":
2014 sys.exit(main()) 2033 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium.gpu.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698