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 """Run all system health stories used by system health benchmarks. | 5 """Run all system health stories used by system health benchmarks. |
6 | 6 |
7 Only memory benchmarks are used when running these stories to make the total | 7 Only memory benchmarks are used when running these stories to make the total |
8 cycle time manageable. Other system health benchmarks should be using the same | 8 cycle time manageable. Other system health benchmarks should be using the same |
9 stories as memory ones, only with fewer actions (no memory dumping). | 9 stories as memory ones, only with fewer actions (no memory dumping). |
10 """ | 10 """ |
(...skipping 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 | 25 |
26 def GetSystemHealthBenchmarksToSmokeTest(): | 26 def GetSystemHealthBenchmarksToSmokeTest(): |
27 sh_benchmark_classes = discover.DiscoverClassesInModule( | 27 sh_benchmark_classes = discover.DiscoverClassesInModule( |
28 system_health, perf_benchmark.PerfBenchmark, | 28 system_health, perf_benchmark.PerfBenchmark, |
29 index_by_class_name=True).values() | 29 index_by_class_name=True).values() |
30 return list(b for b in sh_benchmark_classes if | 30 return list(b for b in sh_benchmark_classes if |
31 b.Name().startswith('system_health.memory')) | 31 b.Name().startswith('system_health.memory')) |
32 | 32 |
33 | 33 |
34 _DISABLED_TESTS = frozenset({ | 34 _DISABLED_TESTS = frozenset({ |
perezju
2017/03/13 12:44:07
side question: do we really want all of these long
nednguyen
2017/03/13 12:47:38
I intentionally make this so that Chromium sheriff
| |
35 # crbug.com/637230 | 35 # crbug.com/637230 |
36 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.browse:news:cnn', # pylint: disable=line-too-long | 36 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.browse:news:cnn', # pylint: disable=line-too-long |
37 # crbug.com/666293 | 37 # crbug.com/666293 |
38 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.browse:media:youtube', # pylint: disable=line-too-long | 38 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.browse:media:youtube', # pylint: disable=line-too-long |
39 # Permenently disabled from smoke test for being long-running. | 39 # Permenently disabled from smoke test for being long-running. |
40 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.long_running:tools:gmail-foreground', # pylint: disable=line- too-long | 40 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.long_running:tools:gmail-foreground', # pylint: disable=line- too-long |
41 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.long_running:tools:gmail-background', # pylint: disable=line- too-long | 41 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.long_running:tools:gmail-background', # pylint: disable=line- too-long |
42 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.long_running:tools:gmail-foreground', # pylint: disable=line -too-long | 42 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.long_running:tools:gmail-foreground', # pylint: disable=line -too-long |
43 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.long_running:tools:gmail-background', # pylint: disable=line -too-long | 43 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.long_running:tools:gmail-background', # pylint: disable=line -too-long |
44 | 44 |
45 # Disable media tests in CQ. crbug.com/649392 | 45 # Disable media tests in CQ. crbug.com/649392 |
46 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.play:media:soundcloud', # pylint: disable=line-too-long | 46 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.play:media:soundcloud', # pylint: disable=line-too-long |
47 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.play:media:google_play_music', # pylint: disable=line-too-lo ng | 47 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.play:media:google_play_music', # pylint: disable=line-too-lo ng |
48 | 48 |
49 # crbug.com/ | 49 # crbug.com/ |
50 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.browse:news:nytimes', # pylint: disable=line-too-long | 50 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.browse:news:nytimes', # pylint: disable=line-too-long |
51 | 51 |
52 # crbug.com/688190 | |
53 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_mobile.browse:news:washingtonpost', # pylint: disable=line-too-long | |
54 | |
52 # crbug.com/696824 | 55 # crbug.com/696824 |
53 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:news:qq', # pylint: disable=line-too-long | 56 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:news:qq', # pylint: disable=line-too-long |
54 | 57 |
55 # crbug.com/698006 | 58 # crbug.com/698006 |
56 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:tools:drive', # pylint: disable=line-too-long | 59 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:tools:drive', # pylint: disable=line-too-long |
57 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:tools:gmail', # pylint: disable=line-too-long | 60 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.load:tools:gmail', # pylint: disable=line-too-long |
58 | 61 |
59 # crbug.com/699966 | 62 # crbug.com/699966 |
60 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.multitab:misc:typical24', # pylint: disable=line-too-long | 63 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea lth.memory_desktop.multitab:misc:typical24', # pylint: disable=line-too-long |
61 }) | 64 }) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 # parsed during test time which happens after load_tests are called. | 152 # parsed during test time which happens after load_tests are called. |
150 # Since none of our system health benchmarks creates stories based on | 153 # Since none of our system health benchmarks creates stories based on |
151 # command line options, it should be ok to pass options=None to | 154 # command line options, it should be ok to pass options=None to |
152 # CreateStorySet. | 155 # CreateStorySet. |
153 for story_to_smoke_test in ( | 156 for story_to_smoke_test in ( |
154 benchmark_class().CreateStorySet(options=None).stories): | 157 benchmark_class().CreateStorySet(options=None).stories): |
155 suite.addTest( | 158 suite.addTest( |
156 _GenerateSmokeTestCase(benchmark_class, story_to_smoke_test)) | 159 _GenerateSmokeTestCase(benchmark_class, story_to_smoke_test)) |
157 | 160 |
158 return suite | 161 return suite |
OLD | NEW |