This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview
To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup
Change-Id: I73971fd7af69aab05cd84b859f50ce09c578619e
Remove the announce.sh script from this repo so we only have one copy in
the releases repo that we need to maintain.
Story: #2001816
Change-Id: I486df8fa09050bd2e903922263c12192f4d21805
Depends-On: https://review.openstack.org/564329
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
If the announce script cannot set up the tools it needs it should not
continue.
Change-Id: If66a5f863976c5c2010ac7d5c2efdfed55ff58c1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Reno produces anchor references for sections automatically now, and
those don't have URIs set up so we want to ignore them. If we do have
another target that does have a URI we want to include that, so test
whether we have the URI before including the target info in the
output.
Change-Id: I84f1b67b3078662f72c09c0f69bd09a45a7fe83e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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
Based on current Launchpad scripts, these scripts allow to add a tag to
stories, filter out stories with a specific tag
Add relevant sections README
Change-Id: Ifa73a5747afaf02d606e0da5ba12cc361e77c822
If enabled, this includes StoryBoard stories in the output, with a
"storyboard:" prefix.
Example output:
$ ./bugs-fixed-since.py -sb -r ../octavia --start=1.0.0
storyboard:2001193
storyboard:2001424
1713873
storyboard:2001401
[...]
This is disabled for compatibility with other tools parsing
bugs-fixed-since output
Change-Id: Iddde675254a8622d498cab581d522bffdd7fbaae
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
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
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
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
In the event that we're releasing a non-Python project or the
project otherwise lacks a usable setup.py, first attempt to infer
the project name from the $ZUUL_PROJECT environment variable if set
before falling back on assuming the project name is the same as the
name of the current working directory. This is particularly
important when running under CI systems like Zuul, which will name
the current working directory after the job rather than after the
project itself.
Change-Id: I19b51846b581c5d033b08466ca09f23b23bd5e49
Periodically when we have an announcement failure someone has to run
announce.sh by hand. This change makes that a little nicer by waiting
until after the argument validation is done to "set -x" so that the
usage message for missing arguments is printed more cleanly.
Change-Id: I2081b28315fd2272399b10e98e7bd390f6bc970e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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
Python 3 does not allow comparison between integers and strings. The
semver RulesTest class includes a case where the most recent tag is an
EOL name tag, and the comparison breaks under Python 3. This patch
modifies the comparison to skip over tags that can't be compared to only
look at numerical versions.
Depends-On: I9e56e1e5b0171f8ed4ae05c6aba36c4c733486fa
Change-Id: Id9ad068a279653ffb20c60d1752e41bb0e7bc5d1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
We use the venv tox target as a generic environment for running commands
defined in this repo. Let's redefine the environment to use python 3 by
default.
Change-Id: I0cf5f50b7d36f5ebb61408eefeccb702432464be
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
There is no version of the library for Python 3.
Change-Id: I31fd444dde04edf4a4541128b6852f681f60f1f5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Correct the logic related to parsing the server address so that the
default is not overwritten if there is no @ in the address.
Fix handling of a missing password by allowing an empty string to mean
no password was given.
Move the TO parsing out of the try/finally block so that errors in
parsing the message are not swallowed by errors when we quit a server
connection that wasn't opened properly.
Change-Id: I73a24a4d87c0f4a5aabd302d8a7d2884e5513c31
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Filter out all the bugs had been merged in stable branch for
a period of time, that is important for downstream team,
so that we can pick some important bugs to backport.
Change-Id: Ib5edd053ac58713e35a6c5818fe2f8fc2d31ba70
When running announce.sh from my local developer workstation I cannot
connect to lisst.openstack.org. I know my ISP filters outbound traffic
to port TCP:25 but there may be additional reasons.
This chnage enhances the --server option to allow you to provide
username, password hostname and TCP port with which to contact a mail
server.
This is not a complete solution but it makes it much easier for me to
work locally if needed.
Change-Id: I1a0f03341d1962a30c0737b59d32e8e68c28644b