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

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

Issue 10035003: Split up Each Swarm Test into Two Steps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 8 years, 8 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
Index: scripts/master/factory/swarm_factory.py
diff --git a/scripts/master/factory/swarm_factory.py b/scripts/master/factory/swarm_factory.py
index 38faf9cf6f7d910da774389a91d924de67b93468..abbe55cb8eb6a6a956eb2e6bef4a79bd9f12d7a9 100644
--- a/scripts/master/factory/swarm_factory.py
+++ b/scripts/master/factory/swarm_factory.py
@@ -28,13 +28,22 @@ class SwarmFactory(chromium_factory.ChromiumFactory):
gclient_env = factory_properties.get("gclient_env")
gyp_defines = gclient_env['GYP_DEFINES']
if 'tests_run=hashtable' in gyp_defines:
- for test in tests:
- swarm_command_obj.AddSwarmTestStep(self._target_platform,
+ # Send of all the test requests as a single step.
+ swarm_inputs = [os.path.join('src', 'out', target, test + '.results')
+ for test in tests]
+ swarm_command_obj.AddSendSwarmTestStep(self._target_platform,
M-A Ruel 2012/04/17 20:16:00 That's weird that triggering the jobs are all done
csharp 2012/04/18 18:20:29 Well the test triggers will soon all be one step,
factory_properties.get('swarm_server', 'localhost'),
factory_properties.get('swarm_port', '9001'),
factory_properties.get('min_swarm_shards', '3'),
factory_properties.get('max_swarm_shards', '3'),
- os.path.join('src', 'out', target, test + '.results'),
+ swarm_inputs,
+ tests)
+
+ # Each test has its output returned as its own step.
+ for test in tests:
+ swarm_command_obj.AddGetSwarmTestStep(
+ factory_properties.get('swarm_server', 'localhost'),
+ factory_properties.get('swarm_port', '9001'),
test)
return factory

Powered by Google App Engine
This is Rietveld 408576698