OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # Recipe module for Skia Swarming test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
11 'core', | 11 'core', |
12 'recipe_engine/json', | 12 'recipe_engine/json', |
13 'recipe_engine/path', | 13 'recipe_engine/path', |
14 'recipe_engine/platform', | 14 'recipe_engine/platform', |
15 'recipe_engine/properties', | 15 'recipe_engine/properties', |
16 'recipe_engine/python', | 16 'recipe_engine/python', |
17 'recipe_engine/raw_io', | 17 'recipe_engine/raw_io', |
18 'flavor', | 18 'flavor', |
19 'run', | 19 'run', |
20 'vars', | 20 'vars', |
21 ] | 21 ] |
22 | 22 |
23 | 23 |
24 TEST_BUILDERS = { | 24 TEST_BUILDERS = { |
25 'client.skia': { | 25 'client.skia': { |
26 'skiabot-linux-swarm-000': [ | 26 'skiabot-linux-swarm-000': [ |
| 27 'Test-Android-Clang-AndroidOne-CPU-MT6582-arm-Release-GN_Android', |
27 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', | 28 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', |
28 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', | 29 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', |
| 30 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug', |
29 'Test-Android-GCC-Nexus10-GPU-MaliT604-Arm7-Release', | 31 'Test-Android-GCC-Nexus10-GPU-MaliT604-Arm7-Release', |
30 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', | 32 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
31 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug', | 33 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug', |
32 'Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug', | 34 'Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug', |
33 'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release', | 35 'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release', |
34 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug', | |
35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | |
36 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug', | 36 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug', |
37 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', | 37 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', |
38 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', | 38 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', |
39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', | 39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', |
40 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', | 40 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', |
41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', | 41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN', | 42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN', |
43 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 43 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
44 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', | 44 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared', |
45 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', | 45 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', |
46 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 46 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
47 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', | 47 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', |
48 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', | 48 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', |
49 'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', | 49 'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', |
| 50 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
50 ], | 51 ], |
51 }, | 52 }, |
52 } | 53 } |
53 | 54 |
54 | 55 |
55 def dm_flags(bot): | 56 def dm_flags(bot): |
56 args = [] | 57 args = [] |
57 | 58 |
58 # 32-bit desktop bots tend to run out of memory, because they have relatively | 59 # 32-bit desktop bots tend to run out of memory, because they have relatively |
59 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. | 60 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 cmd=abandonGpuContext, abort_on_failure=False) | 486 cmd=abandonGpuContext, abort_on_failure=False) |
486 preAbandonGpuContext = list(args) | 487 preAbandonGpuContext = list(args) |
487 preAbandonGpuContext.append('--preAbandonGpuContext') | 488 preAbandonGpuContext.append('--preAbandonGpuContext') |
488 api.run(api.flavor.step, 'dm --preAbandonGpuContext', | 489 api.run(api.flavor.step, 'dm --preAbandonGpuContext', |
489 cmd=preAbandonGpuContext, abort_on_failure=False, | 490 cmd=preAbandonGpuContext, abort_on_failure=False, |
490 env=api.vars.default_env) | 491 env=api.vars.default_env) |
491 | 492 |
492 | 493 |
493 def RunSteps(api): | 494 def RunSteps(api): |
494 api.core.setup() | 495 api.core.setup() |
495 api.flavor.install() | 496 try: |
496 test_steps(api) | 497 api.flavor.install() |
497 api.flavor.cleanup_steps() | 498 test_steps(api) |
| 499 finally: |
| 500 api.flavor.cleanup_steps() |
498 api.run.check_failure() | 501 api.run.check_failure() |
499 | 502 |
500 | 503 |
501 def GenTests(api): | 504 def GenTests(api): |
502 def AndroidTestData(builder, adb=None): | 505 def AndroidTestData(builder, adb=None): |
503 test_data = ( | 506 test_data = ( |
504 api.step_data( | 507 api.step_data( |
505 'get EXTERNAL_STORAGE dir', | 508 'get EXTERNAL_STORAGE dir', |
506 stdout=api.raw_io.output('/storage/emulated/legacy')) + | 509 stdout=api.raw_io.output('/storage/emulated/legacy')) + |
507 api.step_data( | 510 api.step_data( |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 'skimage', 'VERSION'), | 553 'skimage', 'VERSION'), |
551 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 554 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
552 'skp', 'VERSION'), | 555 'skp', 'VERSION'), |
553 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 556 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
554 'svg', 'VERSION'), | 557 'svg', 'VERSION'), |
555 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 558 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
556 ) | 559 ) |
557 ) | 560 ) |
558 if ('Android' in builder and | 561 if ('Android' in builder and |
559 ('Test' in builder or 'Perf' in builder) and | 562 ('Test' in builder or 'Perf' in builder) and |
| 563 not 'GN' in builder and |
560 not 'Appurify' in builder): | 564 not 'Appurify' in builder): |
561 test += AndroidTestData(builder) | 565 test += AndroidTestData(builder) |
562 if 'Trybot' in builder: | 566 if 'Trybot' in builder: |
563 test += api.properties(issue=500, | 567 test += api.properties(issue=500, |
564 patchset=1, | 568 patchset=1, |
565 rietveld='https://codereview.chromium.org') | 569 rietveld='https://codereview.chromium.org') |
566 if 'Win' in builder: | 570 if 'Win' in builder: |
567 test += api.platform('win', 64) | 571 test += api.platform('win', 64) |
568 | 572 |
569 | 573 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 api.properties( | 878 api.properties( |
875 buildername=builder, | 879 buildername=builder, |
876 mastername='client.skia', | 880 mastername='client.skia', |
877 slavename='skiabot-linux-swarm-000', | 881 slavename='skiabot-linux-swarm-000', |
878 buildnumber=5, | 882 buildnumber=5, |
879 path_config='kitchen', | 883 path_config='kitchen', |
880 swarm_out_dir='[SWARM_OUT_DIR]', | 884 swarm_out_dir='[SWARM_OUT_DIR]', |
881 revision='abc123', | 885 revision='abc123', |
882 **gerrit_kwargs) | 886 **gerrit_kwargs) |
883 ) | 887 ) |
OLD | NEW |