Commit Graph

31 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
Doug Hellmann 33264f91d9 do not use title to show when a repo is being cloned
The extra info just clutters up the report output.

Change-Id: I4ba29f240ac625a299ff538931ef394d31bd43b5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-23 13:53:50 -05:00
Tony Breeds 7542cf910d Fix update_upper_constraints removing additional ' ' char
In update_upper_constraints the sed substitution matches on a ' ' char after
the UPPER_CONSTRAINTS_FILE consumes.  This creates bad changes such as [1].
Compare the manual correction at [2].

I know that make_stable_branches is being moved to project-config but
the shell function remains in release-tools so shoudl be fixed.

[1] https://review.openstack.org/#/c/364973/1/tox.ini@17
[2] https://review.openstack.org/#/c/364973/1..2/tox.ini,unified

Change-Id: I373612254fa7b4afdce0b76a98ad3a88d1f77911
2016-09-05 09:24:57 +10:00
Tony Breeds 13121d0d60 Update the UPPER_CONSTRAINTS_FILE url to include the new branch
The danger here is that if the branch doesn't exisit and the review
merges the new branch or $project will be unconstrained and therefore
testing is somewhat voided.

We need to manage that externally to this process

Change-Id: Iae6aefefcd6b7e96d15bd5d373ae439e4fe80daf
2016-07-27 15:36:06 -05:00
Doug Hellmann 4e24b7a096 force a fuller update of the repo being cloned for tagging
zuul-cloner may be using an out of date cache, and may have pointed
originally at a repo on a zuul merger that doesn't have all tags. Force
an update of all remotes and fetch all tags to make sure they are
present before we start trying to add any new ones.

Change-Id: I29cdae3ff8195e4b7e35ac486429394f17919bff
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-07-15 10:31:04 -04:00
Davanum Srinivas c94969aee9 unset custom GREP_OPTIONS
Our scripts will fail if the output from grep has colors. So
let's turn them off.

Change-Id: I67679acede50219a0426547d5f77c8e69021ffb2
2016-06-02 11:09:22 -04:00
Doug Hellmann c5357e4f9d fix previous version detection for repos with no tags
Change-Id: I38084753f3ba11bb28b1faee99e3cd23766f6162
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-05-11 18:05:38 -04:00
Jenkins 3eb4694b65 Merge "Hide the zuul-cloner output unless there is an error" 2016-04-28 19:42:50 +00:00
Tony Breeds 896e963b98 Hide the zuul-cloner output unless there is an error
The setup of the git repos can be a little chatty.  Hide the output in
the common case.

Change-Id: I110df3e0f3c9033c3fe76b2f534a67d2cb31fbc9
2016-04-21 15:55:28 +10:00
Doug Hellmann 0b8d50247f make compare_tarball_diff.sh quieter
Silence some of the output so the total length of the output log is
short enough to fit in a pastebin.

Change-Id: Ie552472b68f1bce64be03aaf28d46fbd45bcdf7c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-04-20 13:45:05 -04:00
Doug Hellmann 0a2fa54787 ignore existing default branch when setting new default branch
If the .gitreview file happens to have a defaultbranch line, strip it
and replace it with the new value.

Change-Id: I0252d1f39c0909c4323764ab1bc2d6256f8d9df6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 09:44:02 -05:00
Doug Hellmann 27e863e6f2 make temporary directories stand out
Sometimes it is necessary to turn off the automatic cleanup
function. This change makes the temporary directory created stand out
more in those cases so it is easier to clean them up by hand.

Change-Id: I37e4125cb562cfeea6febd1da916e4b23726147e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-02-12 14:16:25 -05:00
Doug Hellmann de4a931821 fix error handling and bug reporting in release script
After the tag is pushed, we don't want to die with an error if we can't
update the bug reports, so turn off the -e shell flag.

We have to check for the previous tag before we add the new one, because
the logic for finding the last tag assumes the new one is not there yet.

Change-Id: If2ac25b8bd96e4e0c5b90016a3c40d43733ab849
2015-11-24 21:15:25 +00:00
Doug Hellmann 055a8dabac fix lp project name to repo name conversion
The ironic-python-agent repo and launchpad name are the same, but the
conversion script tries to strip the python- part out of the middle.
Change the pattern so it only removes python- if it is a prefix in the
name.

Change-Id: I5c2f4c4c86e0f2e5528efd28f2c46e10ca7f74f6
2015-10-06 16:06:33 +00:00
Doug Hellmann 0382c5d0a3 add a consistent topic to all .gitreview updates
Change-Id: Ia4b655a72ce30044d03e69cb2810243a93ff21d7
2015-09-22 17:44:35 +00:00
Doug Hellmann ac6433d90b Show output of zuul-cloner
Show the output of zuul-cloner so we can verify that it is using the
cache specified.

Change-Id: If0b856531f50c08ea5d7d24c6b88c6579c8f585a
2015-09-18 16:18:25 +00:00
Doug Hellmann 1b35354264 add special case for django-openstack-auth
Change-Id: I1c8376b719dd0a7cb92d4e9a529ea4bb6102ca0d
2015-09-18 14:36:51 +00:00
Doug Hellmann eb249d801c don't assume we will get an existing tag
Change-Id: Ib3d8bfdc55c450c0abe72b0d23ae0e6af0182c48
2015-09-01 15:05:12 +00:00
Davanum Srinivas b78eb68509 Silence the INFO logs from zuul-cloner
Change-Id: I70b60834f5006445a73edb7e894ed40ec968c252
2015-08-28 10:53:31 -04:00
Doug Hellmann 147b4733dd use git describe to find the last tag
It turns out git describe will just give us the most recent tag, so use
that instead of trying to recreate it.

Change-Id: If6035d5b931cf646031be4068608a85184b681cc
2015-08-25 15:07:02 +00:00
Doug Hellmann 9596ee7fc4 use zuul-cloner to check out files
Rather than calling "git clone" directly, use zuul-cloner. This will
allow users with slow connections to set up local cache directories to
use as the source of the clone.

Change-Id: I1788531fec8a9bfd9ed3ca867156ef9e3aefc762
2015-08-12 21:16:53 +00:00
Doug Hellmann 5670efbbeb translate glance-store to glance_store
Change-Id: I7dd5b7c8cdc824ce625cef805e4afdb375d7592c
2015-07-16 20:34:50 +00:00
Doug Hellmann 20a344c8f5 Only use tput when we are writing to a terminal
The output of some of the commands, especially building the list of
unrelease changes, needs to be easy to pass to pastebinit. When we're
writing to a pipe, don't use tput to send special control sequences.

Change-Id: I4c8a4ffd08f362c16bbfd5ca9a47996b4f31f321
2015-06-23 09:40:12 -04:00
Jenkins ac81c97372 Merge "Add make_feature_branch.sh" 2015-06-15 14:43:22 +00:00
Doug Hellmann 7a05e36062 Add make_feature_branch.sh
Add a script for creating feature branches.

Move the code for updating the .gitreview file of a branch to a function
that can be reused by make_library_stable_branch.sh and the new
make_feature_branch.sh.

Change-Id: Ic40df4de12380dacb97dd606a30edfdbbe4196a8
2015-06-05 15:21:06 -04:00
Doug Hellmann 40b79d3305 Make get_last_tag work on OS X
I run the release tools directly on my laptop in order to have the
launchpad authentication work properly, and OS X uses a different
version of sed than Linux. This patch makes the extended regex stuff
work properly on both platforms.

Change-Id: Id417c7178044dc7d16a347716a73a790bd4cb6e8
2015-05-19 16:42:11 -07:00
Doug Hellmann 7f583deb8d Print release notes as part of releasing the library
Go ahead and print the release notes for the current release in a form
that can be copied and pasted into an email message.

Change-Id: I115e2ddd1b35a97c1fd12e9e37a18431cbaa9c1b
2015-05-04 20:28:02 +00:00
Doug Hellmann 98e45f9cd2 Move get_last_tag to functions
Move the shell function for retrieving the last tag in a repository into
the functions file where we can share it.

Change-Id: Ia06b7954d7ec0e0cfe27e3529402cd03473dd53f
2015-05-04 20:28:02 +00:00
Doug Hellmann 7c17f7b886 Add list_unreleased_changes.sh
Add a script to list the changes in a given branch of a set of
repositories.

Change-Id: I3ed3df4fb640f20d9d86eb0a9618fbb67a58be77
2015-05-01 14:35:24 +00:00
Doug Hellmann f55d421d2f Fix lp project to repo name conversion
python-keystoneclient-kerberos did not match the old pattern, so we were
trying to release from a repository that does not exist.

Change-Id: If9dcc4c4352b702e24149e0c31aa0b80a46fac80
2015-04-21 13:34:58 -04:00
Doug Hellmann 8a2564746c Add script for creating stable releases of libraries
Libraries do not use proposed branches, and go directly to creating
stable branches using a pre-tagged release version. This new script
makes that easy to coordinate and ensures that the desired version also
exists in launchpad as a released milestone.

The new script also uses some logic that was present in
release_library.sh, so refactor that to start a library of functions for
shell scripts to share.

Change-Id: I04de68be189944eb5f611ca43f452d6bd3ba911d
2015-03-13 17:39:29 -04:00