10 Commits

Author SHA1 Message Date
Andreas Jaeger
c9152cc789 Switch back to publish-to-pypi
We updated publish-to-pypi so that it has the same content as
publish-to-pypi-python3 - and then replaced publish-to-pypi-python3 with
publish-to-pypi. Thus, publish-to-pypi does what publish-to-pypi-python3
has done previously.

Since all repos have been updated to use publish-to-pypi, check for that
one again.

Change-Id: I09ed2370a4d1f1bfb94cf73a951d0f1f6af36be6
Depends-On: https://review.openstack.org/615239
2018-11-02 19:41:36 +01:00
Doug Hellmann
5fb6f55fd3 stop supporting legacy release jobs
Drop the legacy release jobs for python projects and require the use of
the new python3 job.

Change-Id: I3c6040983dd00f45c4322aa0fb3dd16fff6eef11
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-05 11:23:15 -04:00
Doug Hellmann
0c9e8b7f3b support reading zuul settings from within a repo
As part of the python3 goal for stein we are going to move the zuul
settings out of the project-config repository and into each project
tree. We need to update the validation to look at the files in the
repo being released in addition to project-config when we are looking
for the project-templates to verify the release jobs.

Change-Id: Ib64d59b1b6646d779112c9fcad47ae7d2c3c74d4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-18 16:45:22 -04: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
Doug Hellmann
5e863df520 fix require_release_jobs_for_repo use of messages object
Change-Id: I9a701fb6d57943f701d81c6d5203590ce003ec32
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
fcebb14933 use deliverable model object to validate the release type
We need to hold on to the old version of the release type validation
function to support the validate_releases function, for now.

Change-Id: I8c909c5ffc7dd0daf89dd123813bff1d8bb934c3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-06 10:23:12 -05:00
Doug Hellmann
9dbb30dce1 provide separate release types for server and non-server deliverables
Change the 'std' release type to 'python-server' and add a
'python-pypi' release type for deliverables that are published to
PyPI.

Separate the release job validation from the validation of release
version numbers and other settings to make the logic clearer.

Add a new function to determine the release type for a project, either
by checking the explicit value or guessing.

Update the unit tests that relied on 'std'.

Remove a unit test that tested a code path that has been removed.

Change-Id: I704ec75fec61ecb6ee379239a5fa8612cb01b426
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-26 11:53:13 -04:00
Doug Hellmann
9a49ded73f make release job validation based on project type
Require puppet repositories to have the puppet jobs and node
repositories to have the node jobs.

Update the allowed values for release-type to include "puppet" and
"nodejs" for folks who want to be explicit, but also use the module
type-detection code to default properly.

Report any jobs that are valid release jobs but for the wrong release
type as errors instead of warnings.

Change-Id: I9330cc62834f42ae0cd4d1cc48ed963846d72944
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-23 09:57:38 -04:00
Doug Hellmann
f066967e8d update release job validation for zuulv3
The release jobs are attached using a different configuration file
that has a different format. Update the validation logic to read the
new file and process its contents correctly.

Change-Id: Ib5ae569572b88524607bd320db6d746437d8636f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-19 10:43:17 -04:00
Doug Hellmann
b6f8d4fe8a add unit tests for project_config module
Change-Id: Ie9875918ca694bbab5771ade8a0fe1df98a135e0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-28 12:47:17 +11:00