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

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

Issue 9325002: Fix windows performance tests. (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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 """Make sure we have the latest version of of the repo, and build it. We 85 """Make sure we have the latest version of of the repo, and build it. We
86 begin and end standing in DART_INSTALL_LOCATION. 86 begin and end standing in DART_INSTALL_LOCATION.
87 87
88 Returns: 88 Returns:
89 err_code = 1 if there was a problem building.""" 89 err_code = 1 if there was a problem building."""
90 os.chdir(DART_INSTALL_LOCATION) 90 os.chdir(DART_INSTALL_LOCATION)
91 #Revert our newly built minfrog to prevent conflicts when we update 91 #Revert our newly built minfrog to prevent conflicts when we update
92 run_cmd(['svn', 'revert', os.path.join(os.getcwd(), 'frog', 'minfrog')]) 92 run_cmd(['svn', 'revert', os.path.join(os.getcwd(), 'frog', 'minfrog')])
93 93
94 run_cmd(['gclient', 'sync']) 94 run_cmd(['gclient', 'sync'])
95
96 # On Windows, the output directory is marked as "Read Only," which causes an
97 # error to be thrown when we use shutil.rmtree. This helper function changes
98 # the permissions so we can still delete the directory.
99 def on_rm_error(func, path, exc_info):
100 os.chmod(path, stat.S_IWRITE)
101 os.unlink(path)
95 # 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
96 # platform SDKs are hosted in Google storage. Pull from https://sandbox. 103 # platform SDKs are hosted in Google storage. Pull from https://sandbox.
97 # 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
98 # eventually. 105 # eventually.
99 # TODO(efortuna): Currently always building ia32 architecture because we don't 106 # TODO(efortuna): Currently always building ia32 architecture because we don't
100 # 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
101 # when we have tests running on x64, too. 108 # when we have tests running on x64, too.
102 shutil.rmtree(os.path.join(os.getcwd(), 109 shutil.rmtree(os.path.join(os.getcwd(),
103 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32'))) 110 utils.GetBuildRoot(utils.GuessOS(), 'release', 'ia32')), onerror=on_rm_error )
Siggi Cherem (dart-lang) 2012/02/02 19:22:16 80 col
104 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release', 111 lines = run_cmd([os.path.join('.', 'tools', 'build.py'), '-m', 'release',
105 '--arch=ia32', 'create_sdk']) 112 '--arch=ia32', 'create_sdk'])
106 113
107 for line in lines: 114 for line in lines:
108 if 'BUILD FAILED' in lines: 115 if 'BUILD FAILED' in lines:
109 # Someone checked in a broken build! Just stop trying to make it work 116 # Someone checked in a broken build! Just stop trying to make it work
110 # and wait to try again. 117 # and wait to try again.
111 print 'Broken Build' 118 print 'Broken Build'
112 return 1 119 return 1
113 return 0 120 return 0
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 if has_new_code(): 744 if has_new_code():
738 run_test_sequence(cl, size, language, perf) 745 run_test_sequence(cl, size, language, perf)
739 else: 746 else:
740 time.sleep(SLEEP_TIME) 747 time.sleep(SLEEP_TIME)
741 else: 748 else:
742 run_test_sequence(cl, size, language, perf) 749 run_test_sequence(cl, size, language, perf)
743 750
744 if __name__ == '__main__': 751 if __name__ == '__main__':
745 main() 752 main()
746 753
OLDNEW
« frog/scripts/buildbot_annotated_steps.py ('K') | « frog/scripts/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698