Commit Graph

85 Commits

Author SHA1 Message Date
OpenDev Sysadmins 6cde49057b OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:34:53 +00:00
Doug Hellmann 30f8eff1a3 handle stable branch eol
Allow reno to handle the OpenStack process of deleting stable branches
and replacing them with eol tags.

Change-Id: I41ab682f081e7fd39ea534b7e2180c2109ca34ef
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-12-14 11:50:01 -05:00
OpenStack Release Bot bddf2fbdc0 Update .gitreview for stable/newton
Change-Id: Id9690d6490fdd068b27b26932357951aec7507b0
2016-12-14 16:06:56 +00:00
Jenkins 50c6ed36be Merge "ignore all coverage output files" 2016-06-23 13:03:15 +00:00
Jenkins 579ddc4f74 Merge "add warnings for malformated input" 2016-06-23 13:03:09 +00:00
Doug Hellmann 96b0641269 ignore all coverage output files
Change-Id: I30176af6ff0f5117f16ed79ce423799371caf26d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-06-22 13:47:59 -04:00
Doug Hellmann 2a86047efe add warnings for malformated input
Log warnings if the input doesn't match the type of data
expected. Eventually we may want to enforce these rules by raising
exceptions, but for now it should be enough to help someone debug their
problem to just print a warning.

Change-Id: I9016041bf13e9047d1894d2284b57b0a94554977
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-06-22 13:47:55 -04:00
Doug Hellmann 92ddd8f692 add API for writing the cache file
Provide a stable API for writing to the cache file for projects that
don't want to invoke the shell command.

Change-Id: Iba80e313b6dba8182aebcba3f7bf99460226d75d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-06-20 15:01:13 -04:00
Doug Hellmann 0c103c36e6 report extra files with warnings
If the user forgets to add the .yaml extension, we ignore the
file. Instead of doing that silently, report that we see something and
that we're ignoring it.

Change-Id: I18130951a09a216339d3b63dc7decc67e766ee2d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-06-16 18:34:09 -04:00
Clint Byrum 45878e06b2 Ignore empty sections in notes
Users may do this, and it doesn't make sense to explode when a valid
section is stated but empty.

Change-Id: I1b30be6122893563cdc4c41172e28ed5a69a0e3c
Closes-Bug: #1588992
2016-06-04 09:56:05 -07:00
ChangBo Guo(gcb) 38b015817e Clean up oslo-incubator stuff
Change-Id: If8ef4537fec846a81e5a4be79b28f37b28c16550
2016-05-30 13:40:13 +08:00
ZhiQiang Fan 1d7c3d88d7 [Trivial] Remove executable privilege of doc/source/conf.py
It is a configuration file, rather than a script.

Change-Id: I645bf620596a61275253e15d9f74f639e3a4b3dc
2016-04-29 20:29:21 +08:00
Jenkins 79cb9cd5a3 Merge "make the cache command write to a file by default" 2016-04-18 12:57:21 +00:00
Jenkins 8fbfc69e79 Merge "use the cache file instead of scanner when possible" 2016-04-18 12:56:04 +00:00
Jenkins 0088327412 Merge "add 'cache' command to write a cache file" 2016-04-18 12:48:03 +00:00
Doug Hellmann 11a2b7a88d default to collapsing pre-releases in sphinxext
Change-Id: I2e7b3af24cff19c60e933cd7766c438aa76ed1b8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-04-07 04:12:37 -04:00
Doug Hellmann 8df79bf2b8 handle deleted notes properly
We had handling for renamed notes but not for deleted files. Add
handling with tests.

Change-Id: I20e40c6e60eee7840018abec07d23bc0be7cf696
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-15 13:59:11 -04:00
Doug Hellmann c805665f6b make the cache command write to a file by default
Compute the name of the file the loader is going to look for and write
to that if no other output is given. Use '-' to write to stdout.

Change-Id: I3f2cebb1c7a8e77cf8ed8d78c8ab85ccdd4ee325
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 17:53:11 -05:00
Doug Hellmann 9cb8c4bf1b use the cache file instead of scanner when possible
Define a loader API on top of the cache and scanner APIs and update the
list, report, and sphinxext modules to use that instead of calling the
scanner directly.

Change-Id: I2899c2ae9bb46919a375ffe4f195b239cff389ef
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 17:53:09 -05:00
Doug Hellmann 0b459b8337 add 'cache' command to write a cache file
Generate YAML data based on the query arguments. A future patch will
read the cache, if present, instead of scanning the git history.

Change-Id: I711577b40d6030e670a0620a38809e61b9ebf512
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 17:52:15 -05:00
Doug Hellmann 2a3b26abfb refactor argument buildup to make it more reusable
We have the same query arguments to 2 commands and the next patch will
add a third. Refactor things to make that more consistent.

Change-Id: I757fe90c2afaa316a8067956fa375871536e77cd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 17:52:07 -05:00
Doug Hellmann abad748259 improve test coverage
Change-Id: I76a22e918bca369c3666b4265b238829f6d0ca0b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 17:52:02 -05:00
Doug Hellmann 627a1da7ce always show coverage report for test runs
Change-Id: I487137bd8a57c7cabee46ad9e7b9180702561c17
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-07 13:24:51 -05:00
Jenkins 1c1b591ff0 Merge "collapse pre-release notes into regular releases by default" 2016-03-03 20:58:34 +00:00
Mike Perez 13b932f0f2 Add deprecations section to usage documentation
This includes information on the section deprecations and
a consideration when using it.

Change-Id: I581a8afa3491eef74af1472c57d0c35273f45f89
2016-03-01 11:04:07 -08:00
Doug Hellmann a9362189ca use less entropy in unit tests
Fix the logic for dealing with entropy in the unit tests so we consume
less.

Change-Id: I1faebfd5de0b9ae150bc2298df5d797fbbf83c07
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-02-29 09:45:13 -05:00
Doug Hellmann 11c887ef62 collapse pre-release notes into regular releases by default
Change the default for the collapse flag to True and provide options
for setting it to false.

Change-Id: Ia17f39dc3bb576f26f159eee3903445a2f541c14
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-02-10 17:05:24 -05:00
Doug Hellmann f4e2d66942 add release note for earliest-version feature
Change-Id: I595f2b2d3eead9b3c6c5aa8a11d6745c5fead0d4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-02-08 16:43:21 -05:00
Doug Hellmann 75e06c5441 add earliest_version option to scanner
Add an option to the scanner to tell it not to include all of the
history, but to stop at a specific version (inclusive). This will allow
us to configure release series history pages to only show versions that
are part of that series (otherwise, scanning stable/newton will include
mitaka releases from the master branch, for example).

Change-Id: I53b4b95e13c99d0a19f53e2f3e836ffe67428211
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-02-03 19:21:44 -05:00
Doug Hellmann 53891ddb1a add flag to collapse pre-releases into final releases
Add a new flag to combine pre-release notes into their final release
version after that version is tagged. The flag defaults to False to
preserve the current behavior.

Change-Id: I6b9c058289f0baa3e39048b3fa78f6af81bdd83b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-01-27 17:44:50 -05:00
Doug Hellmann 207776787f fix detection of pre-release tags in git log
We had two different regexes being used for detecting tags. Unify them
into a single expression that works in both situations.

Convert that expression to use "verbose" mode to include some inline
documentation for the parts of the pattern.

Add more details to the existing debug output when new tags are found.

Add more debug output at the end to show how many files were actually
detected.

Change-Id: I7104f459c948011f198fed04303ea5cafb59f223
Closes-Bug: #1537451
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-01-26 12:52:49 -05:00
Doug Hellmann 052206e189 manage stderr output from external commands
Only show error output from external commands in debug mode. This
suppresses "fatal" messages that are fatal to git, but not reno, for
example.

Change-Id: Ic9a9fcf30fd2f9ff2c0a837de45dd062b7a900e8
Related-Bug: 1534613
2016-01-15 16:42:44 +00:00
Jenkins f6aca7cb01 Merge "fix notes appearing in releases older than they should" 2016-01-08 14:11:23 +00:00
Ian Cordasco aeb9c812fe Fix reference to old subcommand in usage
The current correct subcommand is "new"

Closes #1526091

Change-Id: Ic0a6707394a3568051b5d9aef6b77faa6df36c4d
2015-12-14 17:06:05 -06:00
Doug Hellmann 4b45743e49 fix notes appearing in releases older than they should
Use topological sort instead of date sort so that release notes appear
in the release where they are merged, rather than the one closest to the
same commit time, which might be much older.

In order to support listing tags on versions of git with different
output formats, we also limit the tags we care about to things that look
like version numbers (some sequence of digits, dots, and maybe "a" or
"b" for alpha & beta).

Change-Id: I95278eab25f331262a4c9eeac2260ca7290b5421
Closes-Bug: #1522153
2015-12-09 15:41:09 +00:00
Graham Hayes ddec6c5bc7 Add deprecations section to release notes
Change-Id: Idf848b370dd7598d38a3dfd8c13b0411769e42e4
2015-11-26 16:22:08 +00:00
Doug Hellmann b243431998 update template for new notes
Add some details to the template for creating new notes to better
explain how the sections work.

Change-Id: If03c7deb38e3f494ade8efddc44bf107806b2df1
2015-11-25 18:37:38 +00:00
Doug Hellmann d3efb6cfc8 add complex formatting example
Set up an example directory to hold example notes and add one showing
how to use complex formatting.

Change-Id: I7b3e27c394789cc1ff832ca0bf26f3244b058eb7
2015-11-23 19:17:02 +00:00
Doug Hellmann 32d475197f scan all changes and filter on files in reno not git log
Scanning only changes with reno files in them means we miss some of the
git tags in the repository history, so include all patches in the git
log output and then filter them in reno based on patches that include
any release notes files.

Closes-bug: #1517175
Change-Id: I36c0a54e20d47fff9af2b7f82c5380d97345a625
2015-11-23 19:14:01 +00:00
Doug Hellmann c9e19cd7a4 add verbose and quiet options to command line for debugging
Also set up scanner tests to capture the logging output.

Change-Id: Ib8def5082bb50b019a2f7b8772314dd2f5bd5589
2015-11-23 19:14:01 +00:00
Doug Hellmann 9f2c12e9ee force the right return type for mocked urandom
Change-Id: I9feb209fee3ae089b43294518248ec3203a6e1d1
2015-11-23 19:13:59 +00:00
Brant Knudson 0feb86ecbb Fix unicode handling in get_random_string
get_random_string would often fail in decoding the result of
os.urandom. It would fail because the result of urandom is a bunch
of random bytes and not valid text (i.e., not a valid utf-8
representation).

Turns out that it's unnecessary to decode the result of os.urandom.
It returns six.binary_type whether on py2 or py3, and
binascii.hexlify() takes a six.binary_type as the argument.

binascii.hexlify() returns six.binary_type and we want
get_random_string() to return six.text_type, so convert.

Also, fixed the docstrings to use """.

Closes-Bug: 1514981
Change-Id: I60c31f2c47614beb3ed3c143d7815fdc15f5a0e0
2015-11-10 14:29:22 -06:00
Jenkins 49976d2b9b Merge "report scanner errors to stderr" 2015-11-10 10:32:50 +00:00
Jenkins db16ae898d Merge "limit git history scanning to .yaml files" 2015-11-09 22:07:57 +00:00
Doug Hellmann 84a459b1e0 report scanner errors to stderr
Catch errors related to files we can't figure out what to do with and
report them to stderr as we skip the files.

Change-Id: I0793151e12406a544394645a3f220f3c3196d2c3
2015-11-09 20:07:02 +00:00
Doug Hellmann 80fb231ac5 limit git history scanning to .yaml files
Only look for *.yaml files in the release notes directory.

Change-Id: I6702d531d683d81e77d7ff269f4e5b9ac19bdf6a
2015-11-09 19:45:40 +00:00
Louis Taylor acbe54771d Fix example output filename in docs
Change-Id: I48783c219320be7bf3179e785ce42ccdfe67768e
2015-11-04 08:21:22 +00:00
Doug Hellmann e570dc161b fix typo in release note
Change-Id: I646c0e563449e71e288fdbfb1ac49221142a9cc8
2015-10-06 19:46:04 +00:00
Doug Hellmann 12ff6ec46c update docs for slug/uuid swap
Change-Id: I009fc7a96b68b41f2b405ac225197f49c2093bb3
2015-10-02 12:57:42 +00:00
Doug Hellmann d1aaff7bc7 reverse slug and uuid order in filenames
Change-Id: I7346f6bd9965db3680143c0f5bdd0448d12e05eb
2015-10-01 21:50:08 +00:00