[OpenStack-Infra] Help with tagging releases for networking sub-projects

Jeremy Stanley fungi at yuggoth.org
Wed Sep 30 16:02:51 UTC 2015


On 2015-09-30 10:32:45 -0500 (-0500), Kyle Mestery wrote:
> I'm sending this email because I'm having trouble tagging and releasing
> some networking sub-projects to PyPi.
[...]

A basic release checklist summarizing the relevant configuration
discussed in http://docs.openstack.org/infra/manual/ is:

1. Your Gerrit ACL must allow your release manager(s) to push signed
git tags. Without this, Gerrit will refuse the push.

2. When pushing tags you must sign them (git tag -s). Without this,
Gerrit will refuse the push (unless the ACL is misconfigured to
allow it, in which case it will fail to trigger the appropriate jobs
in Zuul).

3. If your project uses PBR, you must tag with a conforming
3-component version string (e.g. "1.23.4" or "0.3.0").

4. You must add the publish-to-pypi project template in Zuul's
layout (or at least individual whatever-tarball and
whatever-pypi-wheel-upload or whatever-pypi-both-upload to the
release pipeline). Without these, no release jobs will be run.

5. You must be able to `tox -e venv python setup.py sdist` and `tox
-e venv python setup.py bdist_wheel` and get an sdist tarball and a
wheel in the dist subdirectory of your checkout. This is what the
jobs will be running to generate your release artifacts for upload.

6. You must register the matching project name at pypi.python.org
and set the "openstackci" account with a maintainer role on it.

> For another, Octavia, I've never been able to get a PyPi release
> to happen. If you look [2], it's not there, just a stub version
> the Octavia folks put up. For Octavia, they had some issues with
> their PyPi project when I pushed 0.5.0 [3], so I pushed a 0.5.1
> [4] after they addressed that but it still never showed up on
> PyPi.

Yep, this looks like at least #4 above is a problem.

> I've run into a similar problem with networking-ale-omniswitch. I
> wanted to release 1.0.0, but again, the push of the tag to gerrit
> shows up fine in git [5] but not on PyPi [6].
[...]

Also missing #4 here. Revisiting
http://docs.openstack.org/infra/manual/creators.html#configure-zuul-to-run-jobs
may help.
-- 
Jeremy Stanley



More information about the OpenStack-Infra mailing list