mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-06 02:09:55 +03:00
use go isolate client in trigger.py
python client is being deprecated. I will switch swarming client later. Tested by ~/chromium/src$ python third_party/angle/scripts/trigger.py -p chromium.tests out/Release base_unittests Ubuntu none Bug: chromium:1047115 Change-Id: Ibad2bf5ab80b09aadfcd0431fea8c5e97d38655d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2095035 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
# Helper script for triggering GPU tests on swarming.
|
||||
|
||||
import argparse
|
||||
import hashlib
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -74,16 +75,17 @@ def main():
|
||||
mb_script_path = os.path.join('tools', 'mb', 'mb.py')
|
||||
subprocess.call(['python', mb_script_path, 'isolate', out_gn_path, args.test])
|
||||
|
||||
isolate_script_path = os.path.join('tools', 'swarming_client', 'isolate.py')
|
||||
isolate_cmd_path = os.path.join('tools', 'luci-go', 'isolate')
|
||||
isolate_file = os.path.join(out_file_path, '%s.isolate' % args.test)
|
||||
isolated_file = os.path.join(out_file_path, '%s.isolated' % args.test)
|
||||
|
||||
isolate_args = [
|
||||
'python', isolate_script_path, 'archive', '-I', 'https://isolateserver.appspot.com', '-i',
|
||||
isolate_file, '-s', isolated_file
|
||||
isolate_cmd_path, 'archive', '-I', 'https://isolateserver.appspot.com', '-i', isolate_file,
|
||||
'-s', isolated_file
|
||||
]
|
||||
stdout = subprocess.check_output(isolate_args)
|
||||
sha = stdout[:40]
|
||||
subprocess.check_call(isolate_args)
|
||||
with open(isolated_file, 'rb') as f:
|
||||
sha = hashlib.sha1(f.read()).hexdigest()
|
||||
|
||||
print('Got an isolated SHA of %s' % sha)
|
||||
swarming_script_path = os.path.join('tools', 'swarming_client', 'swarming.py')
|
||||
|
||||
Reference in New Issue
Block a user