8015 Commits

Author SHA1 Message Date
Doug Hellmann
51030d055d fix arguments passed to functions
Earlier patches changed a couple of function signatures and did not
update all callers. These issues were caught with manual testing.

Change-Id: Ib3869c19b945fbcb9ffe46e1abec5cf5a0a2897f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
22c0797636 fix list-deliverables for changes in get_deliverables()
Now that get_deliverables() returns Deliverable objects instead of
tuples we don't have to turn the tuples into objects.

Change-Id: I83c6da75f6186cf7001baa8e162ad6d5714cc3e7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
299c91ff86 fix verify_branches_and_late_releases for changes in get_deliverables()
Now that get_deliverables() returns Deliverable objects instead of
tuples we don't have to turn the tuples into objects.

Change-Id: I26066c0dc891b0a226097154b0e2e33293d09e44
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
7acb01f638 fix discover_branch_points for changes in get_deliverables()
Now that get_deliverables() returns Deliverable objects instead of
tuples we don't have to turn the tuples into objects.

Change-Id: Iaf13cde694692bfcee52349ec14dc7e15b6afd78
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
951c6639fd fix aclmanager for changes in get_deliverables()
Now that get_deliverables() returns Deliverable objects instead of
tuples we don't have to turn the tuples into objects.

Change-Id: I42c826a82099dd9e3b26253385dd565b2948763f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -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
0d450c4eda ignore pypi check for pre-releases in missing-releases
Change-Id: I47fec03c470407b001f9e5d5138f8626dcc984c2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
6ea3378975 update missing-releases to use deliverable model classes
Change-Id: Iae63447bc89bf753027fc1dfa911b288974866af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
03641906a0 update init-series to deal with deliverable model classes
Change-Id: I496f313edb1b161195bd68fbca5e688184a2ecb7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
1b736e3f32 update sphinxext to use deliverable model classes
Change-Id: I38c8147677b37df2b6e0e995455dbd96099a3eb4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
9b8f290117 use packaging to determine the canonical name for projects on PyPI
Rather than applying the rules ourselves, use the packaging project
utility function to prepare the canonical name.

Change-Id: I6310585ff14c376e954b0edc9def67cd65a5d550
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
55c12c6f36 if a team does not exist in governance return empty set of tags
Change-Id: I9c3ff38de16cc45b8ca8aa03ab35ac897207a892
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
87810864f2 have list-deliverables look for valid values by querying the schema
An earlier change in the series removed the static data being used for
configuring the command line interface of list-deliverables. Replace
that with something that reads the schema file instead so we only need
to have the settings in one place.

Change-Id: Ib40e3bdff2f127cf5041dfffb03d53c0d1a6f3a0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
6503b38d0d remove per-release highlights from the schema
Change-Id: I80f61573f5ed54831f9e9fc710502148496956a1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
fa711bdd8c finish removing per-release highlights
Change-Id: Id77c1f67136edb6ce6a795d194d7316ec04b11cc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
5f8aa689c1 use the docstrings of the check functions for section headings
Change-Id: I0778344cd0f8099bdfaea7262718f87592dbb0af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
40a3e39d38 be consistent with use of log levels and print
Change-Id: I0bd5b6f871cc59e6fb5f29da9daa175524541132
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
d62cda963d miscellaneous code and output format cleanups
There are no logic changes in this patch, just changes to code
location, doc strings, and output messages.

Change-Id: I3fee69925337df2ad7870d97b393eb4837268ea3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
2584500ce3 remove extraneous static data
We check the type value via the schema now, so we don't need the list
here.

Change-Id: I349a24078bbca02d011d48c1adafcf9e4e13548e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
e9285b6620 let each validation function apply its own rules
Rather than testing the series condition outside of the validation
function, go ahead and call it and let the function skip the
deliverable if its rules do not apply.

Change-Id: Ib02cdec2cba088bd13ba307822f0ecbb14ddc899
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
f97c20c974 remove filename argument from validate_series_open
This makes the signatures of all of the validation functions the same.

Change-Id: I97c5fc9422055aa46803424e4e05bc16e7cc289c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
50a895b7e0 move work directory handling into ValidationContext
Change-Id: I3a348efd06ad582621fe828c24b115be42bd7a49
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:49 -05:00
Doug Hellmann
3fbfb9a697 pull zuul and team data from the validation context
Change-Id: If77e5b125d8cde0b1eb0b3fa4c404b45c170f42d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:05 -05:00
Zuul
8b265d559d Merge "TripleO newton release" 2018-03-07 07:56:53 +00:00
Zuul
559eb4f4c7 Merge "Release oswin-tempest-plugin 0.1.0" 2018-03-07 07:55:15 +00:00
Zuul
4844566bed Merge "Release os-win 3.0.1 (Queens)" 2018-03-07 07:45:55 +00:00
Zuul
50ddb71914 Merge "Senlin queens release" 2018-03-07 07:40:54 +00:00
Zuul
b75a7dcea9 Merge "ceilometer 9.0.5 (pike)" 2018-03-07 07:39:33 +00:00
Zuul
2cfc8e12e1 Merge "ceilometer 8.1.4 (ocata-eol)" 2018-03-07 07:39:28 +00:00
Zuul
3a03de36ba Merge "Release vitrage-tempest-plugin 1.0.0" 2018-03-07 07:39:27 +00:00
Zuul
abcfdce9be Merge "TripleO ocata release" 2018-03-07 07:04:13 +00:00
Zuul
94cc384fa8 Merge "TripleO pike release" 2018-03-07 05:45:57 +00:00
ghanshyam
cd270396b8 Add releasenotes link for Tempest
This commit adds the release notes link
for Tempest deliverables.

Change-Id: Id7603029762f1c85a66abf0e21dd233ccd96b95d
2018-03-07 04:19:01 +00:00
Sean McGinnis
69e65659e9 Update queens release note links
Once more, with feeling.

Change-Id: I1cd0c0c80c28b0299bf649411b9561df4b8ce60b
2018-03-06 22:17:42 -06:00
Emilien Macchi
637ca0ee96 TripleO pike release
Change-Id: Ifeef73babf5ae501391f50f65e9a74de4efca3bf
2018-03-06 23:45:18 +01:00
Emilien Macchi
9320480d46 TripleO ocata release
Change-Id: I9512db80d6074a935f371b55db889b8d261a27c5
2018-03-06 23:38:34 +01:00
Emilien Macchi
5f8a85eaca TripleO newton release
Change-Id: I47f023086b38d51d2c5a08ebf7150dfe69cedae1
2018-03-06 20:35:11 +00:00
Doug Hellmann
f013d5b5cc replace validate_releases with validate_release_branch_membership
The last checks being done by validate_releases are all related to
ensuring that one release in a series is on a commit that comes after
another commit in the same series' branch. Rename the function to
reflect that.

Change-Id: I05161eb6244da0fbd0e973d046c34ee93f8fcfa0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
44516f0a4d move check for release ordering to its own function
Part of splitting up validate_releases

Change-Id: I4ff0ccd2d94aeb31ccdcde1804240a0408bdd182
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
c3b2dbc9a1 move version number validation into its own function
Part of splitting up validate_releases

Change-Id: I7f9b9efc78de6d9066c6df007059e1ce939c7ea2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
769b89ae81 stop checking the repos in new releases against past releases
We check the repositories against the repository-settings now so we
don't need to keep track of the changes in the contents of the
deliverable over time.

Change-Id: Ie5e7c42734eff252c36252610e151fcea1139ae7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
a5820a4501 move validation for existing tags to its own function
Part of splitting up validate_releases

Change-Id: I9e3a4714893232dcb978c4fe19d55bb70ccb3447
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
59cf4ef4e9 move some sha validation out of validate_releases
Part of breaking up validate_releases

Change-Id: I5c3265669163719ff70b190444c1aa30311dfdf0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
e37425fd5a move test for untagged release model into validate_model
We were checking that 'untagged' deliverables didn't have releases in
the validate_releases function instead of in validate_model.

Change-Id: I0fcfecb6163fa45be79d9b24570b60f038e3c0a0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
2a279b6c34 remove redundant series name argument from validation functions
Change-Id: I7d4072220b0f37265e5be8cf70187810796e157c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
0c2e656383 use deliverable model objects to validate branch creation points
Change-Id: I3b94db7ec6fb07baef0bf17d733e93f7ae3b3193
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
2dd325e486 remove unused function _guess_deliverable_type
Change-Id: I60485fc67692f584afc281736f5f00623015f81a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
d8018e0d0c use deliverable model objects to validate driverfixes branches
Change-Id: I5c29ba1ed724e50f73d6ac673fc58300189d5c5d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
11e7b283de use deliverable model objects to validate feature branches
Change-Id: I2ba56e28d5849bdea033165be091cfc0340da1d6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
bb6c61a8c8 use deliverable model objects to validate stable branches
Change-Id: I82044124a8a32505342b25099850e52a7a4e05d2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00