OLD | NEW |
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 Loading... |
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, 20, 20])) |
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 Loading... |
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()) |
OLD | NEW |