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

Side by Side Diff: scripts/master/factory/chromium_commands.py

Issue 24565004: Split swarm_triggered into 3 builders to make it easier on devs. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/tools/build.git@master
Patch Set: Created 7 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Set of utilities to add commands to a buildbot factory. 5 """Set of utilities to add commands to a buildbot factory.
6 6
7 This is based on commands.py and adds chromium-specific commands.""" 7 This is based on commands.py and adds chromium-specific commands."""
8 8
9 import logging 9 import logging
10 import os 10 import os
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 self.AddGenerateIsolatedHashesStep( 1719 self.AddGenerateIsolatedHashesStep(
1720 using_ninja, 1720 using_ninja,
1721 [t[:-len('_swarm')] for t in tests], 1721 [t[:-len('_swarm')] for t in tests],
1722 doStepIf=swarm_commands.TestStepFilterTriggerSwarm) 1722 doStepIf=swarm_commands.TestStepFilterTriggerSwarm)
1723 1723
1724 # Trigger the swarm test builder. The only issue here is that 1724 # Trigger the swarm test builder. The only issue here is that
1725 # updateSourceStamp=False cannot be used because we want the user to get the 1725 # updateSourceStamp=False cannot be used because we want the user to get the
1726 # email, e.g. the blamelist to be properly set, but that causes any patch to 1726 # email, e.g. the blamelist to be properly set, but that causes any patch to
1727 # be caried over, which is annoying but benign. 1727 # be caried over, which is annoying but benign.
1728 self._factory.addStep(commands.CreateTriggerStep( 1728 self._factory.addStep(commands.CreateTriggerStep(
1729 trigger_name='swarm_triggered', 1729 trigger_name=factory_properties['triggered_builder'],
1730 trigger_set_properties={ 1730 trigger_set_properties={
1731 'target_os': self._target_platform, 1731 'target_os': self._target_platform,
1732 'use_swarm_client_revision': 1732 'use_swarm_client_revision':
1733 WithProperties('%(got_swarm_client_revision:-)s'), 1733 WithProperties('%(got_swarm_client_revision:-)s'),
1734 'use_swarming_client_revision': 1734 'use_swarming_client_revision':
1735 WithProperties('%(got_swarming_client_revision:-)s'), 1735 WithProperties('%(got_swarming_client_revision:-)s'),
1736 }, 1736 },
1737 trigger_copy_properties=[ 1737 trigger_copy_properties=[
1738 'run_default_swarm_tests', 1738 'run_default_swarm_tests',
1739 'swarm_hashes', 1739 'swarm_hashes',
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) 1832 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name)
1833 1833
1834 1834
1835 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): 1835 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'):
1836 if not factory_properties or 'gs_bucket' not in factory_properties: 1836 if not factory_properties or 'gs_bucket' not in factory_properties:
1837 return (_GetArchiveUrl('snapshots', builder_name), None) 1837 return (_GetArchiveUrl('snapshots', builder_name), None)
1838 gs_bucket = factory_properties['gs_bucket'] 1838 gs_bucket = factory_properties['gs_bucket']
1839 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', 1839 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/',
1840 gs_bucket) 1840 gs_bucket)
1841 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') 1841 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698