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

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

Issue 1177593002: Add swarming support for MB (and the GN bots) in the chromium recipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: updated baselines Created 5 years, 6 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 | Annotate | Revision Log
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 from infra.libs.infra_types import freeze 5 from infra.libs.infra_types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'bot_update', 8 'bot_update',
9 'chromium', 9 'chromium',
10 'chromium_android', 10 'chromium_android',
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 tests.append(api.chromium.steps.BlinkTest()) 414 tests.append(api.chromium.steps.BlinkTest())
415 415
416 compile_targets, tests_including_triggered = \ 416 compile_targets, tests_including_triggered = \
417 api.chromium_tests.get_compile_targets_and_tests( 417 api.chromium_tests.get_compile_targets_and_tests(
418 bot_config['mastername'], 418 bot_config['mastername'],
419 bot_config['buildername'], 419 bot_config['buildername'],
420 master_dict, 420 master_dict,
421 override_bot_type='builder_tester', 421 override_bot_type='builder_tester',
422 override_tests=tests) 422 override_tests=tests)
423 423
424 if api.m.chromium.c.project_generator.tool == 'mb':
Paweł Hajdan Jr. 2015/06/10 10:27:19 Why is the MB logic duplicated inline between chro
Dirk Pranke 2015/06/10 16:11:40 The way we build swarming_targets is a bit differe
425 swarming_targets = [
426 t.name for t in tests_including_triggered if t.uses_swarming
427 ]
428 api.m.chromium.run_mb(mastername, buildername,
429 swarming_targets=swarming_targets)
430
424 requires_compile, _, compile_targets = \ 431 requires_compile, _, compile_targets = \
425 api.chromium_tests.analyze( 432 api.chromium_tests.analyze(
426 affected_files, 433 affected_files,
427 all_compile_targets(api, tests + tests_including_triggered), 434 all_compile_targets(api, tests + tests_including_triggered),
428 compile_targets, 435 compile_targets,
429 'trybot_analyze_config.json') 436 'trybot_analyze_config.json')
430 437
431 if not requires_compile: 438 if not requires_compile:
432 return 439 return
433 440
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 996
990 yield ( 997 yield (
991 api.test('swarming_paths') + 998 api.test('swarming_paths') +
992 api.properties.tryserver( 999 api.properties.tryserver(
993 mastername='tryserver.chromium.linux', 1000 mastername='tryserver.chromium.linux',
994 buildername='linux_chromium_rel_ng', 1001 buildername='linux_chromium_rel_ng',
995 path_config='swarming', 1002 path_config='swarming',
996 ) + 1003 ) +
997 api.platform.name('linux') 1004 api.platform.name('linux')
998 ) 1005 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698