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

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

Issue 353813002: Fix clusterfuzz check in auto-roll. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « 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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 def RunStep(self): 74 def RunStep(self):
75 if not os.path.exists(self.Config(CLUSTERFUZZ_API_KEY_FILE)): 75 if not os.path.exists(self.Config(CLUSTERFUZZ_API_KEY_FILE)):
76 print "Skipping ClusterFuzz check. No api key file found." 76 print "Skipping ClusterFuzz check. No api key file found."
77 return False 77 return False
78 api_key = FileToText(self.Config(CLUSTERFUZZ_API_KEY_FILE)) 78 api_key = FileToText(self.Config(CLUSTERFUZZ_API_KEY_FILE))
79 # Check for open, reproducible issues that have no associated bug. 79 # Check for open, reproducible issues that have no associated bug.
80 result = self._side_effect_handler.ReadClusterFuzzAPI( 80 result = self._side_effect_handler.ReadClusterFuzzAPI(
81 api_key, job_type="linux_asan_d8_dbg", reproducible="True", 81 api_key, job_type="linux_asan_d8_dbg", reproducible="True",
82 open="True", bug_information="", 82 open="True", bug_information="",
83 revision_greater_or_equal=self["last_push"]) 83 revision_greater_or_equal=str(self["last_push"]))
84 if result: 84 if result:
85 print "Stop due to pending ClusterFuzz issues." 85 print "Stop due to pending ClusterFuzz issues."
86 return True 86 return True
87 87
88 88
89 class RollChromium(Step): 89 class RollChromium(Step):
90 MESSAGE = "Roll V8 into Chromium." 90 MESSAGE = "Roll V8 into Chromium."
91 91
92 def RunStep(self): 92 def RunStep(self):
93 if self._options.roll: 93 if self._options.roll:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 CheckActiveRoll, 130 CheckActiveRoll,
131 DetectLastPush, 131 DetectLastPush,
132 DetectLastRoll, 132 DetectLastRoll,
133 CheckClusterFuzz, 133 CheckClusterFuzz,
134 RollChromium, 134 RollChromium,
135 ] 135 ]
136 136
137 137
138 if __name__ == "__main__": # pragma: no cover 138 if __name__ == "__main__": # pragma: no cover
139 sys.exit(AutoRoll(CONFIG).Run()) 139 sys.exit(AutoRoll(CONFIG).Run())
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