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 16 matching lines...) Expand all Loading... |
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({ |
35 # crbug.com/733427 | 35 # crbug.com/733427 |
36 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.browse:news:cnn', # pylint: disable=line-too-long | 36 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.browse:news:cnn', # pylint: disable=line-too-long |
37 # cburg.com/721549 | |
38 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.browse:news:toi', # pylint: disable=line-too-long | |
39 # crbug.com/702455 | 37 # crbug.com/702455 |
40 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.browse:media:youtube', # pylint: disable=line-too-long | 38 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.browse:media:youtube', # pylint: disable=line-too-long |
41 # crbug.com/637230 | 39 # crbug.com/637230 |
42 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.browse:news:cnn', # pylint: disable=line-too-long | 40 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.browse:news:cnn', # pylint: disable=line-too-long |
43 # Permenently disabled from smoke test for being long-running. | 41 # Permenently disabled from smoke test for being long-running. |
44 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.long_running:tools:gmail-foreground', # pylint: disable=line-
too-long | 42 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.long_running:tools:gmail-foreground', # pylint: disable=line-
too-long |
45 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.long_running:tools:gmail-background', # pylint: disable=line-
too-long | 43 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_mobile.long_running:tools:gmail-background', # pylint: disable=line-
too-long |
46 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.long_running:tools:gmail-foreground', # pylint: disable=line
-too-long | 44 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.long_running:tools:gmail-foreground', # pylint: disable=line
-too-long |
47 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.long_running:tools:gmail-background', # pylint: disable=line
-too-long | 45 'benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_hea
lth.memory_desktop.long_running:tools:gmail-background', # pylint: disable=line
-too-long |
48 | 46 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 # Prefetch WPR archive needed by the stories set to avoid race condition | 169 # Prefetch WPR archive needed by the stories set to avoid race condition |
172 # when feching them when tests are run in parallel. | 170 # when feching them when tests are run in parallel. |
173 # See crbug.com/700426 for more details. | 171 # See crbug.com/700426 for more details. |
174 stories_set.wpr_archive_info.DownloadArchivesIfNeeded() | 172 stories_set.wpr_archive_info.DownloadArchivesIfNeeded() |
175 | 173 |
176 for story_to_smoke_test in stories_set.stories: | 174 for story_to_smoke_test in stories_set.stories: |
177 suite.addTest( | 175 suite.addTest( |
178 _GenerateSmokeTestCase(benchmark_class, story_to_smoke_test)) | 176 _GenerateSmokeTestCase(benchmark_class, story_to_smoke_test)) |
179 | 177 |
180 return suite | 178 return suite |
OLD | NEW |