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

Side by Side Diff: scripts/slave/recipes/chromium.py

Issue 1920863007: Add sizes test to chromium.perf builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Remove unused bots and bot code. Created 4 years, 7 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 DEPS = [ 5 DEPS = [
6 'adb', 6 'adb',
7 'amp', 7 'amp',
8 'bisect_tester', 8 'bisect_tester',
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'chromium', 10 'chromium',
(...skipping 28 matching lines...) Expand all
39 # dict, so we provide an API to dump it here. 39 # dict, so we provide an API to dump it here.
40 if api.properties.get('dump_builders'): # pragma: no cover 40 if api.properties.get('dump_builders'): # pragma: no cover
41 api.file.write( 41 api.file.write(
42 'Dump BUILDERS dict', api.properties['dump_builders'], 42 'Dump BUILDERS dict', api.properties['dump_builders'],
43 api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable)) 43 api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable))
44 return 44 return
45 45
46 mastername = api.properties.get('mastername') 46 mastername = api.properties.get('mastername')
47 buildername = api.properties.get('buildername') 47 buildername = api.properties.get('buildername')
48 48
49 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[
50 mastername]['builders'][buildername]['bot_type'] == 'tester':
51 api.bisect_tester.upload_job_url()
52
53 bot_config = api.chromium_tests.create_bot_config_object( 49 bot_config = api.chromium_tests.create_bot_config_object(
54 mastername, buildername) 50 mastername, buildername)
55 api.chromium_tests.configure_build(bot_config) 51 api.chromium_tests.configure_build(bot_config)
56 update_step, bot_db = api.chromium_tests.prepare_checkout( 52 update_step, bot_db = api.chromium_tests.prepare_checkout(
57 bot_config, force=True) 53 bot_config, force=True)
58 tests, tests_including_triggered = api.chromium_tests.get_tests( 54 tests, tests_including_triggered = api.chromium_tests.get_tests(
59 bot_config, bot_db) 55 bot_config, bot_db)
60 compile_targets = api.chromium_tests.get_compile_targets( 56 compile_targets = api.chromium_tests.get_compile_targets(
61 bot_config, bot_db, tests_including_triggered) 57 bot_config, bot_db, tests_including_triggered)
62 api.chromium_tests.compile_specific_targets( 58 api.chromium_tests.compile_specific_targets(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 properties['gs_acl'] = 'public-read' 105 properties['gs_acl'] = 'public-read'
110 test = ( 106 test = (
111 api.test('full_%s_%s' % (_sanitize_nonalpha(mastername), 107 api.test('full_%s_%s' % (_sanitize_nonalpha(mastername),
112 _sanitize_nonalpha(buildername))) + 108 _sanitize_nonalpha(buildername))) +
113 api.properties.generic(**properties) + 109 api.properties.generic(**properties) +
114 api.platform(bot_config['testing']['platform'], 110 api.platform(bot_config['testing']['platform'],
115 bot_config.get( 111 bot_config.get(
116 'chromium_config_kwargs', {}).get('TARGET_BITS', 64)) 112 'chromium_config_kwargs', {}).get('TARGET_BITS', 64))
117 ) 113 )
118 114
119 if bot_type == 'tester' and mastername == 'tryserver.chromium.perf':
120 bisect_config = {
121 'test_type': 'perf',
122 'command': 'tools/perf/run_benchmark -v '
123 '--browser=release page_cycler.intl_ar_fa_he',
124 'good_revision': '300138',
125 'bad_revision': '300148',
126 'metric': 'warm_times/page_load_time',
127 'repeat_count': '2',
128 'max_time_minutes': '5',
129 'truncate_percent': '25',
130 'bug_id': '425582',
131 'gs_bucket': 'chrome-perf',
132 'builder_host': 'master4.golo.chromium.org',
133 'builder_port': '8341',
134 }
135 test += api.step_data('saving url to temp file',
136 stdout=api.raw_io.output('/tmp/dummy1'))
137 test += api.step_data('saving json to temp file',
138 stdout=api.raw_io.output('/tmp/dummy2'))
139 if 'bisector' in buildername:
140 test += api.step_data('Performance Test 2 of 2', retcode=1)
141 test += api.properties(bisect_config=bisect_config)
142 test += api.properties(job_name='f7a7b4135624439cbd27fdd5133d74ec')
143 test += api.bisect_tester(tempfile='/tmp/dummy')
hans 2016/04/27 15:49:42 This also seems unrelated to sizes.
144 if bot_config.get('parent_buildername'): 115 if bot_config.get('parent_buildername'):
145 test += api.properties(parent_got_revision='1111111') 116 test += api.properties(parent_got_revision='1111111')
146 test += api.properties( 117 test += api.properties(
147 parent_build_archive_url='gs://test-domain/test-archive.zip') 118 parent_build_archive_url='gs://test-domain/test-archive.zip')
148 119
149 if mastername == 'client.v8.fyi': 120 if mastername == 'client.v8.fyi':
150 test += api.properties(revision='22135') 121 test += api.properties(revision='22135')
151 122
152 if bot_config.get('enable_swarming'): 123 if bot_config.get('enable_swarming'):
153 if bot_type == 'tester': 124 if bot_type == 'tester':
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 api.test('amp_split_recipe_collect_failure') + 1012 api.test('amp_split_recipe_collect_failure') +
1042 api.properties( 1013 api.properties(
1043 mastername='chromium.fyi', 1014 mastername='chromium.fyi',
1044 buildername='Android Tests (amp split)', 1015 buildername='Android Tests (amp split)',
1045 slavename='build1-a1', 1016 slavename='build1-a1',
1046 buildnumber='77457', 1017 buildnumber='77457',
1047 parent_build_archive_url='gs://test-domain/test-archive.zip' 1018 parent_build_archive_url='gs://test-domain/test-archive.zip'
1048 ) + 1019 ) +
1049 api.override_step_data('[collect] base_unittests', retcode=1) 1020 api.override_step_data('[collect] base_unittests', retcode=1)
1050 ) 1021 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698