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

Unified Diff: scripts/master/factory/swarm_factory.py

Issue 10386096: Get Swarm Bots to Use Network Storage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/master/factory/swarm_commands.py ('k') | scripts/slave/run_slavelastic.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/factory/swarm_factory.py
diff --git a/scripts/master/factory/swarm_factory.py b/scripts/master/factory/swarm_factory.py
index 6057ffc8da5249cd6b128248272c480cf497837a..992fc0928c91dc2a244c77b63c990fa0bda5cf17 100644
--- a/scripts/master/factory/swarm_factory.py
+++ b/scripts/master/factory/swarm_factory.py
@@ -8,6 +8,8 @@ Based on chromium_factory.py and adds chromium-specific steps."""
import os
+from buildbot.process.properties import WithProperties
+
from master.factory import chromium_factory
from master.factory import swarm_commands
@@ -26,9 +28,20 @@ class SwarmFactory(chromium_factory.ChromiumFactory):
self._build_dir,
self._target_platform)
- gclient_env = factory_properties.get("gclient_env")
+ gclient_env = factory_properties.get('gclient_env')
swarm_server = factory_properties.get('swarm_server',
'http://localhost:9001')
+ data_server = factory_properties.get('data_server',
+ 'http://localhost:8080')
+
+ data_dest_root = factory_properties.get('data_dest_dir')
+ if self._target_platform == 'win32':
+ data_dest_dir = WithProperties(data_dest_root + '\\%s',
+ 'buildername:-slave')
+ else:
+ data_dest_dir = WithProperties(data_dest_root + '/%s',
+ 'buildername:-slave')
+
gyp_defines = gclient_env['GYP_DEFINES']
if 'tests_run=hashtable' in gyp_defines:
if self._target_platform == 'win32':
@@ -41,8 +54,12 @@ class SwarmFactory(chromium_factory.ChromiumFactory):
# Send of all the test requests as a single step.
swarm_inputs = [os.path.join('src', out_dir, target, test + '.results')
for test in tests]
+ hashtable_directory = os.path.join('src', out_dir, 'hashtable')
swarm_command_obj.AddTriggerSwarmTestStep(self._target_platform,
swarm_server,
+ data_server,
+ hashtable_directory,
+ data_dest_dir,
factory_properties.get('min_swarm_shards', '3'),
factory_properties.get('max_swarm_shards', '3'),
swarm_inputs)
« no previous file with comments | « scripts/master/factory/swarm_commands.py ('k') | scripts/slave/run_slavelastic.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698