Commit Graph

10 Commits

Author SHA1 Message Date
Jeremy Stanley 39a82df080 This repository is now retired
The Release Management Team ceased using this months ago. Its
contents are replaced with a retirement notice so that potential
users will realize it is no longer maintained. Publicly announced
at:

http://lists.openstack.org/pipermail/openstack-dev/2018-June/131920.html

Change-Id: Ia30884174c43ef1c1afcc1f4a18b3c0051a89d8e
Depends-On: https://review.openstack.org/579185
2018-06-29 15:27:19 +00:00
Tony Breeds 69c1b0db4d Make getopt and eol_branch.sh agree on the name for the dry-run argument
If we run eol_branch.sh with --dry-run we get told it's an unknown
argument.  This is because we're calling getopt with 'dry'.  Let's give
getopt the right name.

Change-Id: I379ebdaa3c9d48218df974d01de2c76744d21c6f
2018-03-30 11:58:30 +11:00
Joshua Hesketh 9a7f57202d Fix abandoning reviews in eol_branch
The loop that was meant to abandon all open reviews for an EOL branch was
only getting the 1st one due to the way the ssh output was being read in.

Make this neater by creating an array of revisions from the query to
abandon before looping over them.

Additionally tighten the regex matching the change revision. The gerrit
query returns a lot of information, including the commit message, meaning
that any references to 'revision' in a commit message could be erroneously
matched.

Change-Id: I1dd3a94bec45aaeae9c37af1fd7b18905f0401ef
2017-09-28 18:38:16 +10:00
Joshua Hesketh f58cb68fe1 Check the gerrit remote is as expected, eol_branch
I've come across the case where .gitreview has had the incorrect remote
information for the repository (for example another projects .gitreview
has been blindly copied in). Add some basic checking to ensure the
remote looks correct or raise a warning if not.

Change-Id: I663b95656db8c5ddab08e2e4aa6514694b00a1ab
2017-09-21 10:59:41 -04:00
Joshua Hesketh dcf7ae4e37 Set up gerrit remote manually in eol_branch.sh
When a project is retired there is not .gitreview in their repository.
If we still need to EOL old branches we need to figure out the gerrit
remote. We could get this by checking out an older branch, but to keep
it simple we just assume/guess it's review.openstack.org/$project.git

Change-Id: I779783cc3f06af28f17ee36a1f0a84df29c4177d
2017-09-21 10:53:03 -04:00
Joshua Hesketh 426adf852a Fix options to allow --warn-exit in eol-branch.sh
The --warn-exit option was recently added except that the getopt
parsing wasn't appropriately updated and thus rejected the flags.

The flag also doesn't take a positional argument, so fix the argument
shifting.

Change-Id: I9671f79a969a7e5f9aaff9edaf235406d77b2da8
2017-09-20 20:54:21 +10:00
Joshua Hesketh 1abd80ed8f Add feature to exit on warning in eol_branch
Change-Id: Ia666a0fb5e1e2fef49bc1639a74a0ab1c63170b1
2017-07-18 22:32:55 +10:00
Joshua Hesketh 1d8e811892 Handle unknown projects in eol_branch
The script assumes you have all of openstack checked out. However
for new repos (or presumably all) we can easily clone it if we don't
have it. Clearly this is very inefficient, but it is simply how this
script works for now.

Change-Id: I0d0ab73da6d4e93172be94178652c5aa28d7dcdb
2017-07-18 22:25:12 +10:00
Joshua Hesketh 3f0acc3919 Fix a few small things with eol_branch
- exit on error
- Appropriately escape EOL message
- push full branch ref to avoid namespace conflicts (eg tags)

Change-Id: I321392e228a6990d7b903b2dd2f40a2b369ed526
2017-07-18 22:25:12 +10:00
Joshua Hesketh 59dfd84b56 Automate retiring old branches
Change-Id: If6ea0e3b438d08cd0eeb1f49f30877ad76337238
2016-07-12 11:20:01 +10:00