[Python-de] Force stable trunk

Thomas Guettler guettli at thomas-guettler.de
Mi Jul 31 12:44:58 CEST 2013


Am 31.07.2013 10:03, schrieb Markus Zapke-Gründemann:
> Thomas Guettler schrieb:
>> ich habe versucht eine deutsche Beschreibung für das Subject zu finden, konnte
>> aber
>> keine passende Formulierung finden.
>>
>> Vor ein paar Tagen habe ich eine Frage bei Stackoverflow gestellt, die ich gerne
>> auch hier besprechen würde:
>>
>> http://stackoverflow.com/questions/17524869/force-stable-trunk-master-branch/17671955
>>
>>
>> Ich denke, ihr seit dem Englischen mächtig:
>>
>> {{{
>> Our development departments grows and I want to force a stable master/trunk.
>>
>> Up to now every developer can commit into the master/trunk. In future
>> developers should commit into a staging area, and if all tests pass the code
>> gets moved to the trunk automatically. If the test fails, the developer gets a
>> mail with the failed tests.
>>
>> We have several repositories: One for the core product, several plugins and a
>> repository for every customer.
>>
>> Up to now we run SVN and git, but switching all repos to git could be done, if
>> necessary.
>>
>> Which software could help us to get this done?
>>
>> There a some articles on the web which explain how to use gerrit and jenkins to
>> force a stable branch.
>>
>> I am unsure if I need both, or if it is better to use something else.
>>
>> Environment: We are 10 developers, and use python and django.
>>
>> Question: Which tool can help me to force a stable master branch?
>> }}}
> Wahrscheinlich suchst du etwas wie git-flow[1].

Hallo,

git-flow kannte ich noch nicht, es macht auch einen guten Eindruck. Aber was mir wichtig
ist: Nur Patches, die alle Tests erfolgreich durchlaufen haben kommen in den master Branch.

Die Aufgabe alle Tests aufzurufen und anschließend den Patch zu übernehmen soll automatisiert
werden. Hier scheint mir git-flow nicht zu helfen.

Im Moment läuft bei uns Nachts und Mittags ein Script das den Quelltext aktualisiert,
alle Tests aufruft, und dann an ggf mehrere Entwickler eine Mail schreibt, falls etwas
nicht mehr funktioniert. Das ist aber nicht optimal, pro Patch sollen alle Tests
ausgeführt werden, damit man gleich erkennt was (und welcher Committer) verantwortlich ist.

Die Idee ist aus meiner Sicht relativ simpel, aber anscheinend gibt es noch kein Tool das uns das sofort
liefert.

Die populären Tools in diesem Umfeld (gerrit und Jenkins) könnten sicherlich angepasst werden, damit
man "force stable master" erreicht. Aber mit beiden habe ich noch nicht gearbeitet.

Ist das für euch nachvollziehbar?

Lösungsansätze?

Gruß,
   Thomas


-- 
Thomas Guettler http://www.thomas-guettler.de/


Mehr Informationen über die Mailingliste python-de