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

Side by Side Diff: tools/testing/perf_testing/create_graph.py

Issue 9317060: Fixing Windows buildbot exception. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « frog/scripts/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import datetime 7 import datetime
8 import math 8 import math
9 from matplotlib.font_manager import FontProperties 9 from matplotlib.font_manager import FontProperties
10 import matplotlib.pyplot as plt 10 import matplotlib.pyplot as plt
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 os.chmod(path, stat.S_IWRITE) 100 os.chmod(path, stat.S_IWRITE)
101 os.unlink(path) 101 os.unlink(path)
102 # TODO(efortuna): building the sdk locally is a band-aid until all build 102 # TODO(efortuna): building the sdk locally is a band-aid until all build
103 # platform SDKs are hosted in Google storage. Pull from https://sandbox. 103 # platform SDKs are hosted in Google storage. Pull from https://sandbox.
104 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk 104 # google.com/storage/?arg=dart-dump-render-tree#dart-dump-render-tree%2Fsdk
105 # eventually. 105 # eventually.
106 # TODO(efortuna): Currently always building ia32 architecture because we don't 106 # TODO(efortuna): Currently always building ia32 architecture because we don't
107 # have test statistics for what's passing on x64. Eliminate arch specification 107 # have test statistics for what's passing on x64. Eliminate arch specification
108 # when we have tests running on x64, too. 108 # when we have tests running on x64, too.
109 shutil.rmtree(os.path.join(os.getcwd(), 109 shutil.rmtree(os.path.join(os.getcwd(),
110 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')), onerror=on_rm_error ) 110 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')),
111 onerror=on_rm_error)
111 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release', 112 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release',
112 '--arch=ia32', 'create_sdk']) 113 '--arch=ia32', 'create_sdk'])
113 114
114 for line in lines: 115 for line in lines:
115 if 'BUILD FAILED' in lines: 116 if 'BUILD FAILED' in lines:
116 # Someone checked in a broken build! Just stop trying to make it work 117 # Someone checked in a broken build! Just stop trying to make it work
117 # and wait to try again. 118 # and wait to try again.
118 print 'Broken Build' 119 print 'Broken Build'
119 return 1 120 return 1
120 return 0 121 return 0
121 122
122 def ensure_output_directory(dir_name): 123 def ensure_output_directory(dir_name):
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 if has_new_code(): 745 if has_new_code():
745 run_test_sequence(cl, size, language, perf) 746 run_test_sequence(cl, size, language, perf)
746 else: 747 else:
747 time.sleep(SLEEP_TIME) 748 time.sleep(SLEEP_TIME)
748 else: 749 else:
749 run_test_sequence(cl, size, language, perf) 750 run_test_sequence(cl, size, language, perf)
750 751
751 if __name__ == '__main__': 752 if __name__ == '__main__':
752 main() 753 main()
753 754
OLDNEW
« no previous file with comments | « frog/scripts/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698