[openstack-dev] [oslo][all] autosync incubator to projects

Ihar Hrachyshka ihrachys at redhat.com
Mon Jul 7 09:06:03 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 04/07/14 16:54, Mark McLoughlin wrote:
> On Fri, 2014-07-04 at 15:31 +0200, Ihar Hrachyshka wrote:
>> Hi all, at the moment we have several bot jobs that sync contents
>> to affected projects:
>> 
>> - translations are copied from transifex; - requirements are
>> copied from global requirements repo.
>> 
>> We have another source of common code - oslo-incubator, though
>> we still rely on people manually copying the new code from there
>> to affected projects. This results in old, buggy, and sometimes 
>> completely different versions of the same code in all projects.
>> 
>> I wonder why don't we set another bot to sync code from
>> incubator? In that way, we would: - reduce work to do for
>> developers [I hope everyone knows how boring it is to fill in
>> commit message with all commits synchronized and create sync
>> requests for > 10 projects at once]; - make sure all projects use
>> (almost) the same code; - ensure projects are notified in advance
>> in case API changed in one of the modules that resulted in
>> failures in gate; - our LOC statistics will be a bit more fair ;)
>> (currently, the one who syncs a large piece of code from
>> incubator to a project, gets all the LOC credit at e.g.
>> stackalytics.com).
>> 
>> The changes will still be gated, so any failures and
>> incompatibilities will be caught. I even don't expect most of
>> sync requests to fail at all, meaning it will be just a matter of
>> two +2's from cores.
>> 
>> I know that Oslo team works hard to graduate lots of modules
>> from incubator to separate libraries with stable API. Still, I
>> guess we'll live with incubator at least another cycle or two.
>> 
>> What are your thoughts on that?
> 
> Just repeating what I said on IRC ...
> 
> The point of oslo-incubator is that it's a place where APIs can be 
> cleaned up so that they are ready for graduation. Code living in 
> oslo-incubator for a long time with unchanging APIs is not the
> idea. An automated sync job would IMHO discourage API cleanup work.
> I'd expect people would start adding lots of ugly backwards API
> compat hacks with their API cleanups just to stop people
> complaining about failing auto-syncs. That would be the opposite of
> what we're trying to achieve.
> 

The idea of oslo-incubator is that everyone consumes the code, I guess
in its latest form (?). I don't see how silently breaking API thru
cleanup is any better than breaking it *and* notifying projects about
the work to be done to consume updates from incubator.

Also, I suspect the idea now is to eventually drop incubator, and any
API cleanup is now done inside separate graduating modules, like
oslo.messaging or oslo.i18n.

So I don't see how syncing the code until those modules are graduated
can harm, while possible benefits are quite significant.

/Ihar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTumL7AAoJEC5aWaUY1u57hXgIALnCztNni7c+ZlXpmzCK8m4q
4rUB4DWKBLs3t/4+e7LeRSvXtN/C7lQbTIAp7ifwEY3EBbK9ntU5407HeNzBIe5y
x78op6HtsvrBwoxeaXIqllebu4tcg2NwZxLvJ19Twutj4JDXDN/A3s+FbWxyWMcC
8MM8zrKU9d98joZuH8XzHqAx+lte3+7myiLxUfxyGKDQrmhyM9/yjm5GlBTmGQNR
BrSlx83W50PHTIcQU+hx7yBI01Gyv0cyEr/amS+9tb0EOI99KLvR+PR4OTXJRyzt
AVR0jWYR+RHhfhvJz9kwiE0w8lQg/iW4bwj4DyTJuqfzhA9tikNuylwNCWSWzT4=
=IFMz
-----END PGP SIGNATURE-----



More information about the OpenStack-dev mailing list