12 Commits

Author SHA1 Message Date
Thierry Carrez
8a9f755cb9 Trailing is a deliverable type, not a release model
Cycle-trailing deliverables are regular cycle-following deliverables,
using RCs or not not using RCs -- they just have a different deadline.

Rather than using a release model, those deadline variants are better
described using deliverable types, in much the same way 'library'
deliverables have a specific deadline too.

This simplifies the list of models significantly, and allows to have
proposer validation of trailing deliverables that use RCs or not use
RCs.

For compatibility in old branches, setting 'cycle-trailing' is still
supported, it will just overload the type to 'trailing' if specified.

Change-Id: Ifce88ef3e5dd406f45f25214699f16e736ad5377
2020-06-16 16:18:30 +02:00
Hervé Beraud
7b0057f5f3 [feat] Add final release canary mode
Add the canary mode feature to propose_final_releases.py to allow
us to test final release with a pseudo workflow based on
the real process.

Change-Id: I27f604eb52563b04f5bb8a24e096b9fec4a14dbd
2020-05-04 16:46:55 +02:00
Hervé Beraud
2064f3e29f Remove unused imports in tools and commands
For some non obvious reasons pep8 check doesn't detect these unused imports.

Change-Id: Ie98af5a0fcf4fb8bcd05051de75a84755fbc0b88
2019-11-27 17:45:34 +01:00
Doug Hellmann
3ec867814f update propose-final-releases to work with object model classes
Change-Id: I652fd65bdbeab5f6522fa2982d70a7945198bda4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-08 13:18:31 -05:00
Doug Hellmann
748e99482a update propose-final-releases for changes to get_deliverables()
get_deliverables() now returns Deliverable objects instead of tuples,
so we don't need to convert the tuples to objects.

Change-Id: I28d49a64c443b22f102536a093b59a917db65457
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
22b2b24421 set up logging for propose-final-releases
Several of the support modules now use logging exclusively as a way to
emit debug info. Set up logging so we can see that debug info when
--verbose is turned on.

Change-Id: I029b6cc8667fca61f70afd19e99dd865870a546e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-02-23 13:02:45 -05:00
Sean McGinnis
49809c7e7b Skip diff-start for first final release tagging
Handles the case where it is the first release of a deliverable.
Instead of adding 'none' as the diff-start, this just skips
adding the setting to the release.

Change-Id: I66fd4ef165165689cb6d2b6613c45b3564330a8f
2018-02-23 11:32:54 -06:00
Doug Hellmann
38ddd41ab5 use the right field name for diff-start
When we propose the final releases for milestone projects we set
diff-start to ensure the announcement email includes all of the
release notes for the deliverable. We were using the wrong field name,
which means the pike announcements did not include all of the
changes. This corrects the problem so we get the right content for
queens.

Change-Id: I7bf213d3f954381b0a556be0d310e5caad6cd18e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-30 12:13:46 -04:00
Doug Hellmann
a128a62ca3 modernize propose-final-releases command
We never updated the implementation of this command when release model
tags were moved into the releases repository. This patch uses the
deliverable search code to create Deliverable objects, then uses the
model information from those objects instead of looking at the
governance data.

Two new properties are added to the Deliverable class to facilitate
writing the updates to the existing files.

At the same time the verbose output content is made more detailed.

Change-Id: I807ee48244c3f6b2a33a918668620ab2a82c3674
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-28 12:00:06 -04:00
Doug Hellmann
ee1fc3d892 use yamlutils.loads() everywhere instead of yaml.safe_load()
Also set the encoding for the data files in more open() calls.

Change-Id: Idda3a7ab46e5478f83541fbbb629d7e086515ffd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-01 17:50:37 -04:00
Doug Hellmann
b583afe676 have propose-final-releases use yamlutils instead of appending to the file
Change-Id: Ia7d1192c458f89164d2b5525ead08b5d8eaa192e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-01 16:51:48 -04:00
Doug Hellmann
4447e00585 import propose-final-releases command from release_tools
Change-Id: I628edccf8b9327d8dcebb3044a6b181728ba0d95
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-02-08 15:12:04 -05:00