[openstack-dev] [Oslo] Improving oslo-incubator update.py

Flavio Percoco flavio at redhat.com
Fri Nov 22 09:11:16 UTC 2013


Based on the recent discussion that came out about not having enough
information in the commit message when syncing oslo-incubator modules,
I was thinking that besides encouraging people to write better commit
messages, we could also improve the script we use to sync those

Some of the changes that I've been thinking of:

    1) Store the commit sha from which the module was copied from.
    Every project using oslo, currently keeps the list of modules it
    is using in `openstack-modules.conf` in a `module` parameter. We
    could store, along with the module name, the sha of the commit it
    was last synced from:




    2) Add an 'auto-commit' parameter to the update script that will
    generate a commit message with the short log of the commits where
    the modules being updated were modified. Soemthing like:

        Syncing oslo-incubator modules

            commit1: short-message
            commit2: short-message
            commit3: short-message

            commit4: short-message
            commit5: short-message

#1 will help with figuring out when was the last time a module was
updated and what changes have been introduced since then.

#2 won't be the recommended way for writing commit messages. Oslo
incubator syncs can have different side-effects in every project.
However, it could be useful for trivial syncs.



Flavio Percoco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131122/48c9584c/attachment.pgp>

More information about the OpenStack-dev mailing list