| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |