OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import json | 7 import json |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 import urllib | 10 import urllib |
(...skipping 24 matching lines...) Expand all Loading... |
35 result = self.ReadURL(search_url, params, wait_plan=[5, 20]) | 35 result = self.ReadURL(search_url, params, wait_plan=[5, 20]) |
36 if self.ContainsChromiumRoll(json.loads(result)["results"]): | 36 if self.ContainsChromiumRoll(json.loads(result)["results"]): |
37 print "Stop due to existing Chromium roll." | 37 print "Stop due to existing Chromium roll." |
38 return True | 38 return True |
39 | 39 |
40 | 40 |
41 class DetectLastPush(Step): | 41 class DetectLastPush(Step): |
42 MESSAGE = "Detect commit ID of the last push to trunk." | 42 MESSAGE = "Detect commit ID of the last push to trunk." |
43 | 43 |
44 def RunStep(self): | 44 def RunStep(self): |
| 45 self.vc.Fetch() |
45 push_hash = self.FindLastTrunkPush( | 46 push_hash = self.FindLastTrunkPush( |
46 branch="origin/candidates", include_patches=True) | 47 branch="origin/candidates", include_patches=True) |
47 self["last_push"] = self.GetCommitPositionNumber(push_hash) | 48 self["last_push"] = self.GetCommitPositionNumber(push_hash) |
48 | 49 |
49 | 50 |
50 class DetectLastRoll(Step): | 51 class DetectLastRoll(Step): |
51 MESSAGE = "Detect commit ID of the last Chromium roll." | 52 MESSAGE = "Detect commit ID of the last Chromium roll." |
52 | 53 |
53 def RunStep(self): | 54 def RunStep(self): |
54 # Interpret the DEPS file to retrieve the v8 revision. | 55 # Interpret the DEPS file to retrieve the v8 revision. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 CheckActiveRoll, | 133 CheckActiveRoll, |
133 DetectLastPush, | 134 DetectLastPush, |
134 DetectLastRoll, | 135 DetectLastRoll, |
135 CheckClusterFuzz, | 136 CheckClusterFuzz, |
136 RollChromium, | 137 RollChromium, |
137 ] | 138 ] |
138 | 139 |
139 | 140 |
140 if __name__ == "__main__": # pragma: no cover | 141 if __name__ == "__main__": # pragma: no cover |
141 sys.exit(AutoRoll().Run()) | 142 sys.exit(AutoRoll().Run()) |
OLD | NEW |