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

Side by Side Diff: tools/push-to-trunk/auto_roll.py

Issue 91733003: Add retry feature for push-to-trunk script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments. Created 7 years 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 | « no previous file | tools/push-to-trunk/common_includes.py » ('j') | 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/env python 1 #!/usr/bin/env python
2 # Copyright 2013 the V8 project authors. All rights reserved. 2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 if not match: 55 if not match:
56 self.Die("Could not extract current svn revision from log.") 56 self.Die("Could not extract current svn revision from log.")
57 self.Persist("latest", match.group(1)) 57 self.Persist("latest", match.group(1))
58 58
59 59
60 class FetchLKGR(Step): 60 class FetchLKGR(Step):
61 MESSAGE = "Fetching V8 LKGR." 61 MESSAGE = "Fetching V8 LKGR."
62 62
63 def RunStep(self): 63 def RunStep(self):
64 lkgr_url = "https://v8-status.appspot.com/lkgr" 64 lkgr_url = "https://v8-status.appspot.com/lkgr"
65 self.Persist("lkgr", self.ReadURL(lkgr_url)) 65 # Retry several times since app engine might have issues.
66 self.Persist("lkgr", self.ReadURL(lkgr_url, wait_plan=[5, 20, 300, 300]))
66 67
67 68
68 class PushToTrunk(Step): 69 class PushToTrunk(Step):
69 MESSAGE = "Pushing to trunk if possible." 70 MESSAGE = "Pushing to trunk if possible."
70 71
71 def RunStep(self): 72 def RunStep(self):
72 self.RestoreIfUnset("latest") 73 self.RestoreIfUnset("latest")
73 self.RestoreIfUnset("lkgr") 74 self.RestoreIfUnset("lkgr")
74 latest = int(self._state["latest"]) 75 latest = int(self._state["latest"])
75 lkgr = int(self._state["lkgr"]) 76 lkgr = int(self._state["lkgr"])
(...skipping 25 matching lines...) Expand all
101 return result 102 return result
102 103
103 104
104 def Main(): 105 def Main():
105 parser = BuildOptions() 106 parser = BuildOptions()
106 (options, args) = parser.parse_args() 107 (options, args) = parser.parse_args()
107 RunAutoRoll(CONFIG, options) 108 RunAutoRoll(CONFIG, options)
108 109
109 if __name__ == "__main__": 110 if __name__ == "__main__":
110 sys.exit(Main()) 111 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698