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

Unified Diff: tools/bots/cross-vm.py

Issue 1182103005: Add (forward-compatible) change to annotated steps of target-arm builder to support sharding (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/cross-vm.py
diff --git a/tools/bots/cross-vm.py b/tools/bots/cross-vm.py
index f11777ee9c28c6701fbbc5b71f7299dfa28de173..1296fe920517b9daa06fcb75af65c66a2affb964 100644
--- a/tools/bots/cross-vm.py
+++ b/tools/bots/cross-vm.py
@@ -16,7 +16,7 @@ sys.path.append(os.path.join(SCRIPT_DIR, '..'))
import utils
CROSS_VM = r'cross-(arm)-vm-linux-(release)'
-TARGET_VM = r'target-(arm)-vm-linux-(release)'
+TARGET_VM = r'target-(arm)-vm-linux-(([0-9]+)-([0-9]+))?(release)'
GSUTIL = utils.GetBuildbotGSUtilPath()
def run(args):
@@ -65,12 +65,15 @@ def cross_compiling_builder(arch, mode):
if os.path.exists(path):
os.remove(path)
-def target_builder(arch, mode):
+def target_builder(arch, mode, total_shards, shard_index):
test_py = os.path.join('tools', 'test.py')
test_args = [sys.executable, test_py, '--progress=line', '--report',
'--time', '--compiler=none', '--runtime=vm', '--write-debug-log',
'--write-test-outcome-log', '--mode=' + mode, '--arch=' + arch,
'--exclude-suite=pkg']
+ if total_shards and shard_index:
+ test_args.append('--shards=%s' % total_shards)
+ test_args.append('--shard=%s' % shard_index)
revision = os.environ['BUILDBOT_GOT_REVISION']
tarball = tarball_name(arch, mode, revision)
@@ -106,8 +109,10 @@ def main():
cross_compiling_builder(arch, mode)
elif target_vm_pattern_match:
arch = target_vm_pattern_match.group(1)
- mode = target_vm_pattern_match.group(2)
- target_builder(arch, mode)
+ mode = target_vm_pattern_match.group(5)
+ shard_index = target_vm_pattern_match.group(3)
+ total_shards = target_vm_pattern_match.group(4)
+ target_builder(arch, mode, total_shards, shard_index)
else:
raise Exception("Unknown builder name %s" % name)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698