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

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

Issue 697433003: More retries when tagging in release scripts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | no next file » | 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 return "branch-heads/%s" % name 401 return "branch-heads/%s" % name
402 402
403 def PushRef(self, ref): 403 def PushRef(self, ref):
404 self.step.Git("push origin %s" % ref) 404 self.step.Git("push origin %s" % ref)
405 405
406 def Tag(self, tag, remote, message): 406 def Tag(self, tag, remote, message):
407 # Wait for the commit to appear. Assumes unique commit message titles (this 407 # Wait for the commit to appear. Assumes unique commit message titles (this
408 # is the case for all automated merge and push commits - also no title is 408 # is the case for all automated merge and push commits - also no title is
409 # the prefix of another title). 409 # the prefix of another title).
410 commit = None 410 commit = None
411 for wait_interval in [3, 7, 15, 35, 35]: 411 for wait_interval in [3, 7, 15, 35, 45, 60]:
412 self.step.Git("fetch") 412 self.step.Git("fetch")
413 commit = self.step.GitLog(n=1, format="%H", grep=message, branch=remote) 413 commit = self.step.GitLog(n=1, format="%H", grep=message, branch=remote)
414 if commit: 414 if commit:
415 break 415 break
416 print("The commit has not replicated to git. Waiting for %s seconds." % 416 print("The commit has not replicated to git. Waiting for %s seconds." %
417 wait_interval) 417 wait_interval)
418 self.step._side_effect_handler.Sleep(wait_interval) 418 self.step._side_effect_handler.Sleep(wait_interval)
419 else: 419 else:
420 self.step.Die("Couldn't determine commit for setting the tag. Maybe the " 420 self.step.Die("Couldn't determine commit for setting the tag. Maybe the "
421 "git updater is lagging behind?") 421 "git updater is lagging behind?")
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 for (number, step_class) in enumerate(step_classes): 913 for (number, step_class) in enumerate(step_classes):
914 steps.append(MakeStep(step_class, number, self._state, self._config, 914 steps.append(MakeStep(step_class, number, self._state, self._config,
915 options, self._side_effect_handler)) 915 options, self._side_effect_handler))
916 for step in steps[options.step:]: 916 for step in steps[options.step:]:
917 if step.Run(): 917 if step.Run():
918 return 0 918 return 0
919 return 0 919 return 0
920 920
921 def Run(self, args=None): 921 def Run(self, args=None):
922 return self.RunSteps(self._Steps(), args) 922 return self.RunSteps(self._Steps(), args)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698