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

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

Issue 1565113003: Add concept of bot config and test spec database (BotConfigAndTestDB). (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebased. (Probably unnecessary.) Created 4 years, 11 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 'bot_update', 9 'bot_update',
10 'chromium', 10 'chromium',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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[ 49 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[
50 mastername]['builders'][buildername]['bot_type'] == 'tester': 50 mastername]['builders'][buildername]['bot_type'] == 'tester':
51 api.bisect_tester.upload_job_url() 51 api.bisect_tester.upload_job_url()
52 52
53 api.chromium_tests.configure_build(mastername, buildername) 53 api.chromium_tests.configure_build(mastername, buildername)
54 update_step, master_dict, test_spec = \ 54 update_step, bot_db = \
55 api.chromium_tests.prepare_checkout(mastername, buildername) 55 api.chromium_tests.prepare_checkout(mastername, buildername)
56 api.chromium_tests.compile(mastername, buildername, update_step, master_dict, 56 api.chromium_tests.compile(mastername, buildername, update_step, bot_db)
57 test_spec)
58 api.chromium_tests.download_and_unzip_build(mastername, buildername, 57 api.chromium_tests.download_and_unzip_build(mastername, buildername,
59 update_step, master_dict) 58 update_step, bot_db)
60 tests = api.chromium_tests.tests_for_builder( 59 tests = api.chromium_tests.tests_for_builder(
61 mastername, buildername, update_step, master_dict) 60 mastername, buildername, update_step, bot_db)
62 61
63 if not tests: 62 if not tests:
64 return 63 return
65 64
66 api.chromium_tests.configure_swarming('chromium', precommit=False, 65 api.chromium_tests.configure_swarming('chromium', precommit=False,
67 mastername=mastername) 66 mastername=mastername)
68 test_runner = api.chromium_tests.create_test_runner(api, tests) 67 test_runner = api.chromium_tests.create_test_runner(api, tests)
69 with api.chromium_tests.wrap_chromium_tests(mastername, tests): 68 with api.chromium_tests.wrap_chromium_tests(mastername, tests):
70 test_runner() 69 test_runner()
71 70
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 api.test('chromium_linux_Android_Tests_logcat_upload_timeout') + 927 api.test('chromium_linux_Android_Tests_logcat_upload_timeout') +
929 api.properties( 928 api.properties(
930 mastername='chromium.linux', 929 mastername='chromium.linux',
931 buildername='Android Tests', 930 buildername='Android Tests',
932 slavename='build1-a1', 931 slavename='build1-a1',
933 buildnumber='77457', 932 buildnumber='77457',
934 parent_buildername='Android Builder', 933 parent_buildername='Android Builder',
935 ) + 934 ) +
936 api.override_step_data('gsutil upload', retcode=-2001) 935 api.override_step_data('gsutil upload', retcode=-2001)
937 ) 936 )
OLDNEW
« no previous file with comments | « scripts/slave/recipes/bisection/desktop_bisect.py ('k') | scripts/slave/recipes/chromium_trybot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698